/* Letras alojadas en la propia web (sin conexión con Google) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("cormorant-garamond-500.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("cormorant-garamond-600.woff") format("woff"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("cormorant-garamond-700.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("source-sans-3-400.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap; src: url("source-sans-3-500.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("source-sans-3-600.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("source-sans-3-700.woff") format("woff"); }

/* Layout: sticky header, hero con formulario, bandas alternas crema / azul marino, barra de contacto fija en móvil.
   Paleta extraída del logo: azul tinta, crema papel, dorado bronce. */
:root {
  --bg: #F7F0E7;
  --surface: #FAF4ED;
  --card: #FFFDF9;
  --fg: #1C293B;
  --muted: #5B6676;
  --line: #E4D9C8;
  --gold: #B0926D;
  --gold-hover: #9A7B55;
  --gold-text: #7A5F3C;
  --band: #1C293B;
  --band-fg: #F7F0E7;
  --band-muted: #C9C2B6;
  --on-gold: #1C293B;
  --ph-bg: #F1E3C8;
  --ph-fg: #6B4F26;
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(28,41,59,.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131B27; --surface: #182130; --card: #1C293B; --fg: #F2EBDF; --muted: #A9B1BE;
    --line: #2C3A4F; --gold: #C4A57C; --gold-hover: #D4B88F; --gold-text: #D4B88F;
    --band: #0D131C; --band-fg: #F2EBDF; --band-muted: #A9B1BE; --on-gold: #1C293B;
    --ph-bg: #3A3022; --ph-fg: #E7CFA3; --shadow: 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131B27; --surface: #182130; --card: #1C293B; --fg: #F2EBDF; --muted: #A9B1BE;
  --line: #2C3A4F; --gold: #C4A57C; --gold-hover: #D4B88F; --gold-text: #D4B88F;
  --band: #0D131C; --band-fg: #F2EBDF; --band-muted: #A9B1BE; --on-gold: #1C293B;
  --ph-bg: #3A3022; --ph-fg: #E7CFA3; --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-inline: 0; padding-bottom: 76px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
section { padding-block: 72px; }
.band { background: var(--band); color: var(--band-fg); }
.alt { background: var(--surface); }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: 14px; }
.band .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-top: 16px; }
.band .lead { color: var(--band-muted); }
.head { margin-bottom: 40px; }

/* placeholders: datos que debe aportar el despacho */
.ph { background: var(--ph-bg); color: var(--ph-fg); padding: 0 .35em; border-radius: 4px; font-weight: 600; white-space: nowrap; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--on-gold); font: 700 1rem/1.2 var(--body);
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.ghost:hover { background: rgba(176,146,109,.15); }
.btn.sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.center { text-align: center; margin-top: 36px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo b { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: .14em; color: var(--fg); }
.logo span { font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-text); margin-top: 3px; }
nav.main { display: none; gap: 22px; align-items: center; }
nav.main a { text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: 8px; border-bottom: 2px solid transparent; }
nav.main a:hover { border-color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.phone { display: none; font-weight: 700; white-space: nowrap; }
.burger { background: none; border: 1.5px solid var(--line); color: var(--fg); width: 46px; height: 46px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 20px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  nav.main { display: flex; }
  .burger, .drawer { display: none !important; }
}
@media (min-width: 1100px) { .phone { display: block; } }
.top .btn.sm { display: none; }
@media (min-width: 560px) { .top .btn.sm { display: inline-flex; } }

/* hero */
.hero { padding-block: 56px 72px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } .hero { padding-block: 80px 88px; } }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.hero .lead { font-size: 1.2rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.trust-line span::before { content: "✓"; color: var(--gold-text); font-weight: 700; margin-right: 8px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); display: block; margin-top: 4px; }

