/* Fichas del Plata — Modern Rounded SaaS + porcelain / navy / warm red */
:root {
  --porcelain: #faf8f5;
  --porcelain-2: #f0ece6;
  --porcelain-3: #e6e1d8;
  --navy: #1b2a4a;
  --navy-soft: #243656;
  --navy-muted: #4a5a78;
  --ink: #1a1f2e;
  --muted: #5c6578;
  --accent: #e6392b;
  --accent-soft: #fde8e6;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(27, 42, 74, 0.1);
  --shadow-sm: 0 6px 18px rgba(27, 42, 74, 0.08);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --radius-pill: 999px;
  --space: 1rem;
  --max: 1120px;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --age-h: 2.5rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  padding-top: var(--age-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.65rem;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Age notice — top slim bar */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  background: var(--navy);
  color: var(--porcelain);
  font-size: 0.82rem;
  text-align: center;

  & a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
  }

  & .age-bar__close {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.55rem;
    cursor: pointer;
    font: inherit;
  }
}

.age-bar.is-collapsed {
  display: none;
}

body.age-collapsed {
  padding-top: 0;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--porcelain-3);

  & .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
  }

  & .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
  }

  & .brand:hover {
    text-decoration: none;
    color: var(--navy);
  }

  & .brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  & nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    align-items: center;
  }

  & nav a {
    color: var(--navy-soft);
    font-weight: 600;
    font-size: 0.95rem;
  }

  & nav a:hover {
    color: var(--accent);
    text-decoration: none;
  }

  & .nav-toggle {
    display: none;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.7rem;
    font-weight: 700;
    cursor: pointer;
  }
}

@media (max-width: 820px) {
  .site-header {
    & .nav-toggle {
      display: inline-flex;
    }

    & nav {
      display: none;
      width: 100%;
      padding-bottom: 1rem;
      flex-direction: column;
      align-items: flex-start;
    }

    & nav.is-open {
      display: flex;
    }

    & .site-header__inner {
      flex-wrap: wrap;
    }
  }
}

/* Buttons — outlined/ghost, rounded SaaS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

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

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

.btn--solid:hover {
  background: #cf2f23;
  color: #fff;
}

.btn--navy {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--navy:hover {
  background: var(--porcelain-2);
  color: var(--navy);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* Badges with leading dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;

  &::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
}

.badge--navy {
  background: #e8ecf4;
  color: var(--navy);

  &::before {
    background: var(--navy);
  }
}

.badge--ok {
  background: #e7f6ee;
  color: #1d6b45;

  &::before {
    background: #1d6b45;
  }
}

/* Layered panel backgrounds */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.panel--framed {
  border: 3px double var(--navy);
  box-shadow: var(--shadow);
}

.panel--tint {
  background: linear-gradient(165deg, var(--porcelain) 0%, var(--porcelain-2) 55%, #ebe6df 100%);
}

.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--contrast {
  background: var(--porcelain-2);
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

/* Hero — centered + CTA row + light parallax layer */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 4.75rem) 0 2rem;
  background:
    linear-gradient(180deg, #fff 0%, var(--porcelain) 45%, var(--porcelain-2) 100%);

  & .hero__layer {
    position: absolute;
    inset: -8% -5% auto;
    height: 70%;
    background:
      radial-gradient(ellipse at 70% 30%, rgba(230, 57, 43, 0.12), transparent 55%),
      radial-gradient(ellipse at 20% 60%, rgba(27, 42, 74, 0.08), transparent 50%);
    pointer-events: none;
    will-change: transform;
  }

  & .hero__inner {
    position: relative;
    text-align: center;
    max-width: 46rem;
    margin-inline: auto;
  }

  & .hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 2px solid var(--porcelain-3);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: var(--accent);
    }
  }

  & h1 {
    margin: 0 0 1rem;
  }

  & .hero__lead {
    font-size: 1.12rem;
    margin-bottom: 1.5rem;
  }

  & .hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  & .hero__meta {
    font-size: 0.88rem;
    color: var(--navy-muted);
  }

  & .hero__visual {
    margin: 2rem auto 0;
    max-width: 720px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px double var(--navy);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__layer {
    transform: none !important;
  }
}

/* Notice strip */
.notice-strip {
  background: var(--accent-soft);
  border-block: 1px solid #f5c8c3;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: var(--navy);

  & strong {
    color: var(--accent);
  }
}

/* Trust strip */
.trust {
  & .trust__grid {
    display: grid;
    gap: 1rem;
  }

  @media (min-width: 700px) {
    & .trust__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  & .trust__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--porcelain-3);
  }

  & .trust__card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
  }

  & .trust__card p {
    margin: 0;
    font-size: 0.95rem;
  }
}

