/* ==========================================================================
   RUVICAP — Asesoría Legal Empresarial
   Hoja de estilos principal. Paleta y tipografías según la guía de marca.
   ========================================================================== */

/* Fuentes alojadas en el sitio (Google Fonts, licencia OFL). Generado automáticamente. */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/cinzel-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/cinzel-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/sourcesans3-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/sourcesans3-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta oficial */
  --blue: #0C1478;          /* Azul institucional: fondos, títulos, menú */
  --gold: #C9A541;          /* Dorado: líneas, acentos, iconos */
  --gold-dark: #9C7A1F;     /* Dorado oscuro: subtítulos sobre blanco */
  --blue-deep: #08104F;     /* Azul profundo: pie de página, hover */
  --white: #FFFFFF;
  --ivory: #FBF9F3;         /* Marfil: secciones alternas */
  --ink: #1D2140;           /* Texto de párrafos */
  --line: #E6DFC8;          /* Divisores */
  /* Variante del dorado oscuro para textos pequeños (contraste AA sobre blanco) */
  --gold-text: #876918;
  --error: #A3241B;

  /* Semánticos (modo claro) */
  --bg: var(--white);
  --bg-alt: var(--ivory);
  --surface: var(--white);
  --fg: var(--ink);
  --heading: var(--blue);
  --muted: #4A4E68;
  --border: var(--line);
  --kicker: var(--gold-text);
  --card-shadow: 0 1px 0 rgba(12, 20, 120, .04);
  --card-shadow-hover: 0 24px 48px -20px rgba(8, 16, 79, .28);
  --input-bg: var(--white);

  /* Tipografía */
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y medidas */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section: clamp(64px, 9vw, 128px);
  --header-h: 88px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Modo oscuro: conserva azul y dorado de la marca */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060B3A;
    --bg-alt: var(--blue-deep);
    --surface: #0A125C;
    --fg: #E8E6DD;
    --heading: #F4EFDF;
    --muted: #B8BBD6;
    --border: rgba(201, 165, 65, .22);
    --kicker: var(--gold);
    --card-shadow: none;
    --card-shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, .6);
    --input-bg: #070E48;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060B3A;
  --bg-alt: var(--blue-deep);
  --surface: #0A125C;
  --fg: #E8E6DD;
  --heading: #F4EFDF;
  --muted: #B8BBD6;
  --border: rgba(201, 165, 65, .22);
  --kicker: var(--gold);
  --card-shadow: none;
  --card-shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, .6);
  --input-bg: #070E48;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--blue-deep); }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-title);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1, .h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3, .h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.h4 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.h5 { font-size: 1.18rem; font-family: var(--font-body); letter-spacing: 0; }
.light, .h5.light { color: var(--white); }
.light-text { color: rgba(255, 255, 255, .86); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-xl { margin-top: clamp(40px, 6vw, 72px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 10000; background: var(--gold); color: var(--blue-deep);
  padding: .7rem 1.2rem; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(880px + var(--gutter) * 2); }

/* ---------- 3. Elementos de marca ---------- */
.kicker {
  font-family: var(--font-title);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--kicker);
  margin: 0 0 .9rem;
  line-height: 1.6;
}
.kicker--light { color: var(--gold); }

.gold-rule {
  display: block; width: 72px; height: 2px; background: var(--gold); margin: 1.1rem 0 1.4rem;
  transform-origin: left center;
}
.gold-rule--light { background: var(--gold); }
.gold-band { height: 10px; background: linear-gradient(90deg, var(--gold-dark), var(--gold) 30%, #D9BB63 60%, var(--gold)); position: relative; z-index: 2; }

/* Arco de la "C" del isotipo, en transparencia, como fondo de secciones azules */
.arc-motif {
  position: absolute;
  width: min(78vmax, 1100px);
  aspect-ratio: 1;
  right: calc(min(78vmax, 1100px) * -0.32);
  top: calc(min(78vmax, 1100px) * -0.2);
  border-radius: 50%;
  border: clamp(48px, 9vmin, 130px) solid rgba(201, 165, 65, .09);
  -webkit-mask: conic-gradient(from 0deg, #000 0 48deg, transparent 48deg 132deg, #000 132deg);
  mask: conic-gradient(from 0deg, #000 0 48deg, transparent 48deg 132deg, #000 132deg);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.arc-motif--hero { right: calc(min(78vmax, 1100px) * -0.2); top: calc(min(78vmax, 1100px) * -0.3); border-color: rgba(201, 165, 65, .12); }
.arc-motif--footer { right: calc(min(78vmax, 1100px) * -0.4); top: calc(min(78vmax, 1100px) * -0.45); border-color: rgba(201, 165, 65, .06); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--ivory { background: var(--bg-alt); }
.section--blue { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.section--blue > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .gold-rule { margin-inline: auto; transform-origin: center; }
.section-title { margin: 0; }
.section-title--light { color: var(--white); }
.section-lead, .lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--fg); line-height: 1.75; }
.lead--light { color: rgba(255, 255, 255, .88); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.subhead { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: clamp(48px, 7vw, 80px); }

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--blue); --btn-border: var(--blue); --btn-fill: var(--gold); --btn-fill-fg: var(--blue-deep);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; min-height: 48px;
  border: 1.5px solid var(--btn-border); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; letter-spacing: .03em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--blue-deep); --btn-border: var(--gold); --btn-fill: var(--ivory); --btn-fill-fg: var(--blue); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--white); --btn-border: var(--blue); }
.btn--outline { --btn-fg: var(--heading); --btn-border: var(--gold); }
.btn--ghost { --btn-fg: var(--heading); --btn-border: transparent; }
.btn--ghost-light { --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, .55); }
.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; min-height: 54px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--heading); text-decoration: none; letter-spacing: .02em; }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow--light { color: var(--gold); }
.link-arrow--back { margin-top: 32px; }
.icon--flip { transform: scaleX(-1); }
.link-arrow--back:hover .icon { transform: scaleX(-1) translateX(5px); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- 5. Iconos ---------- */
.icon { width: 24px; height: 24px; flex: none; color: var(--gold); }
.icon--xs { width: 18px; height: 18px; }
.icon--lg { width: 42px; height: 42px; }
.icon--xl { width: 64px; height: 64px; }
.btn .icon { color: currentColor; }
/* Dibujado del trazo al entrar en pantalla */
.js .icon--draw path, .js .icon--draw circle, .js .icon--draw rect {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease) var(--draw-delay, .15s);
}
.js .is-visible .icon--draw path, .js .is-visible .icon--draw circle, .js .is-visible .icon--draw rect,
.js .icon--draw.is-visible path, .js .icon--draw.is-visible circle, .js .icon--draw.is-visible rect,
.js .dropdown .icon--draw path, .js .dropdown .icon--draw circle, .js .dropdown .icon--draw rect,
.js .tabs .icon--draw path, .js .tabs .icon--draw circle, .js .tabs .icon--draw rect { stroke-dashoffset: 0; }
.card--area:hover .icon--draw path, .card--area:hover .icon--draw circle, .card--area:hover .icon--draw rect {
  animation: redraw 1.2s var(--ease);
}
@keyframes redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }

