/* Layout: identidad VIANIA — negro profundo, dorado de la V y beige arena. Columna central, bloques que alternan claro y negro. */
:root {
  --bg: #EEE4D3;
  --surface: #FAF6EE;
  --beige: #E2D1B3;
  --beige-ink: #3A3227;
  --ink: #131217;
  --muted: #5E5A66;
  --line: #D8C6A8;
  --accent: #8A691B;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6D7B8;
  --band: #0C0B0F;
  --band-ink: #F1E9DA;
  --band-muted: #C2B59C;
  --gold: #C9A646;
  --gold-ink: #0C0B0F;
  --geranio: #8A691B;
  --ok: #2E7D5B;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-brand: "Julius Sans One", "Jost", "Century Gothic", sans-serif;
  --radius: 14px;
  --wrap: 1120px;
}
/* Un solo tema (claro, beige) siempre, aunque el móvil esté en modo oscuro */
:root { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface);
}
img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--geranio); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--geranio);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 40px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: var(--gold); color: var(--gold-ink); }
.btn-outline-light { color: var(--band-ink); border-color: color-mix(in srgb, var(--gold) 60%, transparent); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }
.brand-mark svg circle { fill: currentColor; stroke: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-brand); font-weight: 400; color: var(--band); font-size: 1.4rem; letter-spacing: 0.42em; margin-right: -0.42em; }
.brand-text span { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.site-footer .brand-mark { color: var(--gold); }
.site-footer .brand-text strong { color: var(--band-ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav .btn { padding: 10px 18px; margin-left: 8px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav:not(.open) { display: none; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-note { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Agenda */
.hero-media { position: relative; min-width: 0; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 40%; border-radius: 22px; }
.hero-media .agenda { position: absolute; left: -72px; bottom: -76px; width: min(300px, 75%); padding: 14px 16px; }
.hero-media .agenda li { padding-block: 8px; font-size: 0.9rem; }
@media (max-width: 880px) {
  .hero-media .agenda { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 14px 0; }
}
.agenda {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 28px 60px -34px color-mix(in srgb, var(--gold) 70%, transparent);
  padding: 22px; min-width: 0;
}
.agenda-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.agenda-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.agenda-head span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.agenda ul { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda li {
  display: grid; grid-template-columns: 3.4rem 1.3rem 1fr; gap: 10px; align-items: start;
  padding-block: 11px; border-top: 1px dashed var(--line); font-size: 0.97rem; line-height: 1.4;
}
.agenda time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.88rem; padding-top: 1px; }
.check {
  width: 1.15rem; height: 1.15rem; border-radius: 5px; border: 2px solid var(--line); margin-top: 1px;
  display: grid; place-items: center; font-size: 0.75rem; line-height: 1; color: transparent;
}
.done .check { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.done .task { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 6px; text-decoration: none; vertical-align: 1px; }
.agenda-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.agenda-foot b { color: var(--geranio); }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.card p { color: var(--muted); }
.card .more { font-weight: 700; text-decoration: none; margin-top: 4px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Lista de dolores */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; margin: 0; }
.pains li { padding: 18px 0 18px 34px; border-top: 1px solid var(--line); position: relative; }
.pains li::before { content: "✕"; position: absolute; left: 0; top: 18px; color: var(--geranio); font-weight: 700; }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }
.pains-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pains-grid .pains { grid-template-columns: 1fr; }
.pains-col { min-width: 0; }
@media (max-width: 880px) { .pains-grid { grid-template-columns: 1fr; } }
.pains-answer { margin-top: 28px; font-size: 1.15rem; font-weight: 600; }

/* Proceso (secuencia real) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--gold); min-width: 0; }
.steps li::before { content: "Paso " counter(paso); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.steps p { color: var(--band-muted); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* Banda añil */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--gold); }
.band .lead { color: var(--band-muted); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band .cta-text { display: grid; gap: 12px; max-width: 40rem; min-width: 0; }

/* Para quién */
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Cabecera de página interior */
.page-hero { padding-block: clamp(48px, 7vw, 80px) 8px; }
.page-hero .wrap { display: grid; gap: 16px; }

/* Servicios detallados */
.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px);
  padding-block: 44px; border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; }
.service-intro { display: grid; gap: 14px; align-content: start; min-width: 0; }
.service-intro p { color: var(--muted); }
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; min-width: 0; }
.service li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.service li::before { content: "✓"; position: absolute; left: 0; top: 14px; color: var(--ok); font-weight: 700; }
.service li b { display: block; }
.service li span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Quién soy */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { margin: 0; position: relative; max-width: 100%; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.portrait figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px;
  background: color-mix(in srgb, var(--band) 88%, transparent); color: var(--band-ink);
  border-radius: 14px; padding: 14px 18px;
}
.portrait figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.portrait figcaption span { color: var(--gold); font-size: 0.9rem; }
.prose { display: grid; gap: 18px; max-width: 62ch; min-width: 0; }
.prose p { color: var(--ink); }
.prose .lead { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.quote { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--gold); font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.25; max-width: 30ch; text-wrap: balance; }
.values .card h3 { color: var(--accent); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 12px; }
.channel {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0;
}
.channel small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.channel .value { font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.channel a { font-weight: 700; overflow-wrap: anywhere; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.form-msg { border-radius: 12px; padding: 14px 16px; background: var(--accent-soft); display: grid; gap: 10px; }
.form-msg.error { background: color-mix(in srgb, var(--geranio) 14%, transparent); }

/* Pie */
.site-footer { background: var(--band); color: var(--band-muted); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 48px 32px; display: grid; gap: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h4 { margin: 0 0 10px; color: var(--band-ink); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: var(--band-ink); }
.site-footer .brand-text span { color: var(--band-muted); }
.footer-legal { border-top: 1px solid color-mix(in srgb, var(--band-muted) 30%, transparent); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 25;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: var(--surface);
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Vistas (solo en la vista previa de una sola página) */
.view[hidden] { display: none !important; }

/* Bloques en beige */
.soft { background: var(--beige); }
.soft .card, .soft .faq details { background: var(--surface); }

/* Formulario: campo trampa anti-spam */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent a { color: var(--accent); }

/* Páginas legales */
.legal h2 { font-size: 1.6rem; margin-top: 12px; }
.legal h3 { font-size: 1.25rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.pendiente { background: color-mix(in srgb, var(--gold) 28%, transparent); border-radius: 8px; padding: 10px 14px; }

/* Iconos del pie */
.footer-cols li, .footer-legal li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer-cols li a, .footer-legal li a { display: inline-flex; align-items: center; gap: 10px; }
.fi { width: 18px; height: 18px; flex: none; color: var(--gold); display: inline-grid; place-items: center; }
.fi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fi svg circle[r=".8"], .fi svg circle[r=".4"] { fill: currentColor; }

/* Textos justificados */
main p, main li, main dd, .site-footer .footer-cols p {
  text-align: justify; text-justify: inter-word;
  hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal;
}
main .eyebrow, main .quote, main .hero-note, main .agenda li, main .agenda-foot, main .form-msg p, main .btn-row { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

/* Fotos en móvil: más bajas para que el texto aparezca antes */
@media (max-width: 860px) {
  .portrait img { aspect-ratio: 4 / 5; max-height: 72vh; object-position: 50% 30%; }
  .hero-media img { max-height: 72vh; }
}

/* Columnas estrechas: alineadas a la izquierda para que no queden huecos */
main .steps p, main .steps h3 { text-align: left; }
.hero-text { display: grid; gap: 12px; }

/* En móvil la columna es estrecha: alineado a la izquierda para evitar huecos grandes entre palabras */
@media (max-width: 600px) {
  main p, main li, main dd, .site-footer .footer-cols p { text-align: left; }
}

/* Ajustes generales y de móvil */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (min-width: 701px) and (max-width: 1000px) {
  .grid-3 { gap: 14px; }
  .grid-3 .card { padding: 22px; }
  .nav a:not(.btn) { padding: 8px 9px; }
  .nav .btn { margin-left: 4px; padding: 10px 14px; }
}
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .wa-float { width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
  h1 { font-size: 2.35rem; }
  .card { padding: 22px; }
  .channel { padding: 14px; gap: 12px; }
}

/* Portada: título arriba a todo el ancho; texto y foto a la misma altura */
.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas: "head head" "copy media";
  row-gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
}
.hero-head { grid-area: head; display: grid; gap: 16px; min-width: 0; }
.hero-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); max-width: 28ch; }
.hero-copy { grid-area: copy; align-content: center; }
.hero-media { grid-area: media; position: relative; min-height: 420px; }
.hero-media picture { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 62% 40%; }
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "media" "copy"; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 4.2; max-height: 62vh; }
}

/* Quién soy: foto a la misma altura que el texto */
.about-grid { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
.portrait { position: relative; min-height: 460px; }
.portrait picture { position: absolute; inset: 0; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; object-fit: cover; object-position: 45% 30%; }
@media (max-width: 860px) and (min-width: 701px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { min-height: 0; aspect-ratio: 4 / 4.6; max-height: 66vh; }
}

/* Móvil: las fotos con altura fija (algunos navegadores de móvil no calculan bien la altura por proporción) */
@media (max-width: 700px) {
  .hero-media, .portrait { min-height: 0; aspect-ratio: auto; max-height: none; }
  .hero-media picture, .portrait picture { position: static; display: block; }
  .hero-media img, .portrait img {
    position: static; display: block; width: 100%;
    height: 105vw; height: min(105vw, 62vh); min-height: 300px;
    object-fit: cover;
  }
  .portrait img { height: 115vw; height: min(115vw, 66vh); }
}

/* Márgenes laterales y de títulos unificados en todas las páginas */
.wrap {
  max-width: calc(var(--wrap) + 2 * clamp(20px, 6vw, 80px));
  padding-left: max(clamp(20px, 6vw, 80px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 6vw, 80px), env(safe-area-inset-right, 0px));
}
.section-head, .page-hero .wrap, .hero-head, .cta-band .cta-text { gap: 0; }
.section-head > .eyebrow, .page-hero .eyebrow, .hero-head .eyebrow, .cta-text .eyebrow { margin-bottom: 14px; }
.section-head > h2 + *, .page-hero h1 + *, .cta-text h2 + * { margin-top: 18px; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { row-gap: clamp(28px, 3vw, 40px); }

/* Títulos y textos a todo el ancho (sin huecos a la derecha) */
h1, h2, h3 { text-wrap: pretty; }
.lead, .section-head, .faq, .prose, .quote, .hero-head h1, .page-hero h1, .page-hero .lead { max-width: none; }
.section-head h2 br, .hero-head h1 br { display: none; }
.cta-band .cta-text { max-width: none; flex: 1 1 32rem; }
.cta-band .wrap { flex-wrap: wrap; }
.cta-band .wrap { display: grid; justify-content: stretch; gap: 28px; }
.cta-band .cta-text h2 { max-width: none; text-wrap: wrap; }

/* Tamaños de letra unificados */
.hero-head h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
.lead { font-size: 1.0625rem; }
.hero-note, .service li span, .consent, .site-footer, .field label,
.agenda li, .agenda-foot, .portrait figcaption span { font-size: 1.0625rem; }
.hero-media .agenda li { font-size: 1.0625rem; }
@media (max-width: 480px) { h1, .hero-head h1 { font-size: 2.35rem; } }

/* ===== Efectos ===== */
/* 4. Cabecera compacta al bajar */
.header-inner { transition: padding-block .3s ease; }
.site-header { transition: box-shadow .3s ease, border-color .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--gold); box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); }
.site-header.is-scrolled .header-inner { padding-block: 8px; }

/* 2. Tarjetas que se elevan */
.card, .channel { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
@media (hover: hover) {
  .card:hover, .channel:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(60,40,10,.35); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
}

/* 5. Brillo dorado en botones principales */
.btn-primary, .btn-light { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-light::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,240,200,.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) {
  .btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%); transition: transform .8s ease; }
}

/* 6. Zoom lento en fotos */
.hero-media, .portrait { overflow: hidden; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* 1. Aparición suave al hacer scroll (solo si hay JS) */
.fx .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.fx .reveal.is-in { opacity: 1; transform: none; }

/* 3. Agenda animada */
.fx .agenda li.done .check { background: transparent; border-color: var(--line); color: transparent; transition: background .35s ease, border-color .35s ease, color .35s ease; }
.fx .agenda li.done .task { text-decoration-color: transparent; color: inherit; transition: color .4s ease, text-decoration-color .4s ease; }
.fx .agenda.play li.done .check { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.fx .agenda.play li.done .task { text-decoration-color: var(--muted); color: var(--muted); }
.fx .agenda.play li.done:nth-child(1) * { transition-delay: .5s; }
.fx .agenda.play li.done:nth-child(2) * { transition-delay: 1.3s; }
.fx .agenda.play li.done:nth-child(3) * { transition-delay: 2.1s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img, .portrait img { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .fx .reveal { opacity: 1; transform: none; transition: none; }
  .card, .channel, .header-inner, .btn-primary::after, .btn-light::after { transition: none !important; }
  .card:hover, .channel:hover { transform: none; }
}

/* Frases destacadas y títulos de lado a lado */
.quote, h1, h2, h3 { text-wrap: wrap; }
.quote { max-width: none; }

/* ===== Páginas legales (/legal/) ===== */
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: .95rem; }
.volver:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-page { padding-top: clamp(24px, 3vw, 40px); }
.legal { display: block; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 16px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 12px; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal .nota { background: var(--surface); border-left: 3px solid var(--gold); padding: 16px 18px; border-radius: 0 12px 12px 0; margin-bottom: 8px; }
.legal .table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: 0; }
.legal th { font-weight: 700; background: color-mix(in srgb, var(--beige) 60%, var(--surface)); }
.legal th[scope="row"] { width: 34%; }
main .legal td, main .legal th { text-align: left; }
.legal .vc-btn { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.volver-pie { margin-top: 40px; }
@media (max-width: 600px) { .legal th, .legal td { padding: 10px; } .legal table { font-size: .92rem; } }