/* Operator strips — horizontal with province/rating */
.ops {
  & .ops__affiliate {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
  }

  & .op-strip {
    display: grid;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid transparent;
  }

  & .op-strip--featured {
    border: 3px double var(--navy);
  }

  @media (min-width: 800px) {
    & .op-strip {
      grid-template-columns: 140px 1fr auto auto;
      gap: 1.25rem;
    }
  }

  & .op-strip__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  & .op-strip__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--porcelain);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    border: 1px solid var(--porcelain-3);
  }

  & .op-strip__logo--fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--navy);
    font-size: 0.75rem;
    text-align: center;
  }

  & .op-strip__name {
    margin: 0;
    font-size: 1.2rem;
    color: var(--navy);
  }

  & .op-strip__desc {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
  }

  & .op-strip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  & .op-strip__side {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
  }

  @media (min-width: 800px) {
    & .op-strip__side {
      align-items: flex-end;
      text-align: right;
    }
  }

  & .op-strip__score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    background: var(--navy);
    color: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
  }

  & .op-strip__score span {
    font-size: 1.45rem;
  }

  & .op-strip__score small {
    opacity: 0.75;
    font-weight: 600;
  }

  & .op-strip__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 160px;
  }

  & .op-strip__legal {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--navy-muted);
  }
}

.group-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;

  &::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--porcelain-3);
  }
}

/* Comparison table */
.compare {
  & .table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    border: 3px double var(--navy);
  }

  & table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 0.92rem;
  }

  & th,
  & td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--porcelain-3);
  }

  & th {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
  }

  & tr:last-child td {
    border-bottom: 0;
  }

  & td strong {
    color: var(--navy);
  }
}

/* Method / regulation / start blocks */
.method,
.reg,
.start,
.rg,
.faq,
.gloss {
  & .card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
  }
}

.method__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .method__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reg__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.start__steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .start__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.start__step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;

  &::before {
    counter-increment: step;
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.75rem;
  }
}

.rg {
  & .rg__box {
    background: var(--navy);
    color: var(--porcelain);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: var(--shadow);
  }

  & .rg__box h2 {
    color: #fff;
  }

  & .rg__box h2::after {
    background: var(--accent);
  }

  & .rg__box p {
    color: rgba(250, 248, 245, 0.85);
  }

  & .rg__box a {
    color: #fff;
    text-decoration: underline;
  }
}

/* FAQ — prose blocks */
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);

  & h3 {
    margin: 0 0 0.65rem;
  }

  & p:last-child {
    margin-bottom: 0;
  }
}

.gloss__list {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .gloss__list {
    grid-template-columns: 1fr 1fr;
  }
}

.gloss__term {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow-sm);

  & strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
  }

  & span {
    color: var(--muted);
    font-size: 0.92rem;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, #fff, var(--porcelain));

  & .page-hero__visual {
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px double var(--navy);
    max-width: 820px;
  }
}

.prose {
  & h2 {
    margin-top: 2rem;
  }

  & ul {
    color: var(--muted);
    padding-left: 1.2rem;
  }

  & li {
    margin-bottom: 0.45rem;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;

  & li {
    position: relative;
    padding: 0.65rem 0.65rem 0.65rem 2.2rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.55rem;
    box-shadow: var(--shadow-sm);
    color: var(--muted);
  }

  & li::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(250, 248, 245, 0.88);
  padding: 3rem 0 6rem;
  margin-top: 2rem;

  & h2,
  & h3 {
    color: #fff;
  }

  & h2::after {
    background: var(--accent);
  }

  & a {
    color: #fff;
    font-weight: 600;
  }

  & .site-footer__grid {
    display: grid;
    gap: 1.75rem;
  }

  @media (min-width: 800px) {
    & .site-footer__grid {
      grid-template-columns: 1.4fr 1fr 1fr;
    }
  }

  & .site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  & .site-footer__legal {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.7);
  }

  & .site-footer__flourish {
    margin-top: 1.5rem;
    max-width: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.9;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  max-width: 420px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px double var(--navy);
  padding: 1.15rem;
  display: none;

  &.is-visible {
    display: block;
  }

  & p {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
  }

  & .cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 42, 74, 0.55);

  &.is-open {
    display: flex;
  }

  & .modal__dialog {
    background: var(--porcelain);
    border-radius: var(--radius);
    border: 3px double var(--navy);
    box-shadow: var(--shadow);
    max-width: 640px;
    width: 100%;
    max-height: min(85vh, 720px);
    overflow: auto;
    padding: 1.5rem;
  }

  & .modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  & .modal__head h2 {
    margin: 0;
    font-size: 1.35rem;
  }

  & .modal__close {
    border: 2px solid var(--navy);
    background: transparent;
    border-radius: var(--radius-sm);
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
    font-weight: 800;
    color: var(--navy);
  }
}

.contact-form {
  display: grid;
  gap: 0.75rem;

  & label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
  }

  & input,
  & textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--porcelain-3);
    font: inherit;
    background: #fff;
  }

  & textarea {
    min-height: 120px;
    resize: vertical;
  }
}

.img-inline {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1.25rem 0;
  border: 1px solid var(--porcelain-3);
}
