/* ================================================================
   GLOBAL FINANCE 360 — Edición Arquitectónica ("old money")
   Autoridad, seriedad y lujo sobrio. Materiales nobles:
   mármol de Carrara, caoba, oro mate y lacre.
   ================================================================ */

:root {
  /* --- Paleta sobria --- */
  --ivory: #FBF8F3;            /* blanco humo (overlay del mármol) */
  --ivory-deep: #F4EFE6;
  --ink: #1C1915;              /* tinta cálida, casi negro */
  --ink-soft: #4A443C;
  --ink-muted: #7A7268;
  --gold: #A8894C;             /* oro mate */
  --gold-light: #C9AE74;
  --gold-pale: rgba(168, 137, 76, 0.35);
  --wine: #5E1E24;             /* lacre */
  --wood-shadow: rgba(28, 20, 12, 0.55);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter-line: calc(50% - 618px);   /* reglas justo fuera del contenido */
  --header-h: 84px;

  /* Transiciones con peso: nada de rebotes */
  --ease-slow: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
  /* RUTA: assets/marmol.jpg — fondo principal de mármol con velo marfil al 90% */
  background:
    linear-gradient(rgba(251, 248, 243, 0.9), rgba(251, 248, 243, 0.9)),
    url(../assets/marmol.jpg) center / cover fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: var(--ivory); padding: .6rem 1.2rem;
  text-decoration: none; letter-spacing: .05em; transition: top .2s;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ================================================================
   MASKING REVEAL — la luz recorre el mármol y descubre la página
   ================================================================ */
#mask-reveal {
  position: fixed; inset: 0; z-index: 200;
  /* RUTA: assets/marmol.jpg — habitación a oscuras: mármol en penumbra */
  background:
    linear-gradient(rgba(12, 10, 8, 0.82), rgba(12, 10, 8, 0.82)),
    url(../assets/marmol.jpg) center / cover;
  /* La máscara (agujero de luz) la mueve GSAP vía variables CSS */
  --mx: 18%; --my: 30%; --mr: 0px;
  -webkit-mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0 97%, #000 100%);
          mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 0 97%, #000 100%);
  display: grid; place-items: center;
}
html:not(.js) #mask-reveal { display: none; }
#mask-reveal .mask-light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle calc(var(--mr) + 140px) at var(--mx) var(--my),
    rgba(255, 236, 195, 0.28) 0%, rgba(255, 236, 195, 0.08) 45%, transparent 70%);
  mix-blend-mode: screen;
}
#mask-reveal .mask-brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: .55em; padding-left: .55em;
  color: rgba(251, 248, 243, 0.85);
}
#mask-reveal .mask-brand i { font-style: normal; color: var(--gold-light); }

/* ================================================================
   REVELADO CON PESO (0.8s, opacidad + slide-up, sin rebote)
   ================================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-slow), transform .8s var(--ease-slow);
}
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* TEXT REVEAL ON SCROLL — el texto emerge del material (clip-path wipe) */
html.js .reveal-text {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s var(--ease-slow);
}
html.js .reveal-text.in { clip-path: inset(0 0 0 0); }

/* MAGNETIC HOVER — el movimiento lo aplica JS con la propiedad `translate`,
   que compone con los `transform` de hover sin conflicto */
html.js .magnetic { will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .reveal-text { clip-path: none; transition: none; }
  html.js .magnetic { translate: none !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   MARCO DE PÁGINA — reglas de margen tipo papel grabado (rellena el
   vacío lateral en pantallas anchas; oculto donde el contenido llena)
   ================================================================ */
.page-frame { display: none; }
@media (min-width: 1440px) {
  .page-frame {
    display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  }
  /* Dos reglas verticales de oro mate flanqueando el contenido */
  .page-frame::before, .page-frame::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold-pale) 12%, var(--gold-pale) 88%, transparent);
  }
  .page-frame::before { left: var(--gutter-line); }
  .page-frame::after { right: var(--gutter-line); }
  /* Marca vertical grabada, tenue, en los márgenes exteriores */
  .page-frame b {
    position: absolute; top: 50%; font-family: var(--font-display);
    font-size: .72rem; letter-spacing: .5em; text-transform: uppercase;
    color: rgba(120, 105, 78, 0.34); white-space: nowrap;
    writing-mode: vertical-rl;
  }
  .page-frame b.left  { left: calc(var(--gutter-line) - 26px); transform: translateY(-50%) rotate(180deg); }
  .page-frame b.right { right: calc(var(--gutter-line) - 26px); transform: translateY(-50%); }
}

