/* ==========================================================================
   Nuuk Time · Sitio one page
   Paleta de marca: Azul #0874BD · Ciruela #A44B5F · Magenta #872E84
                    Naranja #F09B0F · Blanco #FFFFFF · Gris claro #EFEFEF
   Los tonos oscuros (texto y fondo del modo oscuro) se derivan de la
   misma paleta mezclándola con negro; no se introducen otros matices.
   ========================================================================== */

/* ---------- Fuentes (autohospedadas, subconjunto latino) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --azul: #0874BD;
  --ciruela: #A44B5F;
  --magenta: #872E84;
  --naranja: #F09B0F;
  --blanco: #FFFFFF;
  --gris: #EFEFEF;

  --ink: color-mix(in srgb, var(--magenta) 22%, #000);
  --ink-soft: color-mix(in srgb, var(--magenta) 46%, #000);
  --night: color-mix(in srgb, var(--magenta) 14%, color-mix(in srgb, var(--azul) 14%, #000));

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --grad-brand: linear-gradient(90deg, var(--azul), var(--magenta) 40%, var(--ciruela) 70%, var(--naranja));
  --grad-text: linear-gradient(90deg, var(--azul), var(--magenta) 55%, var(--ciruela));

  color-scheme: light;
  --bg: var(--blanco);
  --bg-alt: var(--gris);
  --surface: var(--blanco);
  --surface-2: var(--gris);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --link: var(--azul);
  --accent: var(--naranja);
  --on-accent: var(--ink);
  --shadow: 0 10px 30px color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, var(--ink) 18%, transparent);
  --focus: var(--magenta);
  --header-bg: color-mix(in srgb, var(--blanco) 86%, transparent);
  --hl: var(--magenta);
}

/* Modo oscuro: respeta la preferencia del sistema si no hay elección manual */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--night);
    --bg-alt: color-mix(in srgb, var(--azul) 9%, var(--night));
    --surface: color-mix(in srgb, var(--azul) 13%, var(--night));
    --surface-2: color-mix(in srgb, var(--blanco) 8%, var(--night));
    --text: var(--blanco);
    --text-muted: color-mix(in srgb, var(--gris) 80%, var(--night));
    --line: color-mix(in srgb, var(--blanco) 16%, transparent);
    --link: var(--naranja);
    --shadow: 0 10px 30px color-mix(in srgb, #000 40%, transparent);
    --shadow-lg: 0 24px 60px color-mix(in srgb, #000 55%, transparent);
    --focus: var(--naranja);
    --header-bg: color-mix(in srgb, var(--night) 86%, transparent);
    --hl: var(--naranja);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--night);
  --bg-alt: color-mix(in srgb, var(--azul) 9%, var(--night));
  --surface: color-mix(in srgb, var(--azul) 13%, var(--night));
  --surface-2: color-mix(in srgb, var(--blanco) 8%, var(--night));
  --text: var(--blanco);
  --text-muted: color-mix(in srgb, var(--gris) 80%, var(--night));
  --line: color-mix(in srgb, var(--blanco) 16%, transparent);
  --link: var(--naranja);
  --shadow: 0 10px 30px color-mix(in srgb, #000 40%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, #000 55%, transparent);
  --focus: var(--naranja);
  --header-bg: color-mix(in srgb, var(--night) 86%, transparent);
  --hl: var(--naranja);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--azul); color: var(--blanco); padding: .7rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hl); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--grad-brand); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.hl { color: var(--hl); }
