/* MIC Consulting — sitio público. Mobile-first.
   Paleta: azul marino + dorado arena (referencia de diseño) con el turquesa del logo como acento puntual.
   Tipografía: Newsreader (títulos, cifras) + Instrument Sans (texto e interfaz).
   La CSP no permite style="" en línea: los valores dinámicos se fijan vía CSSOM desde site.js. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #10293d;
  --navy-deep: #0a1c2a;
  --gold: #c8a465;
  --gold-soft: #efe5cf;
  --gold-ink: #7d5f27;
  --teal: #32b0aa;        /* turquesa del logo: sobre azul y en modo oscuro */
  --teal-ink: #1a7a75;    /* mismo tono, más profundo: texto e íconos sobre blanco (5,1:1) */
  --teal-soft: #e2f4f3;

  --paper: #ffffff;
  --mist: #f3f5f7;
  --line: #e1e6eb;
  --ink: #10293d;
  --text: #3c4f5e;
  --muted: #687a88;
  --veil: 255, 255, 255;
  --card-shadow: 0 1px 0 rgba(16, 41, 61, .04), 0 24px 40px -36px rgba(16, 41, 61, .45);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 10px;
  --gutter: 16px;
  --hdr-h: 64px;
  --ann-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1b27; --mist: #132434; --line: #223649; --ink: #eef2f5; --text: #c2ceD8; --muted: #8fa1af;
    --gold: #d6b97c; --gold-soft: #2b2a22; --gold-ink: #d6b97c; --teal-ink: #32b0aa; --teal-soft: #15343a; --veil: 13, 27, 39;
    --card-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 40px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1b27; --mist: #132434; --line: #223649; --ink: #eef2f5; --text: #c2ced8; --muted: #8fa1af;
  --gold: #d6b97c; --gold-soft: #2b2a22; --gold-ink: #d6b97c; --teal-ink: #32b0aa; --teal-soft: #15343a; --veil: 13, 27, 39;
  --card-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 24px 40px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tipografía */