/* ================================================================
   CABECERA
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease-slow), box-shadow .5s var(--ease-slow);
}
.site-header.scrolled {
  background: rgba(251, 248, 243, 0.96);
  box-shadow: 0 1px 0 var(--gold-pale), 0 14px 40px rgba(28, 25, 21, 0.08);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 1.6rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .05em;
  transition: color .4s, border-color .4s;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; letter-spacing: .04em; }
.brand-text small {
  display: block; font-family: var(--font-sans); font-weight: 500;
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-muted);
  margin-top: .25rem;
}
.hero ~ * .brand-text, .site-header .brand-text { color: var(--ink); }
.site-header:not(.scrolled) .brand-text,
.site-header:not(.scrolled) .brand-text small { color: var(--ivory); }
.site-header:not(.scrolled) .brand-mark { color: var(--gold-light); border-color: var(--gold-light); }
.site-header.scrolled .brand-text small { color: var(--ink-muted); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ivory); transition: color .3s;
  padding: .3rem 0; position: relative;
}
.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px;
  background: var(--gold); transition: left .45s var(--ease-slow), right .45s var(--ease-slow);
}
.nav-links a:hover::after { left: 0; right: 0; }
.nav-links a:hover { color: var(--gold-light); }
.site-header.scrolled .nav-links a:hover { color: var(--gold); }

.nav-cta { margin-left: .5rem; }

.menu-toggle {
  display: none; width: 46px; height: 46px; margin-left: auto;
  background: transparent; border: 1px solid var(--gold-pale); position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 1.5px;
  background: currentColor; transform: translateX(-50%); transition: all .3s;
}
.menu-toggle { color: var(--ivory); }
.site-header.scrolled .menu-toggle { color: var(--ink); }
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ================================================================
   BOTONES — sobrios, sin artificios
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.9rem; text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 2px solid transparent;
  transition: background .45s var(--ease-slow), color .45s, border-color .45s, transform .45s var(--ease-slow);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.4rem; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold-light); }
.site-header.scrolled .btn-gold:hover { color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(28, 25, 21, 0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(251, 248, 243, 0.5); }
.btn-ghost-light:hover { border-color: var(--ivory); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.cta-row--center { justify-content: center; }

/* ================================================================
   TIPOGRAFÍA DE SECCIÓN
   ================================================================ */
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--gold { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: .015em; margin-bottom: 1.4rem; text-wrap: balance; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section--ivory { background: rgba(244, 239, 230, 0.75); border-top: 1px solid var(--gold-pale); border-bottom: 1px solid var(--gold-pale); }
.section-head { max-width: 820px; margin: 0 auto 3.5rem; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-lead { color: var(--ink-soft); font-size: 1.02rem; margin-top: .6rem; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 1px;
  background: var(--gold); margin: 1.6rem auto 0;
}
.section-head--left h2::after { margin-left: 0; }

.list-title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  margin: 0 0 1.2rem; letter-spacing: .02em;
}
.section-body > .list-title:not(:first-child) { margin-top: 2.4rem; }

/* Layout editorial de dos columnas: encabezado-guía (izq., fijo) + contenido (der.).
   Llena el ancho y elimina la sensación de laterales vacíos. */
.section-split { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.section-split .section-head { position: sticky; top: calc(var(--header-h) + 28px); margin: 0; max-width: none; }
.section-body > *:first-child { margin-top: 0; }

/* ================================================================
   HERO — FACHADA
   ================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--ivory);
  padding-top: var(--header-h);
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  /* RUTA: assets/fachada.jpg — impacto visual del Hero */
  background: url(../assets/fachada.jpg) center 30% / cover no-repeat;
  will-change: transform;
}
/* Columna de lectura: oscurece la izquierda (donde va el texto) y deja
   respirar la fachada a la derecha. Garantiza contraste AA sin tapar la imagen. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 9, 6, 0.9) 0%, rgba(11, 9, 6, 0.78) 34%, rgba(13, 10, 7, 0.45) 62%, rgba(13, 10, 7, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 9, 6, 0.6) 0%, rgba(11, 9, 6, 0.2) 40%, rgba(11, 9, 6, 0.55) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: 2rem;
  padding-block: 8vh 6vh;
}
.hero-inner { position: relative; max-width: 620px; }

/* --- Carrusel 3D de placas (coverflow) --- */
.hero-deck {
  position: relative; justify-self: center;
  width: min(44vw, 480px); max-width: 100%;
}
.deck {
  position: relative; height: 320px;
  transform-style: preserve-3d; perspective: 1300px;
  touch-action: pan-y;
}
.deck-card {
  position: absolute; top: 50%; left: 50%;
  width: 260px; min-height: 288px;
  margin: -144px 0 0 -130px;               /* centrar (mitad de min-height/width) */
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.8rem 1.6rem;
  text-decoration: none; color: var(--ivory);
  /* RUTA: assets/caoba.jpg — placa de caoba con grabado en oro */
  background:
    linear-gradient(rgba(26, 17, 10, 0.9), rgba(20, 13, 8, 0.94)),
    url(../assets/caoba.jpg) center / cover;
  border: 1px solid rgba(201, 174, 116, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  transition: transform .6s var(--ease-slow), opacity .6s var(--ease-slow), box-shadow .6s;
  backface-visibility: hidden;
  transform: translateZ(-500px);           /* estado inicial; JS recoloca */
  opacity: 0;
}
.deck-card.is-active { cursor: pointer; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); border-color: var(--gold-light); }
.deck-card.is-side { cursor: pointer; }
.deck-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1;
  color: rgba(201, 174, 116, 0.7);
}
.deck-tag {
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); border-bottom: 1px solid rgba(201, 174, 116, 0.35); padding-bottom: .5rem;
}
.deck-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; color: #fff; }
.deck-desc { font-size: .82rem; line-height: 1.55; color: rgba(251, 248, 243, 0.72); }
.deck-go {
  margin-top: auto; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #1a1410; background: var(--gold); padding: .6rem 1.3rem; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s, background .3s;
}
.deck-go::after { content: "  →"; }
.deck-card.is-active .deck-go { opacity: 1; transform: translateY(0); }
.deck-card.is-active:hover .deck-go { background: var(--gold-light); }
.deck-card--gold { border-color: rgba(201, 174, 116, 0.6); }