.hl-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hl-grad { background: none; color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl-grad { background: none; color: var(--naranja); } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn--primary { background: var(--azul); color: var(--blanco); }
.btn--accent { background: var(--naranja); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--ciruela { background: var(--ciruela); color: var(--blanco); }
.btn--magenta { background: var(--magenta); color: var(--blanco); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__link { display: block; padding: .55rem .8rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="true"] { background: var(--azul); color: var(--blanco); }
.header-tools { display: flex; align-items: center; gap: .35rem; }
.social { display: flex; align-items: center; gap: .15rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn .i { width: 1.2rem; height: 1.2rem; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; }
.nav__extras { display: none; }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-grid; }
  .header-tools .social { display: none; }
  .header-tools { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .3s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { font-size: 1.05rem; padding: .8rem 1rem; border-radius: 12px; }
  .nav__extras { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--azul) 18%, transparent), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 55%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--magenta) 14%, transparent), transparent); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__kicker { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hl); margin-bottom: 1rem; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 56ch; margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.store { display: inline-flex; align-items: center; gap: .75rem; min-height: 54px; padding: .5rem 1.15rem .5rem 1rem; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.store .i { width: 1.9rem; height: 1.9rem; }
.store small { display: block; font-size: .7rem; line-height: 1.1; opacity: .85; }
.store strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.15; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts .i { color: var(--hl); }

/* Maqueta visual del hero (decorativa) */
.hero__visual { position: relative; min-height: 440px; padding-bottom: 3rem; }
.px { position: absolute; border-radius: 4px; }
.px--1 { width: 54px; height: 54px; top: -6px; right: 8%; background: var(--grad-brand); opacity: .9; }
.px--2 { width: 34px; height: 34px; top: 38px; right: 0; background: var(--naranja); }
.px--3 { width: 40px; height: 40px; bottom: 6%; left: -2%; background: var(--azul); opacity: .9; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mock--console { position: relative; width: min(100%, 470px); margin-inline: auto 0; padding: 1rem 1.1rem 1.15rem; }
.mock__bar { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ciruela); }
.mock__bar i:nth-child(2) { background: var(--naranja); }
.mock__bar i:nth-child(3) { background: var(--azul); }
.mock__bar b { margin-left: .5rem; }
.mock__title { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.mock__title .i { color: var(--hl); }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 1rem; }
.tiles span { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); }
.tiles .t-a { background: var(--azul); }
.tiles .t-c { background: var(--ciruela); }
.tiles .t-m { background: var(--magenta); }
.tiles .t-o { background: var(--naranja); }
.slots { display: grid; gap: .5rem; }
.slot { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.slot .i { width: 1.05rem; height: 1.05rem; }
.slot--a .i { color: var(--azul); } .slot--c .i { color: var(--ciruela); } .slot--o .i { color: var(--naranja); }
:root[data-theme="light"] .slot--o .i { color: var(--ciruela); }
:root[data-theme="dark"] .slot--c .i { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slot--c .i { color: var(--naranja); } }
.mock--phone { position: absolute; right: -1.5rem; bottom: -3.5rem; width: 176px; padding: .8rem; text-align: center; z-index: 2; border-radius: 28px; }
.mock--phone img { width: 92px; margin: .2rem auto .8rem; }
.mock--phone p { margin: 0; font-size: .74rem; line-height: 1.25; font-weight: 700; display: flex; align-items: center; justify-content: flex-start; gap: .4rem; padding: .45rem .55rem; border-radius: 10px; background: var(--surface-2); text-align: left; }
.mock--phone p + p { margin-top: .4rem; }
.mock--phone .i { color: var(--azul); }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px; background: var(--naranja); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow); }
.chip--a { left: 1rem; top: -1.3rem; }
.chip--b { left: 2%; bottom: -1.2rem; background: var(--azul); color: var(--blanco); }
@media (max-width: 959px) { .hero__visual { min-height: 400px; max-width: 520px; margin-inline: auto; width: 100%; margin-top: 1.5rem; } }
@media (max-width: 480px) { .mock--phone { width: 150px; right: -.4rem; bottom: -3rem; } .mock--phone p { font-size: .68rem; } .chip { font-size: .74rem; } }
@media (prefers-reduced-motion: no-preference) {
  .mock--phone { animation: float 6s ease-in-out infinite; }
  .chip--a { animation: float 7s ease-in-out infinite reverse; }
  .chip--b { animation: float 8s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-9px); } }
}

/* ---------- Grids genéricos y tarjetas ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--azul) 45%, var(--line)); }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem; background: var(--azul); color: var(--blanco); }
.tile .i { width: 1.5rem; height: 1.5rem; }
.tile--c { background: var(--ciruela); } .tile--m { background: var(--magenta); } .tile--o { background: var(--naranja); color: var(--ink); }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr .9fr; } }
.objective { margin-top: 1.5rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--azul); color: var(--blanco); }
.objective h3 { color: var(--blanco); margin-bottom: .4rem; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.objective p { margin: 0; font-size: 1.08rem; font-weight: 600; }
.goals { display: grid; gap: .8rem; }
.goals li { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.goals .tile { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.goals h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hl); margin-bottom: .2rem; }
.challenge { margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.challenge h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .92rem; }
.pill .i { color: var(--ciruela); }
:root[data-theme="dark"] .pill .i { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill .i { color: var(--naranja); } }

/* Audiencia */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.audience li { display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; padding: 1.4rem .8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: .95rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.audience li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience .i { width: 2rem; height: 2rem; color: var(--magenta); }
.audience li:nth-child(even) .i { color: var(--ciruela); }
:root[data-theme="dark"] .audience .i { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .audience .i { color: var(--naranja); } }
.extras { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.extras strong { font-family: var(--font-head); margin-right: .4rem; }

/* Experiencia */
.exp { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .exp { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.exp__panel { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--azul); }
.exp__panel--mobile { border-top-color: var(--naranja); }
.exp__panel h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.exp__panel > p { color: var(--text-muted); }
.checks { display: grid; gap: .65rem; margin-top: 1.2rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; }
.checks .i { color: var(--magenta); margin-top: .25em; }
:root[data-theme="dark"] .checks .i { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks .i { color: var(--naranja); } }
.exp__join { display: grid; place-items: center; }
.exp__join span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--grad-brand); color: var(--blanco); font-family: var(--font-head); font-weight: 800; font-size: 1rem; text-align: center; line-height: 1.1; box-shadow: var(--shadow); text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 60%, transparent); }

