/* ==========================================================================
   Lic. Verónica Zuka Martínez — estilos del sitio
   Estética tomada del flyer de la marca: fondo crema, manchas salvia y taupe,
   oliva oscuro como color de acción, nombre en serif + manuscrita, banda de
   pincel oliva para llamadas a la acción y pie.
   ========================================================================== */

:root {
  --bg: #F2ECE6;          /* crema del flyer */
  --surface: #F8F4EF;     /* papel, un tono más claro */
  --ink: #23271C;         /* tinta del nombre */
  --muted: #5B5D4C;
  --line: #DCD4C9;
  --accent: #52573E;      /* oliva de la banda */
  --on-accent: #F4EFE8;
  --sage: #C9C7B0;        /* mancha salvia */
  --sage-soft: #DEDCCC;
  --taupe: #E2DAD2;       /* mancha taupe */
  --footer: #52573E;
  --footer-ink: #F1ECE3;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Sacramento", "Segoe Script", cursive;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);  /* salida suave, sin rebote */
  --dur: .4s;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D2019; --surface: #262A21; --ink: #EDE7DC; --muted: #B5B3A2; --line: #3A3E31;
    --accent: #B9C09B; --on-accent: #1D2019; --sage: #4A4F3B; --sage-soft: #33382A; --taupe: #2B2E24;
    --footer: #383C2B; --footer-ink: #EDE7DC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1D2019; --surface: #262A21; --ink: #EDE7DC; --muted: #B5B3A2; --line: #3A3E31;
  --accent: #B9C09B; --on-accent: #1D2019; --sage: #4A4F3B; --sage-soft: #33382A; --taupe: #2B2E24;
  --footer: #383C2B; --footer-ink: #EDE7DC;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0; max-width: 65ch; }
.eyebrow { font-family: var(--body); font-size: .74rem; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.lead { font-size: 1.08rem; color: var(--muted); }
/* El "|" de los H1 del brief queda en el texto (buscadores, lectores de pantalla) y se ve como salto de línea */
.h1-sep { display: block; font-size: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Marcador de contenido pendiente: eliminar cuando se complete */
.placeholder { background: var(--sage-soft); border: 1px dashed var(--accent); border-radius: 4px; padding: 0 .35em; font-size: .92em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }

/* Nombre como en el flyer: "Verónica" en serif y "Zuka Martínez" manuscrito, cruzado debajo */
.brand { text-decoration: none; color: var(--ink); display: grid; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.brand-kicker { font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 1.45rem; }
.brand i { font-family: var(--script); font-style: normal; font-size: 1.55rem; color: var(--accent); margin: -1px 0 0 26px; }

.menu { display: flex; gap: 0; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 6px; font-size: .78rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; color: var(--ink); border-radius: 4px;
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.menu a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.menu a:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--sage); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; transition: background var(--dur) var(--ease); }
.menu-btn:hover { background: var(--sage-soft); }

@media (max-width: 999px) {
  .menu-btn { display: block; }
  .menu {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); flex-direction: column; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu a { padding: 12px 6px; font-size: .9rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--accent);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--sage-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; transition: outline-offset .2s var(--ease); }

/* ---------- Secciones ---------- */
main section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--surface); }
.intro { display: grid; gap: 18px; max-width: 760px; }
.mt { margin-top: 28px; }

.hero { position: relative; overflow: hidden; isolation: isolate; }
/* Ondas de fondo (adaptado de "WaVvVvVvVeSsS" de Nico Fonseca, sin GSAP):
   cada línea fluye en horizontal y "respira" (sube, gira y se estira) con valores propios */
.hero-waves {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; animation: waves-in 2.4s var(--ease) .3s forwards;
  /* tenues detrás del texto, plenas hacia la foto; se desvanecen arriba y abajo */
  -webkit-mask: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent),
                linear-gradient(to right, rgba(0, 0, 0, .3) 0 40%, #000 75%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent),
        linear-gradient(to right, rgba(0, 0, 0, .3) 0 40%, #000 75%);
  mask-composite: intersect;
}
.wave {
  transform-box: view-box; transform-origin: 50% 50%;
  animation: wave-breathe var(--d) var(--wave-ease) var(--delay) infinite alternate;
}
.wave-flow { animation: wave-flow var(--f) linear var(--delay) infinite; }
.hero-waves.is-paused .wave, .hero-waves.is-paused .wave-flow { animation-play-state: paused; }
@keyframes waves-in { to { opacity: .32; } }
@keyframes wave-flow { to { transform: translateX(-1920px); } }
@keyframes wave-breathe {
  from { transform: translateY(var(--y)) rotate(var(--r)) scale(var(--sx1), calc(var(--sy1) * .6)); opacity: var(--o1); }
  to { transform: translateY(calc(var(--y) * -1)) rotate(calc(var(--r) * -1)) scale(var(--sx2), calc(var(--sy2) * .6)); opacity: var(--o2); }
}

.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero-title { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; text-wrap: balance; }
.hero-title em {
  display: block; font-family: var(--script); font-style: normal; font-weight: 400;
  font-size: 1.35em; line-height: 1.05; color: var(--accent); margin-top: .1em;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--muted); }
.hero-meta span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); margin-right: 9px; vertical-align: middle;
}