/* ---------- 6. Pantalla de carga ---------- */
.preloader { display: none; }
.is-loading .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 45%, var(--blue) 0%, var(--blue-deep) 70%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.is-loading.is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.preloader__arc { position: absolute; top: -26px; width: 210px; height: 210px; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-arc 1s var(--ease) .1s forwards; }
.preloader__iso { width: 140px; height: auto; opacity: 0; transform: scale(.85); animation: iso-in .7s var(--ease-out) .55s forwards; }
.preloader__word { display: flex; gap: .32em; font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; color: var(--white); letter-spacing: .08em; }
.preloader__word span { opacity: 0; transform: translateY(12px); animation: letter-in .5s var(--ease-out) forwards; animation-delay: calc(.8s + var(--i) * .06s); }
@keyframes draw-arc { to { stroke-dashoffset: 0; } }
@keyframes iso-in { to { opacity: 1; transform: none; } }
@keyframes letter-in { to { opacity: 1; transform: none; } }

/* ---------- 7. Encabezado y menú ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--header-h);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 16, 79, .55), rgba(8, 16, 79, 0));
  transition: height .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: var(--blue);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(201, 165, 65, .45);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: block; flex: none; }
.brand__logo { height: 68px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand__logo { height: 54px; }
/* Portada: logo grande al cargar; al bajar se reduce al logo fijo del menú. */
body.page-home { --header-h: 150px; }
.page-home .site-header:not(.is-scrolled) .brand__logo { height: 118px; }
/* Páginas internas: logo algo mayor mientras no se hace scroll */
body:not(.page-home) { --header-h: 104px; }
body:not(.page-home) .site-header:not(.is-scrolled) .brand__logo { height: 80px; }