/* Beneficios */
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit .tile { margin: 0; flex: none; }
.benefit h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.why { margin-top: clamp(2.5rem, 6vw, 4rem); }
.why h3 { text-align: center; margin-bottom: 1.4rem; font-size: 1.35rem; }
.why .pill { background: var(--surface); border: 1px solid var(--line); }

/* Visión */
.vision { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .vision { grid-template-columns: 1fr auto 1fr; } }
.vcard { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.vcard__tag { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.2rem; border-radius: 999px; font-family: var(--font-head); font-weight: 800; background: var(--naranja); color: var(--ink); margin-bottom: 1.3rem; }
.vcard--after { border: 2px solid var(--azul); box-shadow: var(--shadow); }
.vcard--after .vcard__tag { background: var(--azul); color: var(--blanco); }
.vcard li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; font-weight: 600; border-bottom: 1px dashed var(--line); }
.vcard li:last-child { border-bottom: 0; }
.vcard--before .i { color: var(--ciruela); }
.vcard--after .i { color: var(--azul); }
:root[data-theme="dark"] .vcard--before .i, :root[data-theme="dark"] .vcard--after .i { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vcard--before .i, :root:not([data-theme="light"]) .vcard--after .i { color: var(--naranja); } }
.vision__arrow { display: grid; place-items: center; color: var(--hl); }
.vision__arrow .i { width: 2.4rem; height: 2.4rem; transform: rotate(90deg); }
@media (min-width: 900px) { .vision__arrow .i { transform: none; } }

/* Pasos animados */
.steps { position: relative; }
.steps__list { position: relative; display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.steps__line { position: absolute; background: var(--line); border-radius: 4px; left: 31px; top: 32px; bottom: 32px; width: 4px; overflow: hidden; }
.steps__line::after { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--progress, 0) * 1%); background: var(--grad-brand); border-radius: 4px; transition: height .9s var(--ease); background-size: 100% 400%; }
@media (min-width: 900px) {
  .steps__line { left: 12.5%; right: 12.5%; top: 31px; bottom: auto; height: 4px; width: auto; }
  .steps__line::after { inset: 0 auto 0 0; height: auto; width: calc(var(--progress, 0) * 1%); transition: width .9s var(--ease); background-size: 400% 100%; }
}
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.step__dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 4px solid var(--line); color: var(--text-muted); transition: transform .5s var(--ease), background-color .4s, border-color .4s, color .4s, box-shadow .4s; }
.step__dot .i { width: 1.6rem; height: 1.6rem; }
.step__num { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--font-head); font-weight: 800; font-size: .8rem; }
.step__body { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
@media (min-width: 900px) { .step__body { height: 100%; } }
.step__body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step__body p { margin: 0; font-size: .96rem; color: var(--text-muted); }
.js .step:not(.is-active) .step__body { opacity: .55; }
.step.is-active .step__dot { background: var(--azul); border-color: var(--azul); color: var(--blanco); transform: scale(1.1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--azul) 22%, transparent); }
.step:nth-of-type(2).is-active .step__dot { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 0 8px color-mix(in srgb, var(--magenta) 22%, transparent); }
.step:nth-of-type(3).is-active .step__dot { background: var(--ciruela); border-color: var(--ciruela); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ciruela) 22%, transparent); }
.step:nth-of-type(4).is-active .step__dot { background: var(--naranja); border-color: var(--naranja); color: var(--ink); box-shadow: 0 0 0 8px color-mix(in srgb, var(--naranja) 28%, transparent); }
.step.is-active .step__body { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--azul) 40%, var(--line)); }
.step.is-current .step__dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.2); } }
.steps__replay { display: flex; justify-content: center; margin-top: 2rem; }