/* Foto del hero sobre una mancha salvia, con la ramita dibujada */
.hero-figure { position: relative; margin: 0; isolation: isolate; }
.hero-figure::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -7% -5% 12%;
  background: var(--sage); border-radius: 46% 54% 38% 62% / 40% 44% 56% 60%;
}
.leaf { position: absolute; z-index: 1; left: -46px; top: -34px; width: 70px; color: var(--accent); }
.leaf-blob { position: absolute; z-index: -1; left: -58px; top: -10px; width: 68px; height: 84px; background: var(--sage-soft); border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; }

/* Hero con foto de fondo (Sobre mí): foto a todo el ancho, degradé oliva hacia abajo,
   texto centrado entre líneas finas y botón para seguir leyendo */
main section.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 760px); display: grid; place-items: center;
  padding-block: clamp(72px, 12vh, 120px) 48px; color: #F4EFE8; text-align: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(35, 39, 28, .2) 0%, rgba(35, 39, 28, .55) 45%, rgba(35, 39, 28, .92) 100%);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 115%;
  object-fit: cover; object-position: 50% 22%;
}
.page-hero-inner { display: grid; justify-items: center; gap: 22px; }
.page-hero-kicker { font-family: var(--body); font-size: .74rem; line-height: 1.6; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: inherit; }
.page-hero-title { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 6rem); line-height: 1; color: #F4EFE8; }
.page-hero-title span { display: block; margin-top: .35em; font-size: .36em; }
.page-hero-title i { font-family: var(--script); font-style: normal; font-size: 1.5em; color: #D9DCC4; }
.page-hero-line { width: 1px; height: 52px; background: currentColor; opacity: .7; }
.page-hero-lead { max-width: 42ch; font-size: 1.04rem; line-height: 1.7; }
.page-hero-down {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; color: inherit; margin-top: 6px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.page-hero-down svg { width: 22px; height: 22px; }
.page-hero-down:hover { background: #F4EFE8; color: #23271C; transform: translateY(3px); }
/* Parallax suave de la foto al hacer scroll (navegadores con animaciones por scroll) */
@supports (animation-timeline: view()) {
  .page-hero-bg { animation: hero-parallax linear both; animation-timeline: view(); animation-range: exit; }
  @keyframes hero-parallax { to { transform: translateY(12%); } }
}

/* Reemplazar .photo por <img> con la foto real (WebP, ancho ~800px, alt descriptivo) */
.photo {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: 28px;
  background: var(--sage-soft);
  display: grid; place-items: center; text-align: center; color: var(--muted);
  font-size: .85rem; padding: 20px;
}

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; }
.stack h3 { margin-top: 12px; }

/* Recorte orgánico, como las imágenes del flyer */
.photo-img {
  aspect-ratio: 4 / 5; width: 100%; height: auto;
  border-radius: 180px 220px 40px 200px / 200px 200px 40px 160px;
  object-fit: cover; object-position: center top;
}

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .photo, .photo-img, .hero-figure { max-width: 340px; }
  .hero-figure { margin-left: 40px; }
}

/* Caminos: columnas con divisor vertical e ícono en mancha salvia, como "Presencial | Online" */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.path {
  display: grid; gap: 12px; justify-items: center; align-content: start; text-align: center;
  padding: 8px 32px; text-decoration: none; color: var(--ink);
}
.path + .path { border-left: 1.5px solid var(--accent); }
.path-icon {
  width: 84px; height: 76px; display: grid; place-items: center; margin-bottom: 4px;
  background: var(--sage-soft); border-radius: 54% 46% 50% 50% / 58% 52% 48% 42%; color: var(--ink);
  transition: background-color .6s var(--ease), border-radius .9s var(--ease), transform .6s var(--ease);
}
.path:hover .path-icon { background: var(--sage); border-radius: 46% 54% 44% 56% / 50% 58% 42% 50%; transform: translateY(-2px); }
.path-icon svg { width: 42px; height: 42px; }
.path h3 { font-family: var(--body); font-size: .86rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.path p { color: var(--muted); font-size: .94rem; }
.path .more { font-size: .88rem; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-underline-offset var(--dur) var(--ease); }
.path:hover .more { text-underline-offset: 7px; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; gap: 36px; }
  .path + .path { border-left: 0; border-top: 1.5px solid var(--accent); padding-top: 36px; }
}

.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.4; max-width: 32ch; margin: 0; }
.quote-src { margin-top: 14px; font-family: var(--script); font-size: 1.9rem; line-height: 1.2; color: var(--accent); }