.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav__list > li { position: relative; }
.main-nav a, .main-nav__toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: .5rem .8rem;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .96rem; letter-spacing: .02em;
  background: none; border: 0; position: relative;
}
.main-nav__list > li > a::after, .main-nav__toggle::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav__list > li > a:hover::after, .main-nav__list > li > a[aria-current="page"]::after,
.main-nav__toggle:hover::after, .main-nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a:hover { color: var(--white); }
.main-nav__toggle .icon { color: var(--gold); transition: transform .3s var(--ease); }
.main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(680px, 90vw);
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--surface); color: var(--fg); border-top: 3px solid var(--gold);
  box-shadow: 0 30px 60px -20px rgba(8, 16, 79, .45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown::before { content: ""; position: absolute; top: -17px; left: 0; right: 0; height: 17px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__col { padding: 24px; }
.dropdown__col--alt { background: var(--bg-alt); display: flex; flex-direction: column; }
.dropdown__label { font-family: var(--font-title); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--kicker); margin-bottom: .6rem; font-weight: 700; }
.main-nav .dropdown__item {
  display: flex; align-items: center; gap: 12px; padding: .7rem .6rem; color: var(--heading); font-weight: 600;
  border-bottom: 1px solid var(--border); border-radius: 0;
}
.main-nav .dropdown__item::after { display: none; }
.main-nav .dropdown__item:hover, .main-nav .dropdown__item[aria-current="page"] { background: var(--bg-alt); color: var(--heading); }
.dropdown__num { font-family: var(--font-title); color: var(--gold-dark); font-size: .85rem; min-width: 24px; }
.main-nav .dropdown__cta { margin-top: auto; padding-top: 1rem; color: var(--heading); font-weight: 700; }
.main-nav .dropdown__cta::after { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 6px; }
.tool-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: inherit; text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.tool-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(201, 165, 65, .5); color: inherit; }
.tool-btn--lang { font-weight: 700; font-size: .82rem; letter-spacing: .08em; }
.tool-btn--sm { width: 36px; height: 36px; }
.site-header .tool-btn .icon { color: var(--white); }
.icon--sun { display: none; }
[data-theme="dark"] .icon--sun { display: block; }
[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}
.site-header__cta { margin-left: 6px; }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform .3s; }
.burger span:last-child { width: 14px; justify-self: end; margin-left: 8px; }

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  background: var(--blue-deep); color: var(--white);
  padding: 20px var(--gutter) 40px; display: flex; flex-direction: column;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease-out);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu__arc { position: absolute; width: 520px; aspect-ratio: 1; right: -260px; bottom: -160px; border-radius: 50%; border: 80px solid rgba(201, 165, 65, .08); -webkit-mask: conic-gradient(#000 0 48deg, transparent 48deg 132deg, #000 132deg); mask: conic-gradient(#000 0 48deg, transparent 48deg 132deg, #000 132deg); pointer-events: none; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-menu__head img { height: 46px; width: auto; }
.mobile-menu__head .icon { color: var(--white); }
.mobile-menu__nav { display: flex; flex-direction: column; position: relative; }
.mobile-menu__nav a, .mobile-menu__label, .mobile-menu__foot {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(.15s + var(--i) * .04s);
}
.mobile-menu.is-open .mobile-menu__nav a, .mobile-menu.is-open .mobile-menu__label, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__nav a { font-family: var(--font-title); font-weight: 700; font-size: 1.45rem; color: var(--white); text-decoration: none; padding: .55rem 0; border-bottom: 1px solid rgba(201, 165, 65, .18); }
.mobile-menu__nav a.mobile-menu__sub { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; padding-left: 4px; display: flex; gap: 12px; }
.mobile-menu__sub span { color: var(--gold); font-family: var(--font-title); font-size: .85rem; min-width: 46px; padding-top: 2px; }
.mobile-menu__label { color: var(--gold); font-family: var(--font-title); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; margin: 18px 0 4px; }
.mobile-menu__foot { margin-top: 28px; display: grid; gap: 10px; position: relative; }
.mobile-menu__foot p { margin-top: 8px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.mobile-menu__foot a:not(.btn) { color: var(--gold); }

/* ---------- 8. Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--blue-deep); color: var(--white); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 32px) 0 96px;
}
.hero__slides, .hero__video, .hero__overlay { position: absolute; inset: 0; }
.hero__slides { z-index: -3; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); overflow: hidden; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active .kenburns { animation: kenburns 9s linear forwards; }
.hero__slide:nth-child(2n).is-active .kenburns { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.14) translate(1.5%, 0); } to { transform: scale(1.02) translate(0, 1%); } }
.hero__video { z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__overlay { z-index: -1; background: linear-gradient(100deg, rgba(8, 16, 79, .86) 0%, rgba(8, 16, 79, .55) 48%, rgba(8, 16, 79, .18) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero__logo { display: inline-block; background: var(--white); padding: 14px 18px; margin-bottom: 26px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.hero__logo img { width: clamp(180px, 22vw, 250px); height: auto; }
.since { display: flex; align-items: center; gap: 16px; font-family: var(--font-title); letter-spacing: .45em; font-size: .85rem; color: var(--gold); margin-bottom: 18px; }
.since span { display: block; width: 46px; height: 1.5px; background: var(--gold); }
.hero__title { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.1; margin-bottom: 22px; max-width: 17ch; }
.hero__intro { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 60ch; }
.hero__lema { font-family: var(--font-title); color: var(--gold); font-size: clamp(1rem, 1.3vw, 1.15rem); margin-bottom: 30px; }
.hero__card {
  background: rgba(8, 16, 79, .55); border-top: 3px solid var(--gold);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero__messages { display: grid; }
.hero__msg { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); visibility: hidden; }
.hero__msg.is-active { opacity: 1; transform: none; visibility: visible; }
.hero__msg-title { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--white); line-height: 1.15; margin-bottom: .5rem; }
.hero__msg p:not(.kicker):not(.hero__msg-title) { color: rgba(255, 255, 255, .84); }
.hero__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(201, 165, 65, .3); }
.hero__controls .tool-btn { border-color: rgba(201, 165, 65, .45); }
.hero__controls .icon--play { display: none; }
.is-paused .hero__controls .icon--play { display: block; }
.is-paused .hero__controls .icon--pause { display: none; }
.dots { display: flex; gap: 6px; }
.dot { width: 44px; height: 30px; background: none; border: 0; padding: 0; display: grid; align-items: center; }
.dot span { display: block; height: 3px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.dot.is-active span::after { animation: dot-progress var(--slide-ms, 7000ms) linear forwards; }
.is-paused .dot.is-active span::after { animation-play-state: paused; }
.dot.is-done span::after { transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px; transform: translateX(-50%); z-index: 1; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Revelado letra a letra del título */
.js [data-split] .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .c { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--ci) * 18ms + var(--split-delay, .05s)); }
.js [data-split].is-split-in .c { transform: none; }

/* ---------- 9. Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--white);
  padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) 0 clamp(28px, 3.5vw, 48px);
}
.page-hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: saturate(.7); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 16, 79, .92) 0%, rgba(8, 16, 79, .7) 55%, rgba(8, 16, 79, .35) 100%); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__inner > * { max-width: 900px; }
.page-hero__title { color: var(--white); margin-bottom: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.page-hero__text { font-size: 1.08rem; color: rgba(255, 255, 255, .9); max-width: 80ch; margin: 0; }
.page-hero__icon { display: none; }
.page-hero__icon .icon { color: var(--gold); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; margin-bottom: 14px; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 10. Rejillas y bloques ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--top { align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--narrow { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.split--form { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.split--video { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; }

/* Tarjetas */
.card {
  position: relative; display: flex; flex-direction: column; gap: .4rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); padding: clamp(24px, 2.6vw, 36px);
  color: var(--fg); text-decoration: none; box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::after { /* brillo sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(201, 165, 65, .16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
a.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: var(--gold); color: var(--fg); }
a.card:hover::after { transform: translateX(120%); }
.card__bar, .bar-top { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); transform-origin: left; }
.bar-top--blue { background: var(--blue); }
[data-theme="dark"] .bar-top--blue { background: var(--gold-dark); }
.card__num { font-family: var(--font-title); font-weight: 700; color: var(--gold-dark); font-size: 1.05rem; letter-spacing: .1em; }
.card__icon { margin: 10px 0 8px; }
.card__title { font-size: 1.25rem; margin: 0 0 .3rem; }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.card__more { margin-top: auto; padding-top: 1rem; display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; color: var(--heading); }
.card__more .icon { transition: transform .35s var(--ease); }
a.card:hover .card__more .icon { transform: translateX(5px); }
.card--line { flex-direction: row; align-items: center; gap: 22px; }
.card--line .card__num { font-size: 1.6rem; }
.card__arrow { margin-left: auto; transition: transform .35s var(--ease); }
a.card--line:hover .card__arrow { transform: translateX(6px); }
.transversal { margin-top: clamp(40px, 6vw, 64px); }
.area-cards .card { min-height: 100%; }

/* Bloques numerados y de características */
.numbered { margin-top: 28px; }
.numbered__item, .feature, .list-block--bar { position: relative; padding-top: 26px; }
.numbered__num { font-family: var(--font-title); font-weight: 700; font-size: 1.8rem; color: var(--gold); margin: 0 0 .2rem; line-height: 1; }
.numbered__item p, .feature p { color: var(--muted); margin: 0; }
.feature .icon { margin-bottom: 18px; }
.feature h3, .feature h4 { margin-bottom: .4rem; }
.feature-grid { row-gap: clamp(36px, 5vw, 56px); }

.panel { padding: 30px; position: relative; border-left: 4px solid var(--gold); }
.panel--ivory { background: var(--bg-alt); }
.section--ivory .panel--ivory { background: var(--surface); }
.panel .icon { margin-bottom: 16px; }
.panel p { color: var(--muted); margin: 0; }

.box { padding: clamp(26px, 3vw, 40px); margin-top: clamp(32px, 5vw, 56px); border-left: 4px solid var(--gold); position: relative; }
.box--blue { background: var(--bg-alt); color: var(--fg); }
.section--ivory .box--blue { background: var(--surface); }
.box--blue .light, .box--blue .h5.light { color: var(--heading); }
.box--blue .light-text, .box--blue .lead--light { color: var(--fg); }
.box--blue .diamond-list--light li { color: var(--fg); }
.box--blue .kicker--light { color: var(--kicker); }
.box .diamond-list { font-size: 1.08rem; }
.box--blue .icon { color: var(--gold); }
.box--ivory { background: var(--bg-alt); }
.section--ivory .box--ivory { background: var(--surface); }
.box--line { background: var(--bg-alt); }
.section--ivory .box--line { background: var(--surface); }
.box h3 { display: flex; align-items: center; gap: 10px; }
.box p:last-child { margin-bottom: 0; }
.gold-title { color: var(--gold); font-weight: 700; margin: 0 0 .25rem; }

.note { background: var(--bg-alt); border-left: 4px solid var(--gold); padding: 20px 24px; margin: 32px 0 0; }
.note--icon { display: flex; gap: 14px; align-items: flex-start; }
.section--ivory .note { background: var(--surface); }
.note--warn { margin: 0 0 32px; font-size: .95rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; padding: .35rem 1rem; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--kicker); font-size: .9rem; font-weight: 600; background: transparent; line-height: 1.4;
}
.chips--lg .chip { font-size: .98rem; padding: .5rem 1.1rem; }
.chip--btn { cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip--btn:hover { background: var(--bg-alt); }
.chip--btn.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
[data-theme="dark"] .chip--btn.is-active { background: var(--gold); color: var(--blue-deep); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chips--center { justify-content: center; }

.diamond-list { list-style: none; display: grid; gap: .55rem; }
.diamond-list li { position: relative; padding-left: 1.5rem; }
.diamond-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.diamond-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.diamond-list--light li { color: rgba(255, 255, 255, .9); }
.list-block { margin-top: 32px; }
.check-list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { margin-top: 4px; }
.check-list--lg li { font-size: 1.12rem; padding: 14px 0; border-bottom: 1px solid var(--border); }

/* Tablas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1.05rem; background: var(--surface); }
.table thead th { background: var(--blue); color: var(--white); text-align: left; font-weight: 700; padding: 14px 16px; font-size: 1rem; letter-spacing: .02em; }
.table tbody th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table tbody th { font-weight: 400; color: var(--heading); }
.table tbody th strong { color: var(--heading); }
.table tbody tr:nth-child(odd) { background: var(--bg-alt); }
.section--ivory .table tbody tr:nth-child(odd) { background: var(--surface); }
.table--species tbody th { font-weight: 700; width: 30%; }
.table tbody tr { transition: background-color .3s; }
.table tbody tr:target, .table tbody tr.is-highlight { background: rgba(201, 165, 65, .16) !important; }

/* ---------- 11. Procesos y líneas de tiempo ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); counter-reset: step; }
.process__step { position: relative; padding-top: 24px; }
.process__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform-origin: left; }
[data-theme="dark"] .process__step::before { background: var(--gold-dark); }
.process__num { display: block; font-family: var(--font-title); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.process__step p { color: var(--muted); margin: 0; }

.steps-3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.steps-3 li { position: relative; padding-top: 22px; }
.steps-3__num { font-family: var(--font-title); font-weight: 700; font-size: 1.9rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 8px; }
.steps-3 h3 { margin: 0 0 .2rem; }
.steps-3 p { color: var(--muted); margin: 0; }

.focus-box { background: var(--bg-alt); color: var(--heading); padding: clamp(26px, 3vw, 40px); border-left: 4px solid var(--gold); margin-bottom: 32px; }
.focus-box .kicker--light { color: var(--kicker); }
.focus-box__text { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; margin: 0; }

/* Línea de tiempo de la historia (alternada) */
.timeline { position: relative; max-width: 960px; margin-inline: auto; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.timeline__list { list-style: none; display: grid; gap: 28px; }
.timeline__item { position: relative; width: 50%; padding-right: 48px; }
.timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 48px; }
.timeline__dot { position: absolute; top: 28px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--gold); z-index: 1; }
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -9px; }
.timeline__item.is-visible .timeline__dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 165, 65, .18); transition: background-color .5s .3s, box-shadow .5s .3s; }
.timeline__card { background: var(--surface); border: 1px solid var(--border); padding: 24px 26px; border-top: 3px solid var(--gold); }
.timeline__year { font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; color: var(--gold-dark); margin: 0 0 .2rem; }
.timeline__card p:last-child { margin: 0; color: var(--muted); }