.deck-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.4rem; }
.deck-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(18, 14, 10, 0.5); border: 1px solid rgba(201, 174, 116, 0.4);
  color: var(--gold-light); font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.deck-arrow:hover { background: var(--gold); border-color: var(--gold-light); color: #1a1410; }
.deck-dots { display: flex; gap: .5rem; }
.deck-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(201, 174, 116, 0.35); transition: background .3s, transform .3s;
}
.deck-dots button.is-active { background: var(--gold-light); transform: scale(1.4); }
.deck-hint {
  text-align: center; margin-top: 1rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251, 248, 243, 0.6); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  letter-spacing: .02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero h1 em {
  display: block; font-style: italic; font-weight: 600;
  font-size: .6em; letter-spacing: .06em; color: var(--gold-light);
  margin-top: .5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}
.hero-sep { display: block; width: 72px; height: 2px; background: var(--gold-light); margin: 1.4rem 0; box-shadow: 0 0 16px rgba(201, 174, 116, 0.5); }
.hero-lead {
  max-width: 600px; margin-top: 1.6rem; font-size: 1.12rem; line-height: 1.8;
  color: #F3EEE4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.7);
}
.hero-lead strong { color: #fff; font-weight: 600; }
.eyebrow--light { color: var(--gold-light); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-ledger {
  position: relative; margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201, 174, 116, 0.4);
  background: rgba(15, 12, 9, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-ledger div {
  padding: 1.4rem clamp(1rem, 2.5vw, 2.2rem);
  border-right: 1px solid rgba(201, 174, 116, 0.18);
}
.hero-ledger div:last-child { border-right: 0; }
.hero-ledger strong { display: block; font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .04em; color: #fff; }
.hero-ledger span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 248, 243, 0.6); }

/* ================================================================
   CIFRAS
   ================================================================ */
.strip-stats { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--gold-pale); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); line-height: 1;
}
.stat-number small { font-size: .45em; color: var(--ink-muted); }
.stat-label { display: block; margin-top: .6rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }

