/* Section-scoped styles — Fichas Bonaerenses */

/* ===== age-bar ===== */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--porcelain);
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.55rem 0;
  min-height: var(--age-h);
}

.age-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.age-bar a {
  color: #fff;
  text-decoration: underline;
}

.age-bar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  background: var(--accent);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ===== site-header ===== */
.site-header {
  position: sticky;
  top: var(--age-h);
  z-index: 900;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  padding: var(--space-4) 0;
}

.site-header.is-compact {
  padding: var(--space-2) 0;
  box-shadow: 0 4px 20px rgba(26, 42, 90, 0.08);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--navy);
}

.site-header__brand img {
  width: 40px;
  height: 40px;
}

.site-header.is-compact .site-header__brand img {
  width: 32px;
  height: 32px;
}

.site-header__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}

.site-header__nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--space-2);
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .site-header__toggle { display: block; }
  .site-header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    box-shadow: var(--shadow-soft);
  }
  .site-header.is-open .site-header__nav { display: flex; }
}

/* ===== btn ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 48, 54, 0.28);
}

.btn--primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  text-decoration: none;
  color: var(--accent-deep);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover {
  color: #fff;
  text-decoration: none;
  background: var(--navy-soft);
}

/* ===== badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--porcelain-deep);
  color: var(--navy);
  border: 0;
}

.badge--accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.badge--navy {
  background: rgba(26, 42, 90, 0.1);
  color: var(--navy);
}

.badge--jur {
  background: var(--navy);
  color: #fff;
}

/* ===== hero ===== */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 42, 90, 0.55), rgba(26, 42, 90, 0.72)),
    url("/assets/img/hero-bg.jpg") center / cover no-repeat;
  opacity: 0.95;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-4);
}