/* Línea de tiempo vertical numerada (registro de marca, defensa) */
.vtimeline { position: relative; max-width: 860px; }
.vtimeline .timeline__line { left: 23px; transform: none; }
.vtimeline__list { list-style: none; display: grid; gap: 30px; }
.vtimeline__item { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; position: relative; }
.vtimeline__num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--font-title); font-weight: 700; color: var(--heading); background: var(--bg-alt); border: 1.5px solid var(--gold);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.section:not(.section--ivory) .vtimeline__num { background: var(--bg); }
.vtimeline__item.is-visible .vtimeline__num { background: var(--gold); color: var(--blue-deep); }
.vtimeline__item h3 { margin: 10px 0 .3rem; }
.vtimeline__item p { color: var(--muted); margin: 0; }

/* Ciclo de vida societario */
.lifecycle { position: relative; }
.lifecycle__line { position: absolute; top: 24px; left: 24px; right: 24px; height: 2px; background: var(--border); }
.lifecycle__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.lifecycle__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.lifecycle__stage { position: relative; }
.lifecycle__num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--gold); font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.lifecycle__stage .diamond-list { font-size: 1.04rem; color: var(--muted); }

.mini-steps { list-style: none; display: grid; gap: 12px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--heading); }
.mini-steps span { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-family: var(--font-title); color: var(--heading); }