/* ================================================================
   SERVICIOS — TARJETAS DE CAOBA
   ================================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  padding: 2.2rem 1.9rem 1.9rem;
  color: var(--ivory); text-decoration: none;
  /* RUTA: assets/caoba.jpg — peso y seriedad en cada servicio */
  background:
    linear-gradient(rgba(24, 15, 9, 0.78), rgba(24, 15, 9, 0.88)),
    url(../assets/caoba.jpg) center / cover;
  border: 2px solid var(--gold-pale);
  box-shadow: 0 18px 50px rgba(28, 20, 12, 0.18);
  transition: transform .8s var(--ease-slow), box-shadow .8s var(--ease-slow), border-color .8s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 30px 70px rgba(28, 20, 12, 0.3);
}
.service-num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display); font-size: 2rem; font-weight: 500;
  color: rgba(201, 174, 116, 0.55);
}
.service-tag {
  align-self: flex-start; font-size: .62rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light);
  border-bottom: 1px solid rgba(201, 174, 116, 0.4); padding-bottom: .4rem;
}
.service-card h3 { font-size: 1.5rem; letter-spacing: .02em; color: #fff; }
.service-card p { font-size: .9rem; line-height: 1.7; color: rgba(251, 248, 243, 0.82); }
.service-card p strong { color: #fff; }
.service-more {
  margin-top: auto; padding-top: 1.2rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light);
}
.service-more::after { content: "  →"; }
.service-card--gold { border-color: var(--gold); }

/* ================================================================
   BLOQUES DE DETALLE
   ================================================================ */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.ledger-card {
  background: #fff; border: 1px solid var(--gold-pale); border-top: 3px solid var(--gold);
  padding: 2rem 2.2rem; box-shadow: 0 14px 44px rgba(28, 25, 21, 0.07);
}
.ledger-card h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 1.1rem; }
.ledger-list li {
  position: relative; padding: .55rem 0 .55rem 1.9rem;
  border-bottom: 1px dashed rgba(28, 25, 21, 0.12);
  font-size: .95rem; color: var(--ink-soft);
}
.ledger-list li:last-child { border-bottom: 0; }
.ledger-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.ledger-list strong { color: var(--ink); }

.wood-panel {
  /* RUTA: assets/caoba.jpg */
  background:
    linear-gradient(rgba(24, 15, 9, 0.82), rgba(24, 15, 9, 0.9)),
    url(../assets/caoba.jpg) center / cover;
  color: rgba(251, 248, 243, 0.85);
  border: 2px solid var(--gold-pale);
  padding: 1.9rem 2rem;
  box-shadow: 0 16px 44px rgba(28, 20, 12, 0.16);
}
.wood-panel h4 { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: .7rem; letter-spacing: .02em; }
.wood-panel p { font-size: .92rem; }
.wood-panel strong { color: #fff; }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li {
  background: #fff; border: 1px solid var(--gold-pale);
  padding: .55rem 1.2rem; font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: .04em;
}

.note { margin-top: 2.2rem; padding: 1.6rem 2rem; }
.note p { font-size: .95rem; }
.note--gold { background: rgba(168, 137, 76, 0.08); border-left: 3px solid var(--gold); }
.note--wine { background: rgba(94, 30, 36, 0.06); border-left: 3px solid var(--wine); }
.note--gold-dark { background: rgba(201, 174, 116, 0.08); border: 1px solid rgba(201, 174, 116, 0.35); color: rgba(251, 248, 243, 0.88); }
.note--gold-dark strong { color: var(--gold-light); }

.section-cta { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--gold-pale); }
.section-cta > p { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink-soft); }
.section-cta--center { text-align: center; border-top: 0; }

/* ================================================================
   VI · ORO — BÓVEDA
   ================================================================ */