.h2 { font: 400 clamp(2rem, 1.45rem + 2.6vw, 3.15rem)/1.08 var(--serif); letter-spacing: -.012em; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
.label { font: 500 .9rem/1.3 var(--sans); color: var(--gold-ink); margin-bottom: .9rem; }
.label--light { color: var(--teal); }
.fineprint { margin-top: 1.6rem; max-width: 78ch; font-size: .84rem; line-height: 1.7; color: var(--muted); }

/* Botones */
.btn { --bg: var(--navy); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg); font: 600 .96rem/1.2 var(--sans); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .ico { width: 18px; height: 18px; }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .9rem; }
.btn--ink { --bg: var(--navy); --fg: #fff; }
.btn--ink:hover { --bg: #1b3c57; }
.btn--gold { --bg: var(--gold); --fg: #1d1606; }
.btn--gold:hover { --bg: #d8b97c; }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--line-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--line-light:hover { border-color: #fff; }
:root[data-theme="dark"] .btn--ink { --bg: var(--gold); --fg: #1d1606; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--ink { --bg: var(--gold); --fg: #1d1606; } }

.ulink { display: inline-block; font-weight: 600; color: var(--ink); padding-bottom: 3px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.ulink:hover { background-size: 40% 1px; background-image: linear-gradient(var(--teal), var(--teal)); }

/* ---------- Banner informativo ---------- */
.ann { position: relative; z-index: 51; font-size: .88rem; line-height: 1.4; }
.ann--dorado { background: var(--gold); color: #1d1606; }
.ann--azul { background: var(--navy); color: #fff; }
.ann--turquesa { background: var(--teal); color: #04201f; }
.ann--claro { background: var(--mist); color: var(--ink); border-bottom: 1px solid var(--line); }
.ann__inner { display: flex; align-items: center; gap: .75rem; min-height: 42px; padding-block: .45rem; }
.ann__text { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .65rem; text-align: center; }
.ann__tag { font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .1); font-size: .78rem; }
.ann--azul .ann__tag { background: var(--gold); color: #1d1606; }
.ann__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ann__close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit; }
.ann__close:hover { background: rgba(0, 0, 0, .08); }
.ann__close .ico { width: 16px; height: 16px; }
.ann.is-closing { animation: annOut .45s var(--ease) forwards; }
@keyframes annOut { to { margin-top: calc(var(--ann-h) * -1); opacity: 0; } }

/* ---------- Encabezado ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(var(--veil), .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -28px rgba(16, 41, 61, .5); }
.hdr__bar { height: var(--hdr-h); display: flex; align-items: center; gap: 1rem; }
.hdr__brand { display: flex; align-items: center; margin-right: auto; }
.hdr__logo { height: 38px; width: auto; transition: height .3s var(--ease); }
.hdr__logo--white { display: none; }
:root[data-theme="dark"] .hdr__logo--color { display: none; }
:root[data-theme="dark"] .hdr__logo--white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hdr__logo--color { display: none; }
  :root:not([data-theme="light"]) .hdr__logo--white { display: block; }
}
.hdr__nav { display: none; }
.hdr__actions { display: flex; align-items: center; gap: .5rem; }
.hdr__cta { display: none; }
.theme-btn, .hdr__toggle { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .25s, background-color .25s; }
.theme-btn:hover, .hdr__toggle:hover { border-color: var(--ink); }
.theme-btn .ico { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .5s var(--ease), opacity .3s; }
.theme-btn__sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-btn__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn__sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn__moon { opacity: 0; transform: rotate(90deg) scale(.6); }
}
.hdr__burger { position: relative; width: 18px; height: 10px; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8.4px; }
.hdr.is-open .hdr__burger i:first-child { top: 4.2px; transform: rotate(45deg); }
.hdr.is-open .hdr__burger i:last-child { top: 4.2px; transform: rotate(-45deg); }

.sheet { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100svh - var(--hdr-h)); overflow-y: auto; animation: sheetIn .35s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }
.sheet__nav { padding-block: .5rem 1.5rem; }
.sheet__link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.sheet__link .ico { color: var(--gold-ink); }
.sheet__actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
body.menu-open { overflow: hidden; }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--paper); }
.hero__media { position: relative; height: clamp(260px, 52svh, 440px); overflow: hidden; background: var(--mist); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero[data-pos="center"] .hero__img { object-position: 50% 30%; }
.hero[data-pos="left"] .hero__img { object-position: 20% 30%; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, rgba(var(--veil), 0), rgba(var(--veil), 1)); }
.hero__body { position: relative; margin-top: -4.5rem; padding-bottom: 3.5rem; }
.hero__copy { max-width: 580px; }
.hero__label { margin-bottom: 1rem; }
.hero__title { font: 400 clamp(2.85rem, 1.7rem + 6.4vw, 5.6rem)/.98 var(--serif); letter-spacing: -.022em; color: var(--ink); font-optical-sizing: auto; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: block; }
/* Doble subrayado: en contabilidad marca el total final. Aquí cierra el título. */
.hero__rule, .total::after { display: block; width: 92px; height: 7px; border-block: 2px solid var(--gold); }
.hero__rule { margin: 1.5rem 0 1.4rem; transform-origin: left center; }
.hero__sub { font: italic 400 clamp(1.3rem, 1.1rem + 1vw, 1.75rem)/1.3 var(--serif); color: var(--ink); }
.hero__text { margin-top: .9rem; max-width: 46ch; font-size: 1.04rem; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }

/* Secuencia de entrada (una sola, al cargar) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__img { transform: scale(1.06); opacity: 0; transition: transform 1.8s var(--ease), opacity 1.1s ease; }
  .js .hero__label, .js .hero__sub, .js .hero__text, .js .hero__actions { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .9s var(--ease); }
  .js .hero__line > span { transform: translateY(105%); transition: transform 1.05s var(--ease); }
  .js .hero__rule { transform: scaleX(0); transition: transform .9s var(--ease); }
  .js .strip__bar { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform 1s var(--ease); }
  .is-loaded .hero__img { transform: none; opacity: 1; }
  .is-loaded .hero__label { opacity: 1; transform: none; transition-delay: .15s; }
  .is-loaded .hero__line > span { transform: none; }
  .is-loaded .hero__line:nth-child(1) > span { transition-delay: .25s; }
  .is-loaded .hero__line:nth-child(2) > span { transition-delay: .37s; }
  .is-loaded .hero__line:nth-child(3) > span { transition-delay: .49s; }
  .is-loaded .hero__rule { transform: none; transition-delay: .85s; }
  .is-loaded .hero__sub { opacity: 1; transform: none; transition-delay: .95s; }
  .is-loaded .hero__text { opacity: 1; transform: none; transition-delay: 1.05s; }
  .is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 1.15s; }
  .is-loaded .strip__bar { opacity: 1; transform: none; transition-delay: 1.25s; }
}

/* ---------- Franja azul ---------- */
.strip { position: relative; z-index: 2; padding-inline: 0; }
.strip__bar { display: grid; background: var(--navy-deep); color: #fff; }
.strip__brand { display: flex; align-items: center; gap: .8rem; padding: 1.1rem var(--gutter); font: 500 .95rem/1.2 var(--sans); color: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.strip__brand img { height: 30px; width: auto; }
.strip__areas { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem var(--gutter); }
.strip__areas a { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: .86rem; color: rgba(255, 255, 255, .82); transition: border-color .25s, color .25s; }
.strip__areas a:hover { border-color: var(--teal); color: #fff; }
.strip__wa { display: flex; align-items: center; gap: .9rem; padding: 1.1rem var(--gutter); background: var(--gold); color: #1d1606; }
.strip__waIco { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(29, 22, 6, .3); }
.strip__wa small { display: block; font-size: .82rem; opacity: .8; }
.strip__wa strong { display: block; font: 500 1.3rem/1.2 var(--serif); letter-spacing: .01em; }
.strip__wa:hover .strip__waIco { background: rgba(29, 22, 6, .08); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.shead { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); }
.shead .h2 { max-width: 18ch; }
.shead__text { max-width: 52ch; color: var(--text); }

/* Servicios: tarjetas como en la referencia (fondo gris suave, ícono de línea, texto centrado) */
.cards { display: grid; gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.1rem 1.6rem 1.7rem; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); transition: border-color .3s, background-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--paper); box-shadow: var(--card-shadow); }
.card__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: var(--teal-soft); color: var(--teal-ink); margin-bottom: 1.2rem; transition: border-color .3s, color .3s; }
.card__ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }
.card:hover .card__ico { border-color: var(--teal); }
.card__area { font-size: .84rem; color: var(--muted); margin-bottom: .35rem; }
.card__title { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); margin-bottom: .7rem; }
.card__text { font-size: .94rem; line-height: 1.65; color: var(--text); max-width: 34ch; }
.card__link { margin-top: auto; padding-top: 1.3rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.card__link { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px; }

.card--online { align-items: stretch; text-align: left; background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .78); padding: 2rem 1.6rem; gap: 1.6rem; }
.card--online:hover { background: var(--navy); border-color: var(--navy); }
.card--online .card__ico { background: transparent; border-color: rgba(50, 176, 170, .45); color: var(--teal); }
.card--online .card__area { color: var(--teal); }
.card--online .card__title { color: #fff; font-size: 1.85rem; }
.card--online .card__text { color: rgba(255, 255, 255, .75); max-width: 52ch; }
.online__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; color: #fff; }
.online__price .total { font: 400 3rem/1 var(--serif); }
.total { display: inline-block; }
.total::after { content: ""; width: 100%; height: 6px; margin-top: .35rem; }
.online__price small { font-size: .95rem; color: rgba(255, 255, 255, .7); }
.online__actions { display: grid; gap: .6rem; margin-top: 1.4rem; }

/* En oscuro el visto de la casilla va en azul profundo sobre el turquesa */
:root[data-theme="dark"] .consent__input:checked + .consent__label .consent__box { color: #062523; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .consent__input:checked + .consent__label .consent__box { color: #062523; } }

/* En modo oscuro el azul de las tarjetas destacadas se acerca al fondo: un filete dorado las separa */
:root[data-theme="dark"] .card--online, :root[data-theme="dark"] .plan--hi { border-color: color-mix(in srgb, var(--gold) 38%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card--online, :root:not([data-theme="light"]) .plan--hi { border-color: color-mix(in srgb, var(--gold) 38%, transparent); } }

/* Nosotros: foto + texto + valores desplegables (como el bloque de equipo de la referencia) */
.about { background: var(--paper); border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 2.2rem; }
.about__photo { border-radius: var(--r-lg); overflow: hidden; background: var(--mist); aspect-ratio: 6 / 5; }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__title { max-width: 16ch; }
.about__lead { margin-top: 1.1rem; font: italic 400 1.3rem/1.4 var(--serif); color: var(--ink); }
.about__text { margin: 1rem 0 1.5rem; max-width: 56ch; }
.values { display: grid; gap: 10px; align-content: start; }
.value { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); transition: border-color .3s, box-shadow .3s; }
.value[open] { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: var(--card-shadow); }
.value__sum { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.value__sum::-webkit-details-marker { display: none; }
.value__ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); }
.value__ico .ico { width: 18px; height: 18px; }
.value__name { flex: 1; font: 500 1.2rem/1.2 var(--serif); color: var(--ink); }
.value__chev { width: 18px; height: 18px; color: var(--muted); transition: transform .4s var(--ease); }
.value[open] .value__chev { transform: rotate(180deg); color: var(--gold-ink); }
.value__body { padding: 0 1.1rem 1.15rem calc(1.1rem + 38px + .85rem); font-size: .95rem; color: var(--text); }
/* Apertura animada donde el navegador lo permite (respuesta a la acción del usuario) */
@supports (interpolate-size: allow-keywords) {
  .values { interpolate-size: allow-keywords; }
  .value::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .value[open]::details-content { height: auto; }
}

/* Frase destacada */
.quote { background: var(--navy-deep); color: #fff; padding-block: clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.quote__grid { display: grid; gap: 2.4rem; align-items: center; }
.quote__title { font: 400 clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 2rem; text-wrap: balance; }
.quote__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .05); }
.quote__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }

/* Planes */
.plans { background: var(--mist); }
.plans__grid { display: grid; gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.7rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.plan--hi { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .75); }
.plan__badge { position: absolute; top: -13px; left: 1.6rem; padding: .3rem .8rem; border-radius: 999px; background: var(--gold); color: #1d1606; font-size: .8rem; font-weight: 600; }
.plan__for { font-size: .86rem; color: var(--teal-ink); font-weight: 500; }
.plan--hi .plan__for { color: var(--gold); }
.plan__title { font: 500 1.65rem/1.2 var(--serif); color: var(--ink); margin: .3rem 0 1.4rem; }
.plan--hi .plan__title { color: #fff; }
.plan__rows { display: grid; }
.plan__row { padding-block: 1rem; border-top: 1px solid var(--line); }
.plan--hi .plan__row { border-color: rgba(255, 255, 255, .12); }
.plan__price { display: flex; align-items: baseline; gap: .45rem; }
.plan__num { font: 400 2.6rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.plan--hi .plan__num { color: #fff; }
.plan__unit { font-size: .86rem; font-weight: 600; color: var(--gold-ink); }
.plan--hi .plan__unit { color: var(--gold); }
.plan__detail { margin-top: .3rem; font-size: .92rem; line-height: 1.55; }
.plan__cta { margin-top: auto; align-self: stretch; }
.plan__rows + .plan__cta { margin-top: 1.4rem; }
.plan--hi .btn--line { --fg: #fff; border-color: rgba(255, 255, 255, .3); }

/* Recursos */
.res__grid { display: grid; gap: 14px; }
.res { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center; padding: .7rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, box-shadow .4s var(--ease); }
.res:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--card-shadow); }
.res__tile { height: 96px; display: grid; place-items: center; border-radius: var(--r); background: var(--navy); color: var(--gold); overflow: hidden; }
.res__tile span { font: 500 1.35rem/1 var(--serif); letter-spacing: -.01em; padding: 0 .4rem; text-align: center; }
li:nth-child(2) > .res .res__tile { background: var(--gold-soft); color: var(--navy); }
li:nth-child(3) > .res .res__tile { background: var(--teal-soft); color: var(--teal-ink); }
:root[data-theme="dark"] li:nth-child(2) > .res .res__tile { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) li:nth-child(2) > .res .res__tile { color: var(--gold); } }
.res__body { display: grid; gap: .2rem; padding-right: .5rem; }
.res__topic { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--gold-ink); font-weight: 600; }
.res__topic .ico { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.res:hover .res__topic .ico { transform: translate(2px, -2px); }
.res__title { font: 500 1.15rem/1.25 var(--serif); color: var(--ink); }
.res__text { font-size: .88rem; line-height: 1.5; color: var(--muted); }

/* Contacto */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 2.5rem; }
.contact__text { margin-top: 1.1rem; max-width: 46ch; }
.direct { display: grid; gap: 10px; margin-top: 2rem; }
.direct a, .direct__row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .3s; }
.direct a:hover { border-color: var(--gold); }
.direct__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); }
.direct__ico .ico { width: 19px; height: 19px; }
.direct small { display: block; font-size: .8rem; color: var(--muted); }
.direct strong { display: block; font-weight: 600; color: var(--ink); word-break: break-word; }

.formcard { padding: 1.5rem 1.25rem; border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); }
.form__grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.field [aria-invalid="true"] { border-color: #c2412f; }
.field__error { font-size: .84rem; color: #c2412f; }
:root[data-theme="dark"] .field__error { color: #f08c7c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__error { color: #f08c7c; } }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select__chev { position: absolute; right: .9rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.form__alert { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fbe9e6; color: #8f2a1d; font-size: .92rem; }
.consent { position: relative; margin-top: 1.2rem; }
.consent__input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent__label { display: flex; gap: .7rem; font-size: .88rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent__label a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.consent__box { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--muted); background: var(--paper); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.consent__box .ico { width: 14px; height: 14px; stroke-width: 3; }
.consent__input:checked + .consent__label .consent__box { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.consent__input:focus-visible + .consent__label .consent__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent__input[aria-invalid="true"] + .consent__label .consent__box { border-color: #c2412f; }
.consent .field__error { margin: .4rem 0 0 2.1rem; }
.form__submit { width: 100%; margin-top: 1.4rem; }
.form__submit.is-loading { opacity: .7; pointer-events: none; }
.done { display: grid; justify-items: start; gap: .7rem; padding: 1rem .25rem; outline: none; }
.done__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); }
.done__ico .ico { width: 28px; height: 28px; }
.done__title { font: 400 2rem/1.15 var(--serif); color: var(--ink); }
.done__text { max-width: 44ch; }

/* ---------- Pie de página ---------- */
.ftr { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding-top: 4rem; font-size: .95rem; }
.ftr__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.ftr__logo { height: 64px; width: auto; }
.ftr__lead { margin: 1.2rem 0 1.6rem; max-width: 34ch; line-height: 1.7; }
.ftr__title { font: 500 .95rem/1.3 var(--sans); color: #fff; margin-bottom: 1rem; }
.ftr__list { display: grid; gap: .6rem; }
.ftr__list a:hover { color: var(--teal); }
.ftr__list--icons li { display: flex; align-items: flex-start; gap: .6rem; }
.ftr__list--icons .ico { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.social { display: flex; gap: .5rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--teal); color: var(--teal); }
.social .ico { width: 18px; height: 18px; }
.ftr__map { border-radius: var(--r-lg); overflow: hidden; min-height: 220px; background: rgba(255, 255, 255, .04); }
.ftr__map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; filter: grayscale(.25) contrast(1.05); }
.ftr__base { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.ftr__baseInner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding-block: 1.3rem calc(1.3rem + 72px); }
.ftr__baseInner a:hover { color: var(--gold); }
.ftr__top { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.ftr__top .ico { width: 16px; height: 16px; }

/* WhatsApp flotante */
.wa { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: .6rem; height: 54px; padding: 0 18px 0 15px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 14px 34px -14px rgba(10, 28, 42, .7); font-weight: 600; font-size: .92rem; transition: transform .35s var(--ease), box-shadow .35s; }
.wa:hover { transform: translateY(-2px); }
.wa__ico { width: 24px; height: 24px; color: #25d366; }
.wa__label { display: none; }

/* Página interior (Política de Privacidad) */
.legal { padding-block: 3.5rem 5rem; }
.legal__head { max-width: 860px; margin-bottom: 2.4rem; }
.legal__title { margin-bottom: 1rem; }
.legal__intro { font-size: 1.08rem; max-width: 68ch; }
.legal__date { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.legal__date .ico { width: 16px; height: 16px; }
.legal__grid { display: grid; gap: 2rem; }
.legal__toc { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--mist); border: 1px solid var(--line); font-size: .92rem; align-self: start; }
.legal__tocTitle { font-weight: 600; color: var(--ink); }
.legal__toc ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal__toc a:hover { color: var(--gold-ink); }
.legal__body { max-width: 72ch; }
.legal__sec { padding-top: 1.8rem; }
.legal__sec:first-child { padding-top: 0; }
.legal__sec h2 { font: 500 1.45rem/1.25 var(--serif); color: var(--ink); margin-bottom: .8rem; }
.legal__num { color: var(--gold-ink); }
.legal__sec p, .legal__sec ul { margin-bottom: .9rem; }
.legal__sec ul { list-style: disc; padding-left: 1.3rem; }
.legal__sec a, .legal__contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__todo { color: #b4541a; }
.legal__contact { display: flex; gap: 1rem; margin-top: 2.4rem; padding: 1.3rem 1.4rem; border-radius: var(--r); border: 1px solid var(--line); }
.legal__contactIco { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--gold-ink); }
.legal__contactTitle { font: 500 1.2rem/1.3 var(--serif); color: var(--ink); margin-bottom: .2rem; }
@media (min-width: 1024px) {
  .legal__grid { grid-template-columns: 270px 1fr; gap: 4rem; }
  .legal__toc { position: sticky; top: calc(var(--hdr-h) + 24px); }
}

/* Página de error */
.err { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.err__box { max-width: 460px; display: grid; justify-items: start; gap: .9rem; }
.err__box .hdr__logo { height: 52px; margin-bottom: 1rem; }
.err__code { font: 400 5.5rem/1 var(--serif); color: var(--gold-ink); }
.err__box h1 { font: 400 2rem/1.15 var(--serif); color: var(--ink); }
.err__box .btn { margin-top: .8rem; }

/* Aparición de grupos al hacer scroll (una vez, discreta) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease); }
  .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal-group].is-in > :nth-child(2) { transition-delay: .08s; }
  .js [data-reveal-group].is-in > :nth-child(3) { transition-delay: .16s; }
  .js [data-reveal-group].is-in > :nth-child(4) { transition-delay: .24s; }
  .js [data-reveal-group].is-in > :nth-child(5) { transition-delay: .32s; }
  .js [data-reveal-group].is-in > :nth-child(n+6) { transition-delay: .4s; }
}

/* Cambio de tema: el nuevo modo se revela en círculo desde el botón (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .7s var(--ease); }
@keyframes themeReveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- ≥ 640 px ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--online, .card--full2 { grid-column: 1 / -1; }
  .online__actions { grid-template-columns: auto auto; justify-content: start; }
  .res__grid { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .formcard { padding: 2rem; }
  .form__submit { width: auto; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .wa__label { display: inline; }
  .ftr__baseInner { padding-bottom: 1.3rem; }
  .strip { padding-inline: var(--gutter); }
  .strip__bar { grid-template-columns: 1fr auto; border-radius: 4px; overflow: hidden; }
  .strip__brand { grid-column: 1 / -1; }
  .strip__wa { padding-inline: 1.6rem; }
}

/* ---------- ≥ 1024 px ---------- */
@media (min-width: 1024px) {
  :root { --hdr-h: 84px; --gutter: 40px; }
  body { font-size: 1.0625rem; }
  .hdr__logo { height: 50px; }
  .hdr.is-scrolled .hdr__logo { height: 42px; }
  .hdr__nav { display: flex; gap: .3rem; margin-inline: auto; }
  .hdr__link { position: relative; padding: .5rem .85rem; font-size: .95rem; font-weight: 500; color: var(--text); transition: color .2s; }
  .hdr__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
  .hdr__link:hover, .hdr__link.is-active { color: var(--ink); }
  .hdr__link:hover::after, .hdr__link.is-active::after { transform: none; }
  .hdr__brand { margin-right: 0; }
  .hdr__cta { display: inline-flex; }
  .hdr__toggle, .sheet { display: none !important; }

  /* Portada: foto a pantalla completa con velo claro a la izquierda (como la referencia) */
  .hero { min-height: min(86svh, 860px); display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0; height: auto; }
  .hero__img { object-position: center 30%; }
  .hero__media::after { inset: 0; height: auto; background: linear-gradient(90deg, rgba(var(--veil), .96) 0%, rgba(var(--veil), .82) 30%, rgba(var(--veil), .2) 58%, rgba(var(--veil), 0) 72%); }
  .hero[data-veil="suave"] .hero__media::after { background: linear-gradient(90deg, rgba(var(--veil), .85) 0%, rgba(var(--veil), .55) 30%, rgba(var(--veil), 0) 58%); }
  .hero[data-veil="fuerte"] .hero__media::after { background: linear-gradient(90deg, rgba(var(--veil), 1) 0%, rgba(var(--veil), .92) 38%, rgba(var(--veil), .35) 62%, rgba(var(--veil), 0) 78%); }
  .hero__body { margin-top: 0; padding-block: 5rem 8rem; }

  .strip { margin-top: -52px; }
  .strip__bar { grid-template-columns: auto 1fr auto; align-items: stretch; min-height: 104px; }
  .strip__brand { grid-column: auto; padding: 0 2rem; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .1); }
  .strip__brand img { height: 36px; }
  .strip__areas { align-items: center; gap: .3rem 1.6rem; padding: 0 2rem; }
  .strip__areas a { border: 0; padding: .3rem 0; font-size: .94rem; position: relative; }
  .strip__areas a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
  .strip__areas a:hover::after { transform: none; }
  .strip__wa { padding: 0 2.2rem; min-width: 330px; }

  .shead { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; }
  .shead__text { justify-self: end; }
  .cards { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .card, .card--full2 { grid-column: span 2; }
  .card--half3 { grid-column: span 3; }
  .card--full3, .card--online { grid-column: 1 / -1; }
  .card--online { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.4rem 2.6rem; gap: 3rem; }
  .online__main { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.4rem; align-items: start; }
  .online__main .card__ico { grid-row: 1 / span 3; margin: 0; }
  .online__side { flex: none; text-align: right; }
  .online__price { justify-content: flex-end; }
  .online__price .total::after { margin-left: auto; }
  .online__actions { justify-content: end; }

  .about__grid { grid-template-columns: 5fr 5fr 3.6fr; gap: 3rem; align-items: center; }
  .quote__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .plans__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .plan { padding: 2.3rem 2rem 2rem; }
  .plan--hi { translate: 0 -14px; }
  .res__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .res { grid-template-columns: 1fr; padding: .8rem .8rem 1.4rem; align-items: start; }
  .res__tile { height: 150px; }
  .res__tile span { font-size: 2.4rem; }
  .res__body { padding: .4rem .6rem 0; }
  .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .formcard { padding: 2.4rem; }
  .ftr__grid { grid-template-columns: 1.4fr .8fr 1.1fr; gap: 3rem; }
  .ftr__grid--map { grid-template-columns: 1.3fr .7fr 1fr 1.3fr; }
  .wa { right: 24px; bottom: 24px; }
}

@media (min-width: 1280px) {
  .hero__copy { max-width: 620px; }
}