/* ---------- 12. Cifras ---------- */
.stats { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 6px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%; width: 1px; background: var(--border); }
.stat__value { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--heading); margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__prefix { font-size: .45em; letter-spacing: .25em; color: var(--kicker); display: block; margin-bottom: 4px; }
.stat__word { font-size: .8em; }
.stat__label { margin: .5rem 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- 13. Bandas azules ---------- */
.lema-band { padding-block: clamp(48px, 6vw, 80px); text-align: center; }
.lema-band__inner { position: relative; z-index: 1; }
.lema-band { position: relative; overflow: hidden; }
.lema-band__title { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: var(--heading); line-height: 1.2; margin: 0 auto .6rem; max-width: 22ch; }
.lema-band__sub { color: var(--fg); font-size: 1.15rem; margin: 0; }

.cta-final { padding-block: var(--section); }
.cards-bar .card { padding-top: 34px; }
.contact-band { padding-block: clamp(56px, 7vw, 96px); background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; z-index: 1; }
.contact-band__logo { padding: 0; }
[data-theme="dark"] .contact-band__logo img { content: url('../img/brand/logo-ruvicap-blanco.webp'); }
.contact-band__logo img { width: 100%; height: auto; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 26px 0 30px; }
.contact-list dt, .site-footer dt { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.contact-list dt { color: var(--kicker); }
.contact-list dd { margin: 0; font-size: 1.08rem; }
.contact-list dd { color: var(--fg); }
.contact-list a { color: var(--heading); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-dark); }

/* ---------- 14. Acordeón ---------- */
.accordion { display: grid; border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; cursor: pointer; font-weight: 700; color: var(--heading); font-size: 1.08rem;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover .accordion__q { color: var(--gold-dark); }
.accordion__icon { flex: none; width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s; }
.accordion__icon .icon { width: 18px; height: 18px; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); background: var(--gold); }
.accordion__item[open] .accordion__icon .icon { color: var(--blue-deep); }
.accordion__a { overflow: hidden; }
.accordion__a p { padding: 0 56px 22px 4px; margin: 0; color: var(--muted); }
.accordion__item mark { background: rgba(201, 165, 65, .35); color: inherit; padding: 0 2px; }

.faq-tools { margin-bottom: 40px; }
.faq-group { margin-bottom: 48px; }
.faq-group__title { margin-bottom: 8px; }
.faq-empty { text-align: center; padding: 32px; background: var(--bg-alt); }

/* Buscadores */
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border: 1.5px solid var(--border); background: var(--input-bg); min-height: 58px; transition: border-color .3s; flex: 1; }
.search-field:focus-within { border-color: var(--gold); }
.search-field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 1.08rem; min-height: 54px; }
.faq-tools .search-field { margin-bottom: 20px; }
.search-page-form { display: flex; gap: 12px; margin-bottom: 32px; }
.search-count { color: var(--muted); }
.search-results { list-style: none; display: grid; gap: 4px; }
.search-results a { display: grid; gap: 2px; padding: 18px 4px; border-bottom: 1px solid var(--border); text-decoration: none; }
.search-results a:hover strong { color: var(--gold-dark); }
.search-results .kicker { margin: 0; font-size: .68rem; }
.search-results strong { color: var(--heading); font-size: 1.1rem; }
.search-results span:last-child { color: var(--muted); font-size: .95rem; }

.search-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(8, 16, 79, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding-top: clamp(80px, 14vh, 160px); opacity: 0; transition: opacity .3s; }
.search-overlay.is-open { opacity: 1; }
.search-overlay__panel { max-width: calc(820px + var(--gutter) * 2); }
.search-overlay__form { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; color: var(--white); }
.search-overlay__form input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--white); font-size: clamp(1.3rem, 3vw, 2rem); font-family: var(--font-title); min-width: 0; }
.search-overlay__form input::placeholder { color: rgba(255, 255, 255, .45); }
.search-overlay__form .icon { color: var(--gold); }
.search-overlay .tool-btn .icon { color: var(--white); }
.search-overlay__results { margin-top: 18px; max-height: 60vh; overflow-y: auto; }
.search-overlay__results a { display: grid; padding: 14px 4px; border-bottom: 1px solid rgba(201, 165, 65, .2); color: var(--white); text-decoration: none; }
.search-overlay__results a:hover, .search-overlay__results a:focus-visible { background: rgba(255, 255, 255, .05); }
.search-overlay__results small { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .68rem; }
.search-overlay__results span { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.search-overlay__results p { color: rgba(255, 255, 255, .75); }

/* ---------- 15. Pestañas ---------- */
.tabs__list { position: relative; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { display: inline-flex; align-items: center; gap: 10px; padding: 16px 18px; background: none; border: 0; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s; }
.tabs__tab[aria-selected="true"], .tabs__tab:hover { color: var(--heading); }
.tabs__ink { position: absolute; bottom: -1px; left: 0; height: 3px; background: var(--gold); transition: transform .45s var(--ease), width .45s var(--ease); }
.tabs__panel { padding: 34px 0 6px; animation: fade-up .5s var(--ease); }
.contract-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contract-list li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--bg-alt); border-left: 3px solid var(--gold); font-weight: 600; color: var(--heading); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 16. Formularios ---------- */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label, .field legend { font-weight: 700; font-size: .92rem; color: var(--heading); padding: 0; }
.req { color: var(--gold-dark); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--input-bg); color: var(--fg); transition: border-color .3s, box-shadow .3s; outline: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 65, .18); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--gold); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .dropzone { border-color: var(--error); }
.field-help { font-size: .86rem; color: var(--muted); margin: 0; }
.field-error { font-size: .86rem; color: var(--error); margin: 0; min-height: 0; font-weight: 600; }
[data-theme="dark"] .field-error { color: #F2A39C; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; font-weight: 400 !important; color: var(--fg) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.check--light { color: rgba(255, 255, 255, .8) !important; font-size: .86rem; }
.check--light input { accent-color: var(--gold); }
.check a { text-decoration: underline; text-decoration-color: var(--gold); }
.check--light a { color: var(--gold); }
.check--radio { margin-top: 6px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-note { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 18px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 16px 18px; background: rgba(201, 165, 65, .14); border-left: 4px solid var(--gold); color: var(--heading); }
.form-status.is-error { padding: 16px 18px; background: rgba(163, 36, 27, .08); border-left: 4px solid var(--error); color: var(--error); }
.form--card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--gold); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px -40px rgba(8, 16, 79, .35); }
.form.is-sending button[type="submit"] { pointer-events: none; opacity: .7; }