.section--vault {
  background:
    linear-gradient(rgba(16, 13, 10, 0.93), rgba(16, 13, 10, 0.93)),
    url(../assets/caoba.jpg) center / cover; /* RUTA: assets/caoba.jpg (penumbra) */
  color: rgba(251, 248, 243, 0.88);
}
.section--vault h2, .section--vault h3 { color: #fff; }
.section--vault .section-lead { color: rgba(251, 248, 243, 0.72); }
.section--vault .section-lead strong { color: #fff; }
.section--vault .section-head h2::after { background: var(--gold-light); }

.accreditation {
  margin-top: 1.6rem; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(251, 248, 243, 0.55);
}
.accreditation strong { color: var(--gold-light); }

.gold-figure {
  position: relative; max-width: 900px; margin: 0 auto 3rem;
  border: 1px solid rgba(201, 174, 116, 0.35);
  overflow: hidden; isolation: isolate;
}
/* Halo dorado que respira detrás del lingote */
.gold-figure::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 174, 116, 0.4), transparent 70%);
  animation: goldGlow 6s ease-in-out infinite;
}
@keyframes goldGlow {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.08); }
}
.gold-figure-media { overflow: hidden; }
.gold-figure img {
  width: 100%; display: block;
  transform: scale(1.06);            /* holgura para el parallax de cursor */
  will-change: transform;
}
/* Destello metálico que barre el lingote (reflejo de luz) */
.gold-figure .gleam {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(115deg,
    transparent 32%, rgba(255, 238, 198, 0.28) 46%, rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 238, 198, 0.28) 54%, transparent 68%);
  transform: translateX(-130%);
  animation: gleamSweep 6s ease-in-out infinite;
}
@keyframes gleamSweep {
  0%, 18% { transform: translateX(-130%); }
  60%, 100% { transform: translateX(130%); }
}
.gold-figure figcaption {
  position: relative; z-index: 3;
  padding: .9rem 1.2rem; text-align: center;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(251, 248, 243, 0.55); border-top: 1px solid rgba(201, 174, 116, 0.25);
}

.gold-heading { text-align: center; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 2.4rem; letter-spacing: .02em; }