.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 36px; }
.topic { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.topic p { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); width: 44px; height: 40px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; color: var(--ink);
  background: var(--sage-soft); border-radius: 54% 46% 50% 50% / 58% 52% 48% 42%;
}
.steps p { color: var(--muted); font-size: .96rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card { background: var(--surface); border-radius: 22px; padding: 28px; display: grid; gap: 10px; align-content: start; transition: background-color var(--dur) var(--ease); }
.band .card { background: var(--bg); }
.card p { color: var(--muted); font-size: .94rem; }
.tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.testis { display: grid; gap: 20px; margin-top: 36px; }
.testi { background: var(--surface); border-left: 3px solid var(--sage); border-radius: 0 22px 22px 0; padding: 26px 28px; display: grid; gap: 12px; }
.testi blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.55; }
.testi cite { font-style: normal; font-size: .85rem; color: var(--muted); }

.faq h2 { margin-bottom: 24px; }
details { border-top: 1px solid var(--line); padding-block: 18px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform var(--dur) var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
}
details[open]::details-content { block-size: auto; }
details p { margin-top: 10px; color: var(--muted); }

/* Banda de pincel oliva, como la del teléfono en el flyer */
.cta-band { color: var(--on-accent); }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--accent); padding-block: 52px; padding-inline: clamp(28px, 6vw, 72px);
  -webkit-mask: url("/assets/brush.svg") center / 100% 100% no-repeat;
  mask: url("/assets/brush.svg") center / 100% 100% no-repeat;
}
.cta-band h2 { color: var(--on-accent); }
.cta-band .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.kv { display: grid; gap: 14px; margin: 0; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Formulario ---------- */
.consult-form { display: grid; gap: 14px; }
.consult-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; }
.consult-form input, .consult-form textarea, .consult-form select {
  font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.consult-form input:focus, .consult-form textarea:focus, .consult-form select:focus { border-color: var(--accent); background: var(--surface); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { background: var(--sage-soft); padding: 14px; border-radius: 12px; font-size: .92rem; }
.check { display: flex !important; gap: 10px !important; align-items: start; font-weight: 400 !important; }
.check input { width: auto !important; margin-top: 4px; accent-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer); color: var(--footer-ink); padding-block: 64px 104px; margin-top: 24px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: var(--footer);
  -webkit-mask: url("/assets/brush-edge.svg") center / 100% 100% no-repeat;
  mask: url("/assets/brush-edge.svg") center / 100% 100% no-repeat;
}
.site-footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer .grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--footer-ink); }
.site-footer h3 { font-size: 1.2rem; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: .9rem; opacity: .88; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .placeholder { background: transparent; border-color: currentColor; }
/* Redes sociales */
.site-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--footer-ink) 55%, transparent); color: var(--footer-ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: var(--footer-ink); color: var(--footer); border-color: var(--footer-ink); }
.social svg { width: 19px; height: 19px; }
.site-footer .social li { opacity: 1; }

.site-footer .motto { margin-top: 56px; font-family: var(--script); font-size: clamp(2.3rem, 5.5vw, 3.4rem); line-height: 1.15; text-align: center; text-wrap: balance; max-width: none; opacity: 1; }
.legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 25%, transparent); font-size: .78rem; opacity: .75; max-width: none; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #0B2B17; border-radius: 999px; padding: 13px 18px;
  font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.wa svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; background: rgba(29, 32, 25, .55); display: grid; place-items: center; padding: 16px;
  opacity: 0; transition: opacity .45s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: 32px; display: grid; gap: 18px; border-radius: 24px;
  transform: translateY(18px) scale(.985); transition: transform .5s var(--ease); }
.modal.is-open .modal-box { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-head h2 { font-size: 1.6rem; }
.modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
body.modal-open { overflow: hidden; }

/* ---------- Cambio de página con fundido (Chrome, Edge, Safari 18.2+; el resto navega normal) ---------- */
@view-transition { navigation: auto; }
/* La barra y el botón de WhatsApp quedan quietos; solo se funde el contenido */
.site-header { view-transition-name: site-header; }
.wa { view-transition-name: wa-button; }
::view-transition-old(root) { animation: vt-out .5s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .856s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Aparición al hacer scroll (la activa main.js; sin JS se ve todo) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, *::details-content { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-waves { opacity: .28; }
  .wave { transform: scale(2, .7); }
  @view-transition { navigation: none; }
}

/* Encabezados semánticos (h2) con tamaño visual de h3 */
.h3-size { font-size: 1.3rem; font-weight: 500; }