.dropzone { position: relative; border: 1.5px dashed var(--gold); background: var(--bg-alt); border-radius: var(--radius); transition: background-color .3s, border-color .3s; }
.section--ivory .dropzone { background: var(--surface); }
.dropzone.is-over { background: rgba(201, 165, 65, .14); border-style: solid; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__label { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; font-weight: 400 !important; color: var(--muted) !important; text-align: center; pointer-events: none; }
.dropzone--compact .dropzone__label { padding: 14px; }
.dropzone__list { list-style: none; position: relative; z-index: 1; }
.dropzone__list:not(:empty) { padding: 0 14px 14px; display: grid; gap: 6px; }
.dropzone__list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.dropzone__list button { background: none; border: 0; color: var(--error); font-size: .85rem; font-weight: 700; }

/* ---------- 17. Cuestionario ---------- */
.quiz-section { padding-block: var(--section); }
.quiz__intro { text-align: center; }
.quiz__intro .gold-rule { margin-inline: auto; }
.quiz__panel { background: var(--surface); color: var(--fg); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--gold); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.quiz__progress { height: 4px; background: var(--border); margin-bottom: 14px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; background: var(--gold); width: 0; transition: width .6s var(--ease); }
.quiz__count { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--kicker); font-weight: 700; }
.quiz__q { font-family: var(--font-title); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--heading); margin-bottom: 24px; }
.quiz__options { display: grid; gap: 12px; }
.quiz__opt { text-align: left; padding: 18px 22px; border: 1.5px solid var(--border); background: var(--bg-alt); font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: border-color .3s, background-color .3s, transform .3s; }
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--gold); transform: translateX(4px); }
.quiz__opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 165, 65, .14); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 22px; }
.quiz__step { animation: fade-up .5s var(--ease); }
.quiz__result h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.quiz__result dl { display: grid; gap: 14px; margin: 18px 0; }
.quiz__result dt { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--kicker); font-weight: 700; }
.quiz__result dd { margin: 0; }
.quiz__alt { padding: 14px 18px; background: var(--bg-alt); border-left: 3px solid var(--gold); }
.quiz__disclaimer { font-size: .88rem; color: var(--muted); margin-top: 18px; }