/* formulario */
.form { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 28px 24px; box-shadow: var(--shadow); color: var(--fg); }
.form h2 { font-size: 1.7rem; }
.form .sub { color: var(--muted); font-size: .95rem; margin: 6px 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--line); border-radius: 6px;
}
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.form .btn { width: 100%; }
.micro { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.err { color: #B3402F; font-size: .85rem; min-height: 1.2em; }
:root[data-theme="dark"] .err { color: #F19A8B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F19A8B; } }
.ok { display: none; text-align: center; padding: 12px 4px; }
.ok.show { display: block; }
.ok h3 { font-size: 1.6rem; margin-bottom: 8px; }
.ok p { color: var(--muted); font-size: .95rem; }
.form.sent .fields { display: none; }

/* beneficios */
.grid3 { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; min-width: 0; }
.benefit svg { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.benefit h3 { margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .98rem; }

/* proceso: secuencia real, la numeración sí es información */
.steps { display: grid; gap: 28px; counter-reset: s; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } .steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: var(--gold); opacity: .55; } }
.step { counter-increment: s; position: relative; min-width: 0; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--band); color: var(--gold); border: 1.5px solid var(--gold);
  font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1;
}
.step h3 { margin-bottom: 8px; font-size: 1.35rem; }
.step p { color: var(--band-muted); font-size: .98rem; }

/* requisitos */
.req { display: grid; gap: 36px; }
@media (min-width: 900px) { .req { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C293B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 18px 20px; font-size: .95rem; color: var(--muted); margin-top: 24px; }
.aside-card { background: var(--band); color: var(--band-fg); border-radius: 8px; padding: 32px 28px; }
.aside-card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.aside-card p { color: var(--band-muted); margin-bottom: 22px; }
.aside-card .btn { width: 100%; }

/* casos */
.case { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.case .amount { font-family: var(--display); font-size: 2.3rem; font-weight: 700; color: var(--gold-text); line-height: 1; }
.case .meta { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case blockquote { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.35; font-style: italic; }
.case footer { font-size: .9rem; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 24px; text-align: center; }

/* por qué elegirnos */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
th.us { color: var(--gold-text); }
td.us { font-weight: 600; background: rgba(176,146,109,.10); }
td.them { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* autoridad / equipo */
.team { display: grid; gap: 20px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, 1fr); } }
/* equipo de dos personas: dos tarjetas centradas, del mismo ancho que las de tres */
@media (min-width: 700px) { .team.team-2 { grid-template-columns: repeat(2, 1fr); max-width: 740px; margin-inline: auto; } }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; min-width: 0; }
.avatar { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 6px; background: var(--surface); border: 1.5px dashed var(--gold); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 12px; margin-bottom: 16px; }
.person h3 { font-size: 1.35rem; }
.person p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.proof { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 700px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof div { text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.proof b { font-family: var(--display); font-size: 2.2rem; display: block; line-height: 1.1; }
.proof span { color: var(--muted); font-size: .9rem; }

/* honorarios */
.fees { display: grid; gap: 20px; }
@media (min-width: 800px) { .fees { grid-template-columns: repeat(3, 1fr); } }
.fee { background: var(--band); color: var(--band-fg); border-radius: 8px; padding: 28px 24px; min-width: 0; }
.fee .meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.fee .price { font-family: var(--display); font-size: 2.4rem; font-weight: 700; margin: 8px 0; line-height: 1.1; }
.fee p { color: var(--band-muted); font-size: .95rem; }
.fee .ph { background: rgba(176,146,109,.22); color: #E7CFA3; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; color: var(--gold); line-height: 1; transition: transform .2s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--muted); }

/* contacto final */
.final { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .final { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--band-fg); }
.contact-list svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list small { display: block; color: var(--band-muted); font-size: .8rem; }

/* footer */
footer.site { background: var(--band); color: var(--band-muted); padding-block: 48px 32px; border-top: 1px solid rgba(176,146,109,.35); font-size: .92rem; }
footer.site .cols { display: grid; gap: 32px; margin-bottom: 32px; }
@media (min-width: 800px) { footer.site .cols { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
footer.site h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--band-fg); text-decoration: underline; }
footer.site .logo b { color: var(--band-fg); }
footer.site .logo span { color: var(--gold); }
footer.site .ph { background: rgba(176,146,109,.22); color: #E7CFA3; white-space: normal; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .82rem; }

/* barra móvil + exit intent + tema */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.mobile-bar .btn { min-height: 48px; padding-inline: 10px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(13,19,28,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal .box { background: var(--card); color: var(--fg); border-radius: 10px; border-top: 4px solid var(--gold); max-width: 460px; width: 100%; padding: 32px 28px; position: relative; box-shadow: var(--shadow); }
.modal h3 { font-size: 1.8rem; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 22px; }
.modal .x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.modal .btn { width: 100%; }
.theme-toggle { background: none; border: 1.5px solid var(--line); color: var(--fg); width: 46px; height: 46px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.theme-toggle svg, .burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { background: var(--band); color: var(--band-muted); font-size: .85rem; text-align: center; padding: 8px 16px; }
.demo-note .ph { background: rgba(176,146,109,.22); color: #E7CFA3; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* vistas: solo una página visible a la vez */
.page { display: none; }
.page.active { display: block; }
nav.main a[aria-current="page"] { border-color: var(--gold); }
.drawer a[aria-current="page"] { color: var(--gold-text); font-weight: 700; }


/* logo (imagen con fondo transparente: versión oscura para fondos claros, versión clara para fondos oscuros) */
.logo-img { display: block; height: 50px; width: auto; }
.logo-img.on-dark { display: none; }
:root[data-theme="dark"] .top .logo-img.on-light { display: none; }
:root[data-theme="dark"] .top .logo-img.on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top .logo-img.on-light { display: none; }
  :root:not([data-theme="light"]) .top .logo-img.on-dark { display: block; }
}
footer.site .logo-img { display: block; height: 64px; }

/* ===== HUECOS DE FOTOS =====
   Interruptor: en la etiqueta <html> cambia data-fotos="si" por data-fotos="no" y desaparecen todos los huecos. */
.foto-slot { display: none; }
html[data-fotos="si"] .foto-slot { display: grid; place-items: center; align-content: center; text-align: center; gap: 6px; overflow: hidden;
  border-radius: 8px; border: 1.5px dashed var(--gold); background: var(--surface); color: var(--muted);
  font-size: .85rem; padding: 16px; max-width: 100%; }
html[data-fotos="si"] .foto-slot svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-fotos="si"] .foto-slot b { color: var(--fg); font-weight: 600; display: block; }
html[data-fotos="si"] .foto-slot.llena { padding: 0; border: 0; background: none; display: block; }
html[data-fotos="si"] .foto-slot.llena img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
html[data-fotos="si"] .band .foto-slot:not(.llena) { background: rgba(255,255,255,.05); color: var(--band-muted); }
html[data-fotos="si"] .band .foto-slot b { color: var(--band-fg); }
.foto-hero { aspect-ratio: 16 / 10; margin-top: 32px; }
.foto-banner { aspect-ratio: 21 / 8; margin-bottom: 36px; }
.foto-contacto { aspect-ratio: 16 / 10; margin-top: 28px; }
/* en móvil, hero y contacto no llevan foto para no alejar el formulario */
@media (max-width: 899px) { html[data-fotos="si"] .foto-hero, html[data-fotos="si"] .foto-contacto { display: none; } }
@media (max-width: 599px) { .foto-banner { aspect-ratio: 16 / 10; } }

/* botón "Analiza mi caso gratis" del hero (solo móvil y tablet) */
.hero-cta { display: none; margin-top: 24px; }
@media (max-width: 899px) { .hero-cta { display: inline-flex; } }
@media (max-width: 599px) { .hero-cta { width: 100%; } }

/* corrección móvil: los datos pendientes largos pueden partirse en varias líneas */
.req > * { min-width: 0; }
@media (max-width: 599px) { .ph { white-space: normal; } }

/* ===== MOVIMIENTO SUAVE =====
   1) Aparición al bajar: solo se activa si el navegador lo permite (clase reveal-on en <html>) y el visitante no tiene desactivadas las animaciones.
   2) Respuesta al pasar el ratón por botones y tarjetas (solo en dispositivos con ratón).
   Para quitarlo todo: borrar este bloque y el <script> marcado "MOVIMIENTO SUAVE" al final. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.reveal-on .reveal { opacity: 0; }
html.reveal-on .reveal.in { opacity: 1; animation: rise .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0s); }
.benefit, .case, .person, .fee, .aside-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.btn { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .btn:not(.ghost):hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(176,146,109,.38); }
  .btn.ghost:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); box-shadow: none; }
  .benefit:hover, .case:hover, .person:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
  .fee:hover, .aside-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1; }
  html.reveal-on .reveal.in { animation: none; }
  .btn:hover, .benefit:hover, .case:hover, .person:hover, .fee:hover, .aside-card:hover { transform: none !important; }
}

/* ===== TRANSICIÓN ENTRE VISTAS (menú) =====
   Para quitarla: borrar este bloque y el bloque "TRANSICIÓN ENTRE VISTAS" dentro de la función route() del script. */
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }
main.leaving { animation: pageOut .22s ease forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
main.entering { animation: pageIn .42s cubic-bezier(.2,.7,.2,1) backwards; }
@media (prefers-reduced-motion: reduce) { main.entering { animation: pageFade .42s ease backwards; } }

/* ===== TEXTOS LEGALES (aviso legal, privacidad, cookies) ===== */
.legal-doc { max-width: 820px; margin-inline: auto; }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
.legal-doc h2 { font-size: 1.35rem; letter-spacing: .02em; margin: 40px 0 12px; }
.legal-doc h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal-doc a { color: var(--gold-text); }
.legal-doc .datos { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; padding: 16px 20px; margin: 0 0 16px; }
.legal-doc .datos p { margin: 0 0 4px; }

/* Ventana de cookies */
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 14px; font-size: .95rem; }
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--gold-text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; }
@media (min-width: 900px) {
  .cookie-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(900px, calc(100% - 48px)); bottom: 24px; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie-actions { flex-wrap: nowrap; }
  .cookie-actions .btn { flex: 0 0 auto; min-width: 130px; }
}
footer.site .cookie-config { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
footer.site .cookie-config:hover { color: var(--band-fg); text-decoration: underline; }

/* Vídeos de Quiénes somos */
.videos-head { text-align: center; margin: 72px 0 32px; }
.videos-head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.videos { display: grid; gap: 20px; justify-items: center; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); max-width: 740px; margin-inline: auto; justify-items: stretch; } }
.video-card { width: 100%; max-width: 340px; margin: 0; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 14px 14px 18px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .video-card { max-width: none; } }
.video-frame { position: relative; border-radius: 6px; overflow: hidden; background: #0f1722; aspect-ratio: 9 / 16; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(15,23,34,.55), rgba(15,23,34,0) 38%); opacity: 0; transition: opacity .3s ease; }
.video-frame.has-overlay:not(.playing)::after { opacity: 1; }
.video-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 58px; height: 58px; margin: 0; border: 1.5px solid rgba(247,240,231,.7); border-radius: 50%; background: rgba(28,41,59,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F7F0E7; cursor: pointer; display: none; place-items: center; transition: transform .2s ease, background .2s ease; }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video-play:hover, .video-play:focus-visible { transform: scale(1.07); background: rgba(176,146,109,.85); }
.video-play:focus-visible { outline: 2px solid #F7F0E7; outline-offset: 3px; }
.video-frame.has-overlay .video-play { display: grid; }
.video-frame.playing .video-play { display: none; }
.video-time { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(15,23,34,.7); color: #F7F0E7; font-size: .8rem; font-weight: 600; letter-spacing: .03em; display: none; }
.video-frame.has-overlay:not(.playing) .video-time { display: block; }
.video-card h4 { margin: 16px 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.video-card p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