.hero__lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.hero__disclaimer {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: 0 auto var(--space-5);
  max-width: 640px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===== trust ===== */
.trust {
  padding: var(--space-7) 0;
  background: var(--white);
  position: relative;
}

.trust__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 800px) {
  .trust__grid { grid-template-columns: 1fr; }
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.trust__stat {
  background: var(--grad-card);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust__stat:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.trust__stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.trust__stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.trust__side {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.trust__side h3 { color: #fff; }
.trust__side p { color: rgba(255, 255, 255, 0.9); }
.trust__side a { color: #fff; }

/* ===== glance (signature block) ===== */
.glance {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  margin: var(--space-5) 0;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.glance:hover { border-color: var(--line); }

.glance__title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.glance__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.glance__item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.glance__item span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===== divider bands ===== */
.band {
  height: 10px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  opacity: 0.85;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ===== role ===== */
.role {
  padding: var(--space-7) 0;
  background: var(--porcelain);
}

.role__box {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.role__box:hover { border-color: var(--line); }

/* ===== showcase ===== */
.showcase {
  padding: var(--space-7) 0;
  background: var(--white);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

.showcase__intro {
  margin-bottom: var(--space-5);
}

.showcase__disclosure {
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--accent-soft);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  margin-bottom: var(--space-5);
}

.showcase__spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.showcase__compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 960px) {
  .showcase__spotlight { grid-template-columns: 1fr; }
  .showcase__compact { grid-template-columns: 1fr; }
}

/* ===== op-card ===== */
.op-card {
  background: var(--grad-card);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

.op-card:hover {
  border-color: rgba(196, 48, 54, 0.35);
  box-shadow: var(--shadow);
}

.op-card--spotlight {
  background: linear-gradient(165deg, #ffffff 0%, #f7f5f1 55%, rgba(196, 48, 54, 0.06) 100%);
}

.op-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.op-card__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}

.op-card__name {
  margin: 0;
  font-size: 1.2rem;
}

.op-card__verdict {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.op-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.op-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.op-card__meta a { font-size: inherit; }

.op-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.op-card__note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.op-card--compact {
  padding: var(--space-4);
}

.op-card--compact .op-card__logo {
  width: 44px;
  height: 44px;
}

/* ===== scorecards ===== */
.scorecards {
  padding: var(--space-7) 0;
  background:
    linear-gradient(180deg, rgba(247, 245, 241, 0.92), rgba(247, 245, 241, 0.96)),
    url("/assets/img/texture-section.jpg") center / cover;
}

.scorecards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.scorecard {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.scorecard:hover { border-color: var(--line); }

.scorecard h3 {
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
}

.scorecard dl {
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.scorecard dt {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scorecard dd {
  margin: 0 0 var(--space-2);
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ===== safety-strip ===== */
.safety-strip {
  padding: var(--space-5) 0;
  background: var(--porcelain-deep);
}

.safety-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.safety-strip__inner:hover { border-color: var(--line); }

.safety-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

/* ===== method ===== */
.method {
  padding: var(--space-7) 0;
  background: var(--white);
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

@media (max-width: 800px) {
  .method__steps { grid-template-columns: 1fr; }
}

.method__step {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.method__step:hover { border-color: var(--line); }

.method__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-3);
}

/* ===== legal-x ===== */
.legal-x {
  padding: var(--space-7) 0;
  background: var(--porcelain);
}

.legal-x__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 800px) {
  .legal-x__layout { grid-template-columns: 1fr; }
}

.legal-x__side {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.legal-x__side h3 { color: #fff; }
.legal-x__side a { color: #fff; }

/* ===== rg ===== */
.rg {
  padding: var(--space-7) 0;
  background: var(--white);
}

.rg__panel {
  background: linear-gradient(135deg, rgba(26, 42, 90, 0.04), rgba(196, 48, 54, 0.06));
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.rg__panel:hover { border-color: var(--line); }

/* ===== faq ===== */
.faq {
  padding: var(--space-7) 0;
  background: var(--porcelain);
}

.faq__item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: var(--space-3);
  border: 1px solid transparent;
  transition: border-color 0.2s;
  overflow: hidden;
}

.faq__item:hover,
.faq__item.is-open {
  border-color: var(--line);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-4) var(--space-5);
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}

.faq__q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq__item.is-open .faq__q::after { content: "–"; }

.faq__a {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  color: var(--muted);
}

.faq__item.is-open .faq__a { display: block; }

/* ===== page-hero (inner pages) ===== */
.page-hero {
  padding: var(--space-7) 0 var(--space-6);
  background: var(--grad-hero);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }

.page-hero__meta {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== content ===== */
.content {
  padding: var(--space-7) 0;
}

.content--narrow {
  max-width: 760px;
}

.content__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 800px) {
  .content__split { grid-template-columns: 1fr; }
}

/* ===== table card-collapse ===== */
.cmp-table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.cmp-table th,
.cmp-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cmp-table thead th {
  background: rgba(26, 42, 90, 0.06);
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .cmp-table thead { display: none; }
  .cmp-table,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table td {
    display: block;
    width: 100%;
  }
  .cmp-table tr {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
    padding: var(--space-4);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
  }
  .cmp-table tr:hover { border-color: var(--line); }
  .cmp-table td {
    border: 0;
    padding: 0.35rem 0;
  }
  .cmp-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

/* ===== site-footer ===== */
.site-footer {
  margin-top: var(--space-6);
}

.site-footer__brand {
  background: var(--navy);
  color: #fff;
  padding: var(--space-7) 0 var(--space-6);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% 100%, 0 100%);
}

.site-footer__brand-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 800px) {
  .site-footer__brand-grid { grid-template-columns: 1fr; }
}

.site-footer__mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.site-footer__mark img {
  width: 48px;
  height: 48px;
}

.site-footer__wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__brand a {
  color: #fff;
}

.site-footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.site-footer__col ul {
  list-style: none;
}

.site-footer__col li {
  margin-bottom: var(--space-2);
}

.site-footer__legal {
  background: #121a36;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-4) 0;
  font-size: 0.8rem;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
}

/* ===== cookie ===== */
.cookie {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: 1100;
  max-width: 480px;
  background: var(--white);
  color: var(--ink);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  display: none;
}

.cookie.is-visible { display: block; }

.cookie p {
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
}

.cookie__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ===== back-top ===== */
.back-top {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 950;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== modal (footer lightweight) ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 28, 46, 0.55);
  padding: var(--space-5);
  overflow: auto;
}

.modal.is-open { display: flex; align-items: flex-start; justify-content: center; }

.modal__panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-6);
  max-width: 640px;
  width: 100%;
  margin: var(--space-7) auto;
  position: relative;
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
}

/* ===== forms ===== */
.form-stack {
  display: grid;
  gap: var(--space-3);
  max-width: 480px;
}

.form-stack label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
}

.form-stack input:focus,
.form-stack textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ===== provider / game cards ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.tile:hover { border-color: var(--line); }

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.updated {
  font-size: 0.85rem;
  color: var(--muted);
}