/* ---------- 18. Agenda ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.booking__col { background: var(--surface); border: 1px solid var(--border); padding: clamp(20px, 2.4vw, 30px); border-top: 4px solid var(--gold); }
.booking__step { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--heading); font-size: 1.05rem; }
.booking__step span { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--gold); display: grid; place-items: center; font-family: var(--font-title); }
.booking .field { margin-bottom: 14px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal__head .icon { color: var(--heading); }
.cal__title { margin: 0; font-family: var(--font-title); font-weight: 700; color: var(--heading); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal__day { aspect-ratio: 1; border: 1px solid transparent; background: none; border-radius: 50%; font-weight: 600; color: var(--heading); display: grid; place-items: center; font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; }
.cal__day:disabled { color: var(--muted); opacity: .38; cursor: not-allowed; }
.cal__day:not(:disabled) { border-color: var(--border); }
.cal__day:not(:disabled):hover { border-color: var(--gold); }
.cal__day[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slots p { grid-column: 1 / -1; }
.slot { padding: 12px 8px; border: 1.5px solid var(--border); background: var(--bg-alt); font-weight: 700; color: var(--heading); transition: border-color .25s, background-color .25s; }
.slot:hover { border-color: var(--gold); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--blue-deep); }
.booking__summary { padding: 14px 16px; background: rgba(201, 165, 65, .14); border-left: 3px solid var(--gold); margin-bottom: 16px; }
.booking__summary .kicker { margin: 0; }
.booking__when { margin: 0; font-weight: 700; color: var(--heading); font-size: 1.1rem; }
.booking-success { text-align: center; padding: 40px 20px; }
.booking-success .icon { margin: 0 auto 16px; width: 56px; height: 56px; }

/* ---------- 19. Páginas legales ---------- */
.prose { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose code { background: var(--bg-alt); padding: 1px 6px; font-size: .9em; }
.prose section { margin-bottom: 36px; }
.prose section h2 { margin-top: 0; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(32px, 6vw, 80px); justify-content: center; }
.legal-toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.legal-toc a { display: block; padding: 6px 14px; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -2px; }
.legal-toc a:hover { color: var(--heading); border-left-color: var(--gold); }

/* ---------- 20. Nosotros ---------- */
.mv { margin-bottom: 0; }
.mv__box { background: var(--surface); color: var(--fg); padding: clamp(26px, 3vw, 40px); border-top: 4px solid var(--gold); border: 1px solid var(--border); border-top: 4px solid var(--gold); }
.mv__box .kicker--light { color: var(--kicker); }
.mv__box p:last-child { margin: 0; font-size: 1.08rem; line-height: 1.75; }
.coverage-mini { display: grid; gap: 16px; margin-top: 34px; }
.coverage-mini > div { display: flex; gap: 14px; }
.coverage-mini p { margin: 0; color: var(--muted); }
.vertical-video { margin: 0; }
.vertical-video__frame { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; background: var(--blue-deep); border: 1px solid var(--gold); padding: 8px; box-shadow: 0 40px 80px -40px rgba(8, 16, 79, .6); }
.vertical-video__frame video { width: 100%; height: 100%; object-fit: cover; }
.vertical-video figcaption { max-width: 340px; margin: 16px auto 0; display: grid; gap: 2px; }
.vertical-video figcaption .kicker { margin: 0; }
.vertical-video figcaption span { color: var(--muted); font-size: .95rem; }
.team { row-gap: 40px; }
.member { position: relative; padding-top: 0; }
.member__photo { aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; overflow: hidden; display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.member .bar-top { position: relative; display: block; margin-bottom: 18px; }
.member__silhouette .icon { width: 96px; height: 96px; color: var(--line); }
[data-theme="dark"] .member__silhouette .icon { color: rgba(201, 165, 65, .35); }
.member__role { color: var(--kicker); font-weight: 700; font-size: .92rem; margin-bottom: .6rem; }
.member p:last-child { color: var(--muted); }
.is-placeholder .member__photo, .logo-slot, .testimonial.is-placeholder { border-style: dashed; border-color: var(--gold); }
.is-placeholder h3, .is-placeholder .member__role, .is-placeholder p, .timeline__item.is-placeholder .timeline__card * , .is-placeholder-text { font-style: italic; }
.timeline__item.is-placeholder .timeline__card { border-style: dashed; border-top-style: solid; }

/* ---------- 21. Carruseles continuos ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; padding-block: 8px; }
.marquee--slow .marquee__track { animation-duration: 70s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.logo-slot { flex: none; width: 200px; height: 100px; display: grid; place-items: center; border: 1px dashed var(--gold); background: var(--surface); color: var(--muted); font-size: .85rem; text-align: center; padding: 14px; }
.logo-slot img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-slot:hover img { filter: none; opacity: 1; }
.testimonial { flex: none; width: min(420px, 82vw); margin: 0; padding: 28px; background: var(--bg-alt); border: 1px solid var(--border); border-top: 3px solid var(--gold); display: grid; gap: 12px; }
.testimonial blockquote { margin: 0; color: var(--fg); }
.testimonial figcaption { display: grid; color: var(--muted); font-size: .92rem; }
.testimonial figcaption strong { color: var(--heading); }

.case-card { flex: none; width: min(320px, 80vw); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold); padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.case-card__logo { background: #fff; border: 1px solid var(--border); aspect-ratio: 5 / 3; display: grid; place-items: center; overflow: hidden; }
.case-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.case-card__badge { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.case-card__badge .icon { color: var(--gold); }
.case-card__name { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--heading); margin: 0; line-height: 1.3; }
.case-card__text { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.cases__cta { margin: 28px auto 14px; max-width: 60ch; color: var(--fg); }
.logo-slot { border-style: solid; border-color: var(--border); }
.logo-slot img { max-height: 84px; }

/* ---------- 22. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside { display: grid; gap: 24px; position: sticky; top: 100px; }
.contact-card { background: var(--bg-alt); padding: 28px; border-top: 4px solid var(--gold); }
.contact-card--blue { background: var(--bg-alt); }
.contact-card--blue .light, .contact-card--blue .h5.light { color: var(--heading); }
.contact-card--blue .light-text { color: var(--fg); }
.channel-list { list-style: none; display: grid; gap: 18px; }
.channel-list li { display: flex; gap: 14px; align-items: flex-start; }
.channel-list li > div { display: grid; }
.channel-list .kicker { margin: 0; font-size: .66rem; }
.channel-list a { color: var(--heading); font-weight: 700; text-decoration: none; word-break: break-word; }
.channel-list a:hover { color: var(--gold-dark); }
.map-section { border-top: 10px solid var(--gold); }
.map-embed { position: relative; height: clamp(340px, 45vw, 480px); background: var(--blue); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-embed__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; color: var(--white); }
.map-embed__placeholder > * { position: relative; z-index: 1; }
.map-embed__placeholder .arc-motif { position: absolute; z-index: 0; right: -20%; top: -40%; }

/* ---------- 23. Pie de página ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--blue-deep); color: rgba(255, 255, 255, .82); font-size: .97rem; }
.site-footer .gold-band { position: relative; }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr 1.5fr; gap: clamp(28px, 3.4vw, 48px); padding-block: clamp(56px, 7vw, 88px) 40px; }
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 18px; }
.site-footer__lema { font-family: var(--font-title); color: var(--gold); font-size: .95rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .check a { text-decoration: underline; }
.site-footer dl { margin: 0; display: grid; gap: 2px; }
.site-footer dd { margin: 0 0 12px; word-break: break-word; }
.site-footer .h5 { color: var(--white); }
.site-footer .small { color: rgba(255, 255, 255, .7); }
.social { display: flex !important; gap: 8px !important; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(201, 165, 65, .4); border-radius: 50%; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.social a:hover { background: rgba(201, 165, 65, .14); border-color: var(--gold); }
.social .icon { width: 19px; height: 19px; }
.newsletter__row { display: flex; gap: 8px; margin-bottom: 10px; }
.newsletter input[type="email"] { flex: 1; min-width: 0; min-height: 44px; padding: .6rem .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 165, 65, .4); color: var(--white); border-radius: var(--radius); outline: 0; }
.newsletter input[type="email"]:focus { border-color: var(--gold); }
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter .field-error { color: #F2A39C; }
.newsletter .form-status.is-ok { background: rgba(201, 165, 65, .14); color: var(--white); }
.site-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 22px 28px; border-top: 1px solid rgba(201, 165, 65, .22); font-size: .86rem; color: rgba(255, 255, 255, .6); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__bottom .linklike { color: rgba(255, 255, 255, .86); font-size: .86rem; }

/* ---------- 24. Flotantes ---------- */
.floaters { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800; display: grid; gap: 12px; justify-items: end; }
.floater { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative; border: 0; box-shadow: 0 16px 30px -12px rgba(8, 16, 79, .55); transition: transform .35s var(--ease); }
.floater:hover { transform: translateY(-3px) scale(1.04); }
.floater .icon { width: 28px; height: 28px; }
.floater--wa { background: var(--gold); color: var(--blue-deep); }
.floater--wa .icon { color: var(--blue-deep); }
.floater--wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
.floater--chat { background: var(--blue); border: 1.5px solid var(--gold); width: 50px; height: 50px; }
.floater--chat .icon { width: 24px; height: 24px; }
.floater__tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; background: var(--blue-deep); color: var(--white); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-left: 3px solid var(--gold); transition: opacity .3s, transform .3s; }
.floater:hover .floater__tip, .floater:focus-visible .floater__tip { opacity: 1; transform: translate(0, -50%); }

.to-top { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; box-shadow: 0 12px 26px -12px rgba(8, 16, 79, .5); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.to-top .icon { width: 20px; height: 20px; color: var(--heading); transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- 25. Asistente virtual ---------- */
.chatbot { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: 150px; z-index: 850; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 190px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--gold); box-shadow: 0 40px 80px -30px rgba(8, 16, 79, .55); transform-origin: bottom right; animation: pop-in .35s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.chatbot__head { display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 18px; background: var(--blue); color: var(--white); }
.chatbot__head img { width: 32px; height: auto; }
.chatbot__head div { display: grid; line-height: 1.3; margin-right: auto; }
.chatbot__head span { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.chatbot__head .icon { color: var(--white); }
.chatbot__log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.msg { max-width: 88%; padding: 10px 14px; font-size: .95rem; line-height: 1.5; animation: fade-up .35s var(--ease); }
.msg--bot { background: var(--bg-alt); border-left: 3px solid var(--gold); justify-self: start; }
.msg--user { background: var(--blue); color: var(--white); justify-self: end; }
.msg p { margin: 0 0 .4em; }
.msg p:last-child { margin: 0; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__actions a { font-size: .85rem; font-weight: 700; padding: 6px 10px; border: 1px solid var(--gold); text-decoration: none; color: var(--heading); background: var(--surface); }
.msg__actions a:hover { background: var(--gold); color: var(--blue-deep); }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: typing 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chatbot__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chatbot__quick button { font-size: .82rem; padding: 6px 12px; border: 1px solid var(--gold); background: transparent; border-radius: 999px; color: var(--heading); font-weight: 600; }
.chatbot__quick button:hover { background: var(--bg-alt); }
.chatbot__form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); }
.chatbot__form input { flex: 1; min-width: 0; border: 1.5px solid var(--border); background: var(--input-bg); padding: 0 12px; min-height: 44px; outline: 0; }
.chatbot__form input:focus { border-color: var(--gold); }
.chatbot__form .tool-btn { border-radius: 0; background: var(--blue); width: 44px; height: 44px; }
.chatbot__form .icon { color: var(--gold); }
.chatbot__note { font-size: .72rem; color: var(--muted); padding: 0 14px 10px; margin: 0; }

/* ---------- 26. Cookies ---------- */
.cookie-banner { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 870; width: min(540px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--gold); padding: 22px; box-shadow: 0 30px 60px -20px rgba(8, 16, 79, .5); animation: pop-in .5s var(--ease-out); }
.cookie-banner strong { color: var(--heading); font-family: var(--font-title); }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin: .4rem 0 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-modal { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); border-top: 4px solid var(--gold); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.cookie-modal::backdrop { background: rgba(8, 16, 79, .6); }
.cookie-modal__form { padding: 28px; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cookie-opt p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.cookie-opt strong { color: var(--heading); }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 26px; background: var(--border); position: relative; cursor: pointer; transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(20px); }
.cookie-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- 27. Animaciones de aparición ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="left"] { transform: translateX(40px); }
.js [data-reveal="right"] { transform: translateX(-40px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Líneas doradas que se dibujan */
.js .gold-rule, .js .card__bar, .js .bar-top, .js .process__step::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(var(--d, 0s) + .25s); }
.js .is-visible .gold-rule, .js .is-visible.gold-rule, .js .is-visible > .card__bar, .js .is-visible > .bar-top, .js .is-visible .bar-top, .js .process__step.is-visible::before, .js .page-hero .gold-rule.is-visible { transform: scaleX(1); }
.js .page-hero .gold-rule { transform: scaleX(0); animation: rule-in 1.1s var(--ease-out) .6s forwards; }
@keyframes rule-in { to { transform: scaleX(1); } }

/* ---------- 28. Adaptable ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .site-header__tools { margin-left: auto; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__news { grid-column: span 2; }
  .booking { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking form { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .grid--4, .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process, .lifecycle__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .lifecycle__line { display: none; }
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__card { max-width: 560px; }
  .contract-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand__logo { height: 54px; }
  body.page-home { --header-h: 104px; }
  .page-home .site-header:not(.is-scrolled) .brand__logo { height: 80px; }
  body:not(.page-home) { --header-h: 84px; }
  body:not(.page-home) .site-header:not(.is-scrolled) .brand__logo { height: 60px; }
  .grid--2, .grid--3, .split, .split--narrow, .split--form, .split--video, .contact-band__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(3)::before { display: none; }
  .diamond-list--2col { grid-template-columns: 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .timeline__line { left: 9px; }
  .timeline__item, .timeline__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 0 40px; }
  .timeline__dot, .timeline__item:nth-child(even) .timeline__dot { left: 0; right: auto; }
  .js .timeline [data-reveal="right"] { transform: translateX(40px); }
  .hero__video { display: none; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__scroll { display: none; }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100% !important; }
  .table--stack tr { border: 1px solid var(--border); border-top: 3px solid var(--gold); margin-bottom: 14px; }
  .table--stack td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--kicker); margin-bottom: 2px; }
  .table--stack tbody th { font-size: 1.05rem; }
  .contact-list { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__news { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  /* En celulares el encabezado se muestra de inmediato (mejor tiempo de carga percibido). */
  .js .page-hero [data-reveal], .js .hero__content [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .grid--4, .area-cards, .process, .lifecycle__list, .contract-list, .form__grid { grid-template-columns: 1fr; }
  .site-header__cta span { display: none; }
  .site-header__cta { padding: .5rem .7rem; }
  .tool-btn { width: 38px; height: 38px; }
  .site-header__tools { gap: 2px; }
  .site-header__tools [data-search-open] { display: none; }
  .brand__logo { height: 46px; }
  body.page-home { --header-h: 92px; }
  .page-home .site-header:not(.is-scrolled) .brand__logo { height: 66px; }
  body:not(.page-home) .site-header:not(.is-scrolled) .brand__logo { height: 52px; }
  .is-scrolled .brand__logo { height: 42px; }
  .hero__logo { padding: 10px 12px; }
  .btn--lg { width: 100%; }
  .hero__card { padding: 20px; }
  .card--line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card__arrow { display: none; }
  .search-page-form { flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .newsletter__row { flex-direction: column; }
  .accordion__a p { padding-right: 4px; }
  .cookie-banner__actions .btn { flex: 1; }
  .floaters { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; }
  .to-top { left: 12px; bottom: 12px; width: 44px; height: 44px; }
  .chatbot { bottom: 136px; right: 12px; height: min(520px, calc(100vh - 170px)); }
}

/* ---------- 29. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .c { opacity: 1 !important; transform: none !important; }
  .js .gold-rule, .js .card__bar, .js .bar-top, .js .process__step::before { transform: none !important; }
  .js .icon--draw path, .js .icon--draw circle, .js .icon--draw rect { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track > [aria-hidden="true"] { display: none; }
  .hero__slide .kenburns { animation: none !important; }
  .floater--wa::before { display: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- 30. Impresión ---------- */
@media print {
  .site-header, .floaters, .to-top, .chatbot, .cookie-banner, .preloader, .search-overlay, .mobile-menu, .hero__slides, .arc-motif { display: none !important; }
  .page-hero, .hero, .section--blue { background: none !important; color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