.reasons { max-width: 860px; margin: 0 auto; display: grid; gap: 1rem; }
.reasons li {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: 1.5rem 1.7rem;
  background: rgba(251, 248, 243, 0.04);
  border: 1px solid rgba(201, 174, 116, 0.22);
}
.reasons .num {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--gold-light);
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-light);
}
.reasons strong { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .02em; color: #fff; margin-bottom: .3rem; }
.reasons p { font-size: .92rem; color: rgba(251, 248, 243, 0.75); }
.reasons p strong { display: inline; font-family: var(--font-sans); font-size: inherit; color: #fff; }
.reasons p em { color: var(--gold-light); }

.custodians {
  text-align: center; margin: 3rem 0 1rem;
  font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: .42em;
  color: rgba(251, 248, 243, 0.8);
}
.custodians i { font-style: normal; color: var(--gold-light); }

/* ================================================================
   SOBRE MÍ & GARANTÍAS
   ================================================================ */
.about-grid {
  display: grid; grid-template-columns: minmax(230px, 280px) 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
/* El retrato nativo es 362×418: se muestra a ≤280 px para máxima nitidez */
.about-media { position: relative; padding-bottom: 3rem; max-width: 280px; }
.about-portrait {
  width: 100%; max-width: 280px; aspect-ratio: 362 / 418; object-fit: cover;
  border: 1px solid var(--gold-pale);
  box-shadow: 0 24px 60px rgba(28, 25, 21, 0.16);
}
.about-seal {
  /* RUTA: assets/sello.jpg — contrato y compromiso, sellados en lacre */
  position: absolute; right: -16%; bottom: 0; width: 54%;
  border: 5px solid var(--ivory);
  box-shadow: 0 20px 50px rgba(28, 25, 21, 0.25);
}
.about-copy h2 { margin-bottom: .6rem; }
.about-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.45rem; color: var(--gold); margin: 1rem 0 1.4rem;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy p strong { color: var(--ink); }

.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0 .6rem; }
.guarantees > div { background: #fff; border: 1px solid var(--gold-pale); border-top: 3px solid var(--gold); padding: 1.2rem 1.3rem; }
.guarantees dt { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .02em; }
.guarantees dd { font-size: .78rem; color: var(--ink-muted); margin-top: .3rem; }

/* Historia completa integrada (sustituye al enlace a la página antigua) */
.about-story { margin-top: clamp(3rem, 6vw, 5rem); }
.about-story-inner {
  max-width: 760px; margin: 0 auto; padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--gold-pale); text-align: center;
}
.about-story-inner .eyebrow { justify-content: center; display: inline-block; }
.about-story-inner h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.about-story-inner p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-story-inner p strong { color: var(--ink); }
.about-story-inner .lead-serif {
  font-family: var(--font-display); font-size: 1.32rem; font-style: italic;
  line-height: 1.5; color: var(--ink); margin-bottom: 1.4rem;
}
.about-story-inner .note { text-align: left; margin: 2rem 0; }
.about-story-inner .cta-row { justify-content: center; margin-top: 2rem; }

/* ================================================================
   CONTACTO
   ================================================================ */
.section--contact { border-top: 1px solid var(--gold-pale); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1080px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border: 1px solid var(--gold-pale); border-top: 3px solid var(--gold);
  padding: 2rem 1.9rem; text-decoration: none;
  box-shadow: 0 14px 44px rgba(28, 25, 21, 0.07);
  transition: transform .8s var(--ease-slow), box-shadow .8s var(--ease-slow);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(28, 25, 21, 0.13); }
.contact-card--static:hover { transform: none; }
.contact-label { font-size: .66rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.contact-card strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; color: var(--ink); }
.contact-hint { font-size: .84rem; color: var(--ink-muted); }

/* ================================================================
   PIE — ESTRUCTURA LEGAL
   ================================================================ */
.site-footer {
  background: var(--ink); color: rgba(251, 248, 243, 0.75);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; }
.brand--footer .brand-text, .brand--footer .brand-text small { color: var(--ivory); }
.brand--footer .brand-mark { color: var(--gold-light); border-color: var(--gold-light); }
.footer-brand p { margin-top: 1.1rem; font-size: .88rem; max-width: 36ch; }
.footer-claims { margin-top: 1.2rem; display: grid; gap: .3rem; }
.footer-claims li { font-size: .72rem; letter-spacing: .08em; color: rgba(251, 248, 243, 0.45); }
.footer-claims li::before { content: "— "; color: var(--gold); }
.site-footer h4 {
  font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.1rem;
}
.site-footer ul { display: grid; gap: .55rem; }
.site-footer ul a { text-decoration: none; font-size: .88rem; transition: color .3s; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(201, 174, 116, 0.2);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .76rem; color: rgba(251, 248, 243, 0.45);
}

/* ================================================================
   COOKIES
   ================================================================ */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; max-width: 400px;
  background: var(--ivory); border: 1px solid var(--gold-pale); border-top: 3px solid var(--gold);
  padding: 1.5rem 1.6rem; box-shadow: 0 30px 70px rgba(28, 25, 21, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .8s var(--ease-slow), visibility .8s, transform .8s var(--ease-slow);
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .82rem; color: var(--ink-soft); }
.cookie-banner a { color: var(--gold); font-weight: 600; }
.cookie-actions { display: flex; gap: .7rem; margin-top: 1.1rem; }
.cookie-actions .btn { padding: .55rem 1.2rem; font-size: .68rem; }

/* ================================================================
   RESPONSIVE — el espaciado respira según la pantalla
   ================================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-ledger { grid-template-columns: 1fr 1fr; }
  .hero-ledger div { border-bottom: 1px solid rgba(201, 174, 116, 0.18); }
}

/* Carrusel: a partir de tablet se coloca sobre el texto, centrado */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-inner { order: 2; max-width: 100%; }
  .hero-deck { order: 1; width: min(92vw, 420px); margin-top: 1rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251, 248, 243, 0.98);
    border-bottom: 1px solid var(--gold-pale);
    padding: .6rem 1.4rem 1.4rem;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .4s, transform .4s, visibility .4s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { color: var(--ink) !important; padding: .95rem .2rem; border-bottom: 1px solid rgba(28, 25, 21, 0.06); }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .section-split { grid-template-columns: 1fr; gap: 2rem; }
  .section-split .section-head { position: static; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .services-grid, .two-cols, .contact-grid, .guarantees { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .hero-ledger { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
  .about-seal { right: 0; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; }
}