/* Planes */
.billing { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 2.5rem; font-family: var(--font-head); font-weight: 700; }
.billing__label { color: var(--text-muted); transition: color .2s; cursor: pointer; }
.billing__label.is-on { color: var(--text); }
.switch { position: relative; width: 68px; height: 36px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--azul); transition: background-color .3s; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--blanco); box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 40%, transparent); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: var(--magenta); }
.switch[aria-checked="true"]::after { transform: translateX(32px); }
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 8px solid var(--azul); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--basic { border-top-color: var(--ciruela); }
.plan--pro { border-top-color: var(--magenta); background: var(--surface-2); }
.plan--custom { border-top-color: var(--naranja); border-style: dashed; border-top-style: solid; }
.plan h3 { font-size: 1.25rem; text-align: center; margin-bottom: .3rem; }
.price { text-align: center; margin-bottom: 1.2rem; min-height: 4.4rem; }
.price__amount { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1.1; }
.price__period { display: block; font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.price--text .price__amount { font-size: 1.5rem; line-height: 1.3; }
.plan .checks { margin: 0 0 1.5rem; gap: .5rem; font-size: .95rem; }
.plan .checks li { font-weight: 500; }
.plan .checks .i { width: 1.05rem; height: 1.05rem; }
.plan .btn { margin-top: auto; }
.plans__note { text-align: center; margin: 1.8rem 0 0; font-size: .92rem; color: var(--text-muted); }

/* Aliado */
.partner { display: grid; gap: 2rem; align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: calc(var(--radius) + 6px); background: var(--azul); color: var(--blanco); position: relative; overflow: hidden; }
@media (min-width: 900px) { .partner { grid-template-columns: 1fr 1.1fr; } }
.partner h2, .partner h3 { color: var(--blanco); }
.partner p { color: var(--blanco); }
.partner .pill { background: color-mix(in srgb, var(--blanco) 16%, transparent); color: var(--blanco); }
.partner .pill .i { color: var(--naranja); }
.partner .btn--ghost { color: var(--blanco); border-color: var(--blanco); }
.partner .btn--ghost:hover { background: var(--blanco); color: var(--azul); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--azul); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; min-height: 56px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .3s var(--ease); color: var(--hl); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* Contacto */
.contact { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; } }
.info { display: grid; gap: 1rem; margin: 1.6rem 0; }
.info li { display: flex; gap: 1rem; align-items: flex-start; }
.info .tile { margin: 0; width: 46px; height: 46px; flex: none; border-radius: 12px; }
.info h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hl); margin-bottom: .1rem; }
.info p, .info address { margin: 0; font-style: normal; }
.info a { word-break: break-word; }
.form { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.form__grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px color-mix(in srgb, var(--azul) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--ciruela); }
.field__err { display: none; margin-top: .3rem; font-size: .85rem; font-weight: 600; color: var(--ciruela); }
:root[data-theme="dark"] .field__err { color: var(--naranja); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__err { color: var(--naranja); } }
.field [aria-invalid="true"] ~ .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label.consent { display: flex; font-weight: 400; margin: 0; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.consent input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--azul); }
.form__status { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }
.privacy-note { margin-top: 1.4rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; }
.privacy-note h3 { font-size: 1rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.privacy-note p { margin: 0 0 .5rem; color: var(--text-muted); }
.privacy-note p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--night); color: var(--blanco); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--blanco); text-decoration: none; }
.site-footer a:hover { color: var(--naranja); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--naranja); }
.footer__grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-bottom: 2.5rem; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--gris); font-size: .95rem; max-width: 34ch; }
.site-footer h3 { color: var(--blanco); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__list { display: grid; gap: .55rem; font-size: .95rem; color: var(--gris); }
.footer__list li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__list .i { color: var(--naranja); margin-top: .25em; width: 1rem; height: 1rem; }
.footer__list address { font-style: normal; }
.footer__social { display: flex; gap: .4rem; margin-top: 1rem; }
.footer__social .icon-btn { color: var(--blanco); border: 1px solid color-mix(in srgb, var(--blanco) 28%, transparent); }
.footer__social .icon-btn:hover { background: var(--naranja); color: var(--ink); }
.footer__bottom { border-top: 1px solid color-mix(in srgb, var(--blanco) 18%, transparent); padding-block: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .9rem; color: var(--gris); }
.footer__bottom a { text-decoration: underline; }

/* Subir */
.to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 55; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--naranja); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .i { width: 1.4rem; height: 1.4rem; }

/* Optimización de renderizado en bloques bajo el pliegue */
.defer { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* Revelado al hacer scroll (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .step:not(.is-active) .step__body { opacity: 1; }
}

/* Impresión */
@media print {
  .site-header, .to-top, .hero__visual, .stores, .form { display: none !important; }
  body { color: var(--ink); background: var(--blanco); }
}
