/* ============================================================
   LVH Abogados & Asociados — Sistema de diseño "El Expediente"
   Paleta clara · Oxblood de marca + crema · Editorial jurídico
   Marca alineada al sitio de producción (Wix --wst-color-action #762011)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color — familia oxblood de marca (real) + oro + papel */
  --paper:      #FBF8F4;
  --paper-2:    #F4ECE2;
  --paper-3:    #EDE2D4;
  --wine:       #762011;   /* Marca principal (oxblood/terracota) — sitio en vivo */
  --wine-600:   #5F1A0D;   /* Estado hover / tono más profundo */
  --wine-deep:  #431009;   /* Fondos oscuros (feature/cine) */
  --wine-blood: #630505;   /* Rojo sangre de marca — acento profundo */
  --ink-cine:   #0B0B0C;   /* neutro: sin tinte vino tras la foto */
  --header-h:   84px;
  --ink:        #211C1A;
  --muted:      #6E625B;
  --line:       #E4D8C9;
  --line-soft:  #EFE7DB;
  --white:      #ffffff;

  /* Texto sobre superficies oscuras (vino/cine) */
  --on-dark:    #F0E6DC;
  --on-dark-2:  #D8C2B2;
  --on-dark-3:  #B9A396;

  /* Acentos — sin dorado: vino sobre fondos claros, crema sobre oscuros */
  --accent:       var(--wine);
  --accent-light: var(--on-dark);
  /* Alias de compatibilidad (los nombres antiguos siguen funcionando) */
  --gold:       var(--accent);
  --gold-soft:  var(--accent-light);

  /* Typography System — LVH */
  --serif:        "Playfair Display", Georgia, "Times New Roman", serif; /* Marca / Display */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;             /* Texto corrido / Lectura */
  --sans:         "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Funcional / UI */
  --mono:         "Source Sans 3", "Source Sans Pro", -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2.3rem + 4.5vw, 6rem);

  /* Space & shape */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(33,28,26,.05), 0 4px 14px rgba(33,28,26,.05);
  --shadow-md: 0 10px 30px rgba(67,16,9,.10), 0 2px 8px rgba(33,28,26,.06);
  --shadow-lg: 0 24px 60px rgba(67,16,9,.16);
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (no 'hidden') para no romper position: sticky */
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
section[id], .section[id] { scroll-margin-top: calc(var(--header-h) + 1.2rem); }

/* ---------- Headings & Type utilities ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 em, h2 em, h3 em, h4 em, .display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--wine);
  /* La frase destacada viaja junta: nunca se parte entre dos líneas */
  white-space: nowrap;
}
.display { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .7ch;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }
.lead { font-family: var(--font-body); font-size: var(--step-1); line-height: 1.6; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.serif-em { font-family: var(--font-body); font-style: italic; font-weight: 400; color: var(--wine); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--wine);
  --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: .02em;
  padding: .95em 1.6em;
  background: var(--_bg);
  color: var(--_fg);
  border-radius: 6px;
  border: 1px solid var(--_bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), filter .25s var(--ease);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 32, 17, 0.32), 0 0 18px rgba(118, 32, 17, 0.25);
  background: var(--wine-600);
  border-color: var(--wine-600);
  filter: brightness(1.08);
}
.btn:active { transform: translateY(0); filter: brightness(1); }
.btn .btn__ico { width: 1.1em; height: 1.1em; }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--wine);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(118, 32, 17, 0.14), 0 0 14px rgba(255, 255, 255, 0.5);
  filter: brightness(1.03);
}
/* Antes dorado — ahora crema con texto vino (9.1:1) */
.btn--gold { --_bg: var(--paper-2); --_fg: var(--wine); border-color: var(--wine); }
.btn--gold:hover {
  background: var(--paper);
  border-color: var(--wine-600);
  color: var(--wine-600);
  box-shadow: 0 4px 18px rgba(118, 32, 17, 0.22), 0 0 16px rgba(237, 226, 212, 0.6);
  filter: brightness(1.05);
}
.btn--wa { --_bg: #0F7A40; }
.btn--wa:hover {
  background: #0C6534;
  border-color: #0C6534;
  box-shadow: 0 6px 22px rgba(15, 122, 64, 0.45), 0 0 20px rgba(37, 211, 102, 0.4);
  filter: brightness(1.08);
}
.btn--lg { padding: 1.05em 1.85em; font-size: var(--step-0); }
.btn--block { width: 100%; }

/* Estilo premium para botones sobre la apertura cinemática (Hero) */
.cine__cta .btn {
  border-radius: 6px;
  backdrop-filter: blur(10px);
}
.cine__cta .btn--gold {
  background: var(--wine);
  border-color: var(--wine);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(118, 32, 17, 0.28);
  font-weight: 600;
}
.cine__cta .btn--gold:hover {
  background: var(--wine-600);
  border-color: var(--wine-600);
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(118, 32, 17, 0.38);
  transform: translateY(-2px);
}
.cine__cta .btn--wa {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cine__cta .btn--wa .btn__ico {
  color: #25D366;
  transition: transform .25s var(--ease);
}
.cine__cta .btn--wa:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.55);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(33,28,26,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { height: clamp(42px, 4.5vw, 54px); width: auto; transition: height .3s var(--ease); }
.brand__mark { display: none; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; }
.nav__links a {
  font-family: var(--sans);
  font-size: .95rem; font-weight: 600; color: var(--ink); position: relative; padding-block: .4rem; white-space: nowrap;
  transition: color .22s var(--ease), text-shadow .22s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--wine);
  box-shadow: 0 0 8px rgba(118, 32, 17, 0.4);
  transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible {
  color: var(--wine);
  text-shadow: 0 0 10px rgba(118, 32, 17, 0.32);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--wine); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__phone {
  font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); display: inline-flex; gap: .5ch; align-items: center; white-space: nowrap;
  transition: color .22s var(--ease), text-shadow .22s var(--ease);
}
.nav__phone:hover {
  color: var(--wine);
  text-shadow: 0 0 8px rgba(118, 32, 17, 0.25);
}
.nav__phone:hover strong { color: var(--wine); }
.nav__phone svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .22s var(--ease), filter .22s var(--ease); }
.nav__phone:hover svg { filter: drop-shadow(0 0 4px rgba(118, 32, 17, 0.35)); }
.btn--sm { padding: .62em 1.15em; font-size: .9rem; white-space: nowrap; }
.nav__phone strong { color: var(--ink); font-weight: 600; transition: color .22s; }
.site-nav-mobile { display: none; }
.site-nav-backdrop {
  position: fixed; inset: 0; background: rgba(33, 28, 26, 0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 54; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-toggle {
  display: none; width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  border-radius: 8px; border: 1px solid var(--line);
  align-items: center; justify-content: center;
  touch-action: manipulation;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: rotate(-45deg) translateY(0); }

/* ---------- Apertura cinemática (secuencia scrubbeada con scroll) ---------- */
/* se desliza bajo el header para que la imagen arranque en el borde superior */
.cine { position: relative; height: 300vh; margin-top: calc(-1 * var(--header-h)); background: var(--ink-cine); }
.cine__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; background: var(--ink-cine);
}
.cine__poster, .cine__canvas {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08) brightness(0.96);
}
.cine__canvas { opacity: 0; transition: opacity .6s var(--ease); }
.cine.is-ready .cine__canvas { opacity: 1; }

/* Velo degradado crema (#f3ebe1) suave y transparente sobre la fotografía */
.cine__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* Sombra vinotinto que sube desde la base y funde con el strip inferior */
    linear-gradient(to top, var(--wine-deep) 0%, rgba(67,16,9,.78) 9%, rgba(67,16,9,.30) 26%, rgba(67,16,9,.06) 40%, transparent 50%),
    radial-gradient(80% 65% at 50% 48%, rgba(243, 235, 225, 0.38) 0%, rgba(243, 235, 225, 0.16) 52%, transparent 80%),
    linear-gradient(180deg, rgba(243, 235, 225, 0.45) 0%, rgba(243, 235, 225, 0.04) 28%, rgba(243, 235, 225, 0.12) 60%, transparent 88%);
}

/* Actos de texto: reubicados con holgura para no amontonarse arriba */
.cine__act {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: clamp(1.5rem, 6vw, 5.5rem);
  padding-top: calc(var(--header-h) + clamp(1.8rem, 6vh, 4.5rem));
  pointer-events: none;
  will-change: opacity, transform;
}
/* Sin JS: se muestra solo el primer acto (el h1 nunca queda invisible) */
.cine__act ~ .cine__act { opacity: 0; visibility: hidden; }
/* Con JS: el scrubbing toma el control desde el primer fotograma */
html.js .cine__act { opacity: 0; }
html:not(.js) .cine { height: 100vh; height: 100svh; }
.cine__act a { pointer-events: auto; }
.cine__act--center { justify-content: center; text-align: center; }
.cine__act--center .cine__inner { max-width: min(92vw, 900px); }
.cine__act--center .eyebrow { justify-content: center; }
.cine__act--left { justify-content: flex-start; }
.cine__inner { max-width: min(92vw, 640px); }

.eyebrow--light { color: var(--wine); }
.eyebrow--light::before { background: var(--wine); }

.cine__title {
  margin-top: 1.2rem;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 0 25px rgba(243, 235, 225, 0.95), 0 0 50px rgba(243, 235, 225, 0.8), 0 2px 4px rgba(255, 255, 255, 0.9);
}
.cine__title--sm { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.cine__lead {
  margin-top: 1.1rem;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.08; letter-spacing: -0.015em;
  color: var(--ink);
  text-shadow: 0 0 25px rgba(243, 235, 225, 0.95), 0 0 50px rgba(243, 235, 225, 0.8), 0 2px 4px rgba(255, 255, 255, 0.9);
}
.cine__title em, .cine__lead em { font-style: italic; font-weight: 700; color: var(--wine); }
/* Lámina de papel bajo el párrafo: lo despega de la fotografía */
.cine__body {
  margin-top: 1.3rem; max-width: min(90vw, 460px);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65;
  color: var(--ink);
  text-shadow: none;
  background: rgba(251, 248, 244, .72);
  backdrop-filter: blur(12px) saturate(1.08);
  border-radius: 8px;
  padding: .9rem 1.15rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
}
/* En el acto alineado a la izquierda, filete vino como en las notas legales */
.cine__act--left .cine__body {
  border-left: 3px solid var(--wine);
  border-radius: 0 8px 8px 0;
}
.cine__act--center .cine__body { margin-inline: auto; }

.cine__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.cine__act--left .cine__cta { justify-content: flex-start; }
/* Píldora de papel: los tres avales se leen sobre cualquier fotograma */
.cine__trust {
  margin-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center;
  width: fit-content; max-width: min(92vw, 640px); margin-inline: auto;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(251, 248, 244, .72);
  backdrop-filter: blur(12px) saturate(1.08);
  border-radius: 100px;
  padding: .65rem 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}
.cine__trust .sep { color: var(--wine); }

/* Indicador de desplazamiento */
.cine__hint {
  margin-top: 2.6rem; display: inline-flex; flex-direction: column; align-items: center; gap: .7rem;
  font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-2);
}
.cine__hintline {
  width: 1px; height: 44px; background: linear-gradient(var(--wine), transparent);
  transform-origin: top; animation: hintpulse 2.2s ease-in-out infinite;
}
@keyframes hintpulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

/* Riel de progreso de la secuencia */
.cine__rail {
  position: absolute; right: clamp(.9rem, 2.6vw, 2.2rem); top: 50%; transform: translateY(-50%);
  width: 2px; height: 120px; background: rgba(33, 28, 26, 0.18); border-radius: 2px; overflow: hidden;
}
.cine__railfill { display: block; width: 100%; height: 100%; background: var(--wine); transform: scaleY(0); transform-origin: top; }

/* Header mientras flota sobre la apertura clara */
.site-header.site-header--cine {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header--cine .brand img { filter: none; }
.site-header--cine .nav__links a { color: var(--ink); }
.site-header--cine .nav__links a::after { background: var(--wine); }
.site-header--cine .nav__phone { color: var(--muted); }
.site-header--cine .nav__phone strong { color: var(--ink); }
.site-header--cine .nav__actions .btn { background: var(--wine); border-color: var(--wine); color: #fff; }
.site-header--cine .nav-toggle { border-color: var(--line); }
.site-header--cine .nav-toggle span,
.site-header--cine .nav-toggle span::before,
.site-header--cine .nav-toggle span::after { background: var(--ink); }

/* Sin JS o con movimiento reducido: apertura estática de una pantalla */
.cine--static { height: 100vh; height: 100svh; }
.cine--static .cine__rail, .cine--static .cine__hintline { display: none; }

/* ---------- Marquee trust strip ---------- */
.strip { background: var(--wine-deep); color: var(--on-dark); overflow: hidden; }
.strip__track { display: flex; gap: 3.5rem; padding-block: .95rem; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.strip__item .sep { color: var(--on-dark); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Balance (signature) ---------- */
.balance { background: var(--paper-2); border-block: 1px solid var(--line); text-align: center; }
.balance__scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); max-width: 940px; margin-inline: auto; }
.balance__beam { position: relative; }
.balance__fulcrum { width: clamp(92px, 12vw, 128px); filter: drop-shadow(0 12px 22px rgba(67,16,9,.18)); transform: rotate(-2.5deg); transition: transform 1.1s var(--ease); }
.balance.is-level .balance__fulcrum { transform: rotate(0deg); }

/* Coreografía scrubbeada: las dos mitades convergen al centrarse la sección
   y se separan al salir. JS escribe --shift, --fade y --tilt según el scroll. */
.balance.is-scrubbed { --shift: 0px; --fade: 1; --tilt: 0deg; }
.balance.is-scrubbed .balance__pan {
  transition: none;
  will-change: transform, opacity;
  opacity: var(--fade);
}
.balance.is-scrubbed .balance__pan--l { transform: translateX(calc(var(--shift) * -1)); }
.balance.is-scrubbed .balance__pan--r { transform: translateX(var(--shift)); }
.balance.is-scrubbed .balance__fulcrum {
  transform: rotate(var(--tilt));
  transition: none;
  will-change: transform;
}
.balance.is-scrubbed .balance__note { opacity: var(--fade); transition: none; }

/* En móviles, animación scrubbeada optimizada horizontal y vertical */
@media (max-width: 760px) {
  .balance.is-scrubbed .balance__pan--l {
    transform: translateX(calc(var(--shift) * -0.32)) translateY(calc(var(--shift) * -0.15));
  }
  .balance.is-scrubbed .balance__pan--r {
    transform: translateX(calc(var(--shift) * 0.32)) translateY(calc(var(--shift) * 0.15));
  }
}
.balance__pan { position: relative; }
.balance__pan .k {
  font-family: var(--serif); font-size: var(--step-2); line-height: 1.1; color: var(--wine); font-style: italic; font-weight: 700;
  transition: transform 1.1s var(--ease);
}
.balance__pan .s { display: block; margin-top: .5rem; font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.balance__pan--l .k { transform: translateY(-10px); }
.balance__pan--r .k { transform: translateY(10px); }
.balance.is-level .balance__pan--l .k,
.balance.is-level .balance__pan--r .k { transform: translateY(0); }
.balance__note { margin-top: 2.4rem; font-size: .9rem; color: var(--muted); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.sec-head p { margin-top: 1.1rem; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------- Diferenciadores ---------- */
.pillars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.pillar {
  grid-column: span 3;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem 1.6rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.pillar__ico { width: 44px; height: 44px; color: var(--wine); margin-bottom: 1.1rem; }
.pillar__ico svg { width: 100%; height: 100%; }
.pillar h3 { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); line-height: 1.18; margin-bottom: .5rem; }
.pillar p { font-family: var(--font-body); font-size: .95rem; color: var(--muted); line-height: 1.6; }
.pillar--feature { grid-column: span 6; background: linear-gradient(155deg, var(--wine) 0%, var(--wine-deep) 100%); border-color: transparent; color: var(--on-dark); }
.pillar--feature h3, .pillar--feature .pillar__ico { color: #fff; }
.pillar--feature p { color: var(--on-dark-2); font-size: 1rem; }
.pillar--feature .tag { display: inline-flex; align-items: center; gap: .5ch; font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.dif-cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.6rem); }
.pillar--feature::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }

/* ---------- Áreas de práctica (dossier) ---------- */
.dossier { border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: background .3s var(--ease); cursor: pointer;
}
.area::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 0; bottom: 0; background: var(--paper-2); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.area:hover::before, .area[open] > summary::before { opacity: 1; }
.area__ref { font-family: var(--sans); font-weight: 700; font-size: .82rem; color: var(--gold); letter-spacing: .08em; }
.area__ref b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--wine); font-weight: 700; letter-spacing: 0; margin-top: .2rem; }
.area__body h3 { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); line-height: 1.15; }
.area__body p { font-family: var(--font-body); color: var(--muted); margin-top: .5rem; max-width: 62ch; font-size: .98rem; line-height: 1.6; }
.area__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wine-600); background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: .35em .85em; }
.area__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--wine); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); flex: none; }
.area:hover .area__arrow { background: var(--wine); color: #fff; transform: rotate(-45deg); }
.area__arrow svg { width: 20px; height: 20px; }

/* ---------- Público (a quién defendemos) ---------- */
.who { background: var(--wine-deep); color: var(--on-dark); }
.who .eyebrow { color: var(--gold-soft); }
.who .eyebrow::before { background: var(--gold-soft); }
.who .sec-head h2 { color: #fff; }
.who .sec-head p { color: var(--on-dark-2); }
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); overflow: hidden; }
.who__cell { background: var(--wine-deep); padding: 1.8rem 1.6rem; transition: background .3s var(--ease); }
.who__cell:hover { background: var(--wine-600); }
.who__cell .n { font-family: var(--sans); font-weight: 700; font-size: .75rem; color: var(--gold-soft); letter-spacing: .12em; }
.who__cell h3 { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); margin: .7rem 0 .4rem; color: #fff; }
.who__cell p { font-family: var(--font-body); font-size: .94rem; color: var(--on-dark-2); line-height: 1.6; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--gold);
  padding-bottom: .5rem;
}
.step::after { content: ""; position: absolute; top: .55rem; left: 2.6rem; right: -1.4rem; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step .dot { position: absolute; top: .25rem; left: 1.7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }
.step h3 { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); margin-bottom: .5rem; }
.step p { font-family: var(--font-body); font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ---------- Nosotros ---------- */
#nosotros {
  position: relative;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  overflow: clip; /* clip en vez de hidden para no romper el sticky del zoom */
}
.about__watermark-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4%;
  overflow: hidden;
}
.about__watermark {
  width: min(580px, 48vw);
  height: auto;
  opacity: 0.20;
  transition: opacity .3s var(--ease);
  will-change: src;
}
@media (max-width: 900px) {
  .about__watermark-wrap {
    justify-content: center;
    padding-right: 0;
    opacity: 0.16;
  }
  .about__watermark {
    width: min(340px, 80vw);
  }
}
#nosotros .container {
  position: relative;
  z-index: 1;
}
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.about__media img { width: 100%; height: auto; display: block; }
.about__monogram {
  position: absolute; right: -18px; top: -18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow-md); text-align: center;
}
.about__monogram .m { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--wine); line-height: 1; letter-spacing: .05em; }
.about__monogram .l { font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: .35rem; }
.about h2 { font-family: var(--serif); font-weight: 700; font-size: var(--step-3); margin: 1rem 0 1.3rem; }
/* "Legal Group" como antetítulo pequeño encima del nombre */
.about-title__pre {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .42em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .12em;
}
/* Ampersand (&) legible en Arial / Calibri para sustituir la ligadura decorativa de Playfair */
.amp, h1 .amp, h2 .amp, h3 .amp, .display .amp {
  font-family: "Calibri", "Arial", "Segoe UI", var(--sans);
  font-weight: 600;
  font-style: normal;
  display: inline-block;
  margin-inline: 0.08em;
  vertical-align: baseline;
}
.about p + p { margin-top: 1rem; }
.about .sig { margin-top: 1.8rem; font-family: var(--font-body); font-style: italic; font-size: var(--step-1); color: var(--wine); }
.about__facts { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; }
.fact .n { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); color: var(--wine); line-height: 1; }
.fact .l { font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--muted); margin-top: .4rem; letter-spacing: .02em; }

/* ---------- Nosotros: Presentación cinemática con scroll scrubbeado ---------- */
.about-scene {
  position: relative;
}
.about-scene__track { position: relative; }
.about-scene__stage {
  position: relative;
  display: flex;
  align-items: center;
}
.about-scene__stage .about { width: 100%; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .about-scene { padding-block: 0; }
  .about-scene__track { height: 320vh; }        /* Recorrido con mesetas generosas de lectura */
  .about-scene__stage {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 1.2rem);
    padding-bottom: 1.2rem;
  }
  .about-scene .about__media img { will-change: transform; }
}

/* Marco de la foto: proporción 1.5 controlada (máx 275px de alto) para que NUNCA desborde en vertical */
.about__media { display: flex; flex-direction: column; }
.about__media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: 275px;
  aspect-ratio: 1.5;
  background: var(--paper-3);
  position: relative;
}
.about-scene .about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 0 0;
  backface-visibility: hidden;
  transition: transform 0.05s linear;
  will-change: transform;
}
.about-scene .about__media img.is-animating {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Selector interactivo de socios (móvil y escritorio) */
.about__tabs {
  display: flex;
  gap: .4rem;
  margin-top: .9rem;
  padding: .3rem;
  background: rgba(118, 32, 17, 0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about__tabs::-webkit-scrollbar { display: none; }
.about__tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .95rem;
  border: 0;
  background: transparent;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.about__tab:hover {
  color: var(--wine);
  background: rgba(118, 32, 17, 0.08);
}
.about__tab.is-active {
  background: var(--wine);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(118, 32, 17, 0.28);
}
.about__tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.about__tab.is-active .about__tab-dot {
  opacity: 1;
  background: #ffffff;
  transform: scale(1.15);
}

.about__profiles {
  position: relative;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  min-height: 145px;
}
/* Cada ficha se muestra de forma limpia sin solapamiento */
.about__profile {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}
.about__profile.is-active {
  display: block;
  animation: profileFadeIn 0.35s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about__profile-hint {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.about__profile-hint .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wine);
  animation: aboutPulse 1.8s var(--ease) infinite;
}
@keyframes aboutPulse { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.about__profile-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.about__profile-name {
  font-family: var(--serif); font-weight: 700; font-size: var(--step-2);
  line-height: 1.1; color: var(--wine); margin: 0;
}
.about__profile-role {
  font-family: var(--sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.about__profile-lead {
  font-family: var(--font-body); font-size: .95rem; line-height: 1.55;
  color: var(--ink); margin-top: .5rem; max-width: 52ch;
}
.about__profile-more {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: .75rem;
  font-family: var(--sans); font-weight: 700; font-size: .88rem;
  color: var(--wine); background: none; padding: .2rem 0;
  position: relative;
}
.about__profile-more svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.about__profile-more::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px;
  width: 100%; background: var(--wine); transform: scaleX(.4); transform-origin: left;
  transition: transform .3s var(--ease);
}
.about__profile-more:hover svg, .about__profile-more:focus-visible svg { transform: translateX(3px); }
.about__profile-more:hover::after, .about__profile-more:focus-visible::after { transform: scaleX(1); }

/* En pantallas móviles: espacio reservado óptimo para las fichas dinámicas */
@media (max-width: 899px) {
  .about__profiles {
    min-height: 165px;
    margin-top: .85rem;
    padding-top: .85rem;
  }
}

/* Modo accesibilidad: sólo si el usuario solicitó explícitamente no tener movimiento */
@media (prefers-reduced-motion: reduce) {
  .about__tabs { display: none; }
  .about__profiles { display: grid; gap: 1.6rem; min-height: 0; }
  .about__profile {
    grid-area: auto; position: static; opacity: 1; visibility: visible;
    transform: none; pointer-events: auto; transition: none;
    padding-top: 1.4rem; border-top: 1px dashed var(--line);
  }
  .about__profile:first-child { border-top: 0; padding-top: 0; }
  .about__profile[data-stage="0"] { display: none; }
}

/* ---------- Modal de perfil ---------- */
.pmodal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.pmodal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.pmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 6, 10, .58);
  backdrop-filter: blur(4px);
}
.pmodal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  transform: translateY(14px) scale(.98);
  transition: transform .35s var(--ease);
}
.pmodal.is-open .pmodal__dialog { transform: none; }
.pmodal__close {
  position: absolute; top: .9rem; right: .9rem;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--wine); background: var(--paper-2); border: 1px solid var(--line);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pmodal__close svg { width: 20px; height: 20px; }
.pmodal__close:hover { background: var(--wine); color: #fff; transform: rotate(90deg); }
.pmodal__eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .7ch;
}
.pmodal__eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--wine); }
.pmodal__name {
  font-family: var(--serif); font-weight: 700; font-size: var(--step-3);
  line-height: 1.1; color: var(--wine); margin: .8rem 0 .3rem; padding-right: 2.5rem;
}
.pmodal__role {
  display: block; font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pmodal__body { margin-top: 1.4rem; }
.pmodal__body p {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.68; color: var(--ink);
}
.pmodal__body p + p { margin-top: 1rem; }
.pmodal__actions { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
body.pmodal-open { overflow: hidden; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.quote__mark { font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: .6; color: var(--gold); height: 1.4rem; }
.quote p { font-family: var(--font-body); font-style: italic; font-size: 1.02rem; line-height: 1.65; flex: 1; margin-top: .6rem; }
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote__by .av { width: 42px; height: 42px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; flex: none; }
.quote__by > span:last-child { display: flex; flex-direction: column; }
.quote__by .who-q { display: block; font-family: var(--sans); font-weight: 700; font-size: .94rem; }
.quote__by .role { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.quote__stars { color: var(--gold); letter-spacing: .1em; font-size: .8rem; margin-top: .2rem; }

/* ---------- Transición de aparición de los testimonios ----------
   La tarjeta sube y se asienta; dentro, comillas, estrellas y firma
   entran en cascada. Las tres tarjetas mantienen su escalonado propio. */
/* Longhands a propósito: la forma abreviada resetearía transition-delay
   y anularía el escalonado que aporta .reveal[data-delay]. */
html.js .quote.reveal {
  transition-property: opacity, transform, box-shadow;
  transition-duration: .75s;
  transition-timing-function: var(--ease);
}
html.js .quote.reveal:not(.in) {
  opacity: 0;
  transform: translateY(26px) scale(.97);
  box-shadow: none;
}
html.js .quote .quote__mark,
html.js .quote .quote__stars,
html.js .quote .quote__by {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.js .quote:not(.in) .quote__mark  { opacity: 0; transform: translateY(6px) scale(.65); }
html.js .quote:not(.in) .quote__stars { opacity: 0; transform: translateY(6px); }
html.js .quote:not(.in) .quote__by    { opacity: 0; transform: translateY(12px); }
html.js .quote.in .quote__mark        { transition-delay: .18s; }
html.js .quote.in .quote__stars       { transition-delay: .34s; }
html.js .quote.in .quote__by          { transition-delay: .46s; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); color: #fff; border-radius: 0; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 700; font-size: var(--step-3); line-height: 1.08; color: var(--white); }
.cta-band h2 em { font-style: italic; font-weight: 700; color: var(--on-dark); }
.cta-band p { font-family: var(--font-body); color: var(--on-dark-2); margin-top: 1rem; max-width: 46ch; font-size: 1.02rem; line-height: 1.6; }
.cta-band__actions { display: flex; flex-direction: column; gap: .9rem; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("../img/balanza.png"); background-size: 280px; background-repeat: no-repeat; background-position: right -60px center; opacity: .07; }

/* ---------- Contacto ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__aside h2 { font-family: var(--serif); font-weight: 700; font-size: var(--step-3); margin: 1rem 0 1.2rem; }
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list li > span:last-child { display: flex; flex-direction: column; gap: .2rem; }
.contact__list .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--wine); flex: none; }
.contact__list .ico svg { width: 20px; height: 20px; }
.contact__list .k { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__list .v { display: block; font-family: var(--sans); font-weight: 600; }
.contact__list a.v:hover { color: var(--wine); }

/* ---------- Mapa de la oficina ---------- */
/* Ocupa toda la anchura de la sección, bajo los datos y el formulario */
.contact__map {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow-sm);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 30vw, 420px);
  border: 0;
  /* Desatura ligeramente para que no compita con el vino de la marca */
  filter: grayscale(.3) contrast(1.03);
}
.contact__map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.1rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  color: var(--wine);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.contact__map-link svg { width: 17px; height: 17px; flex: none; }
.contact__map-link:hover { background: var(--paper-2); color: var(--wine-600); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--sans); font-size: .84rem; font-weight: 600; margin-bottom: .45rem; }
.field label .req { color: var(--wine); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); /* 1rem (16px) previene auto-zoom en iOS Safari */
  padding: .85em .95em; background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7280; font-family: var(--sans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(118,32,17,.12); background: #fff; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
  border-color: #c93b2b; background: #fff9f9;
  box-shadow: 0 0 0 3px rgba(201, 59, 43, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__note { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .5rem; align-items: flex-start; }
.form__note svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-deep); color: var(--on-dark); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer__brand img { height: 40px; filter: brightness(0) invert(1); width: auto; opacity: .95; margin-bottom: 1.2rem; }
.footer__brand p { font-family: var(--font-body); font-size: .92rem; color: var(--on-dark-2); max-width: 34ch; line-height: 1.6; }
.footer__brand .tag { font-family: var(--font-body); font-style: italic; color: var(--on-dark); margin-top: 1rem; font-size: 1.08rem; }
.footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: .7rem; }
.footer ul a, .footer address a { font-family: var(--sans); color: var(--on-dark-2); font-size: .92rem; font-style: normal; transition: color .2s; }
.footer ul a:hover, .footer address a:hover { color: #fff; }
.footer address { font-family: var(--sans); font-style: normal; display: grid; gap: .7rem; font-size: .92rem; color: var(--on-dark-2); }
.footer__bottom { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; font-size: .84rem; color: var(--on-dark-3); }
.footer__bottom a:hover { color: #fff; }
.footer__social { display: flex; gap: .7rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; color: var(--on-dark); transition: background .25s, border-color .25s; }
.footer__social a:hover { background: rgba(255,255,255,.12); border-color: var(--on-dark); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: #0F7A40; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(15,122,64,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #0F7A40; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Reveal animation (hidden only when JS is active, before .in) ---------- */
html.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
/* El prefijo html.js es necesario: sin él, la abreviatura `transition` de
   `html.js .reveal` (más específica) reseteaba estos retrasos a 0. */
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }
html.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal__head { max-width: 760px; margin-bottom: 2.5rem; }
.legal__head h1 { font-family: var(--serif); font-weight: 700; font-size: var(--step-4); margin: 1rem 0 .8rem; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-family: var(--serif); font-weight: 700; font-size: var(--step-2); margin: 2.4rem 0 .8rem; color: var(--wine); }
.legal__body h3 { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); margin: 1.6rem 0 .5rem; }
.legal__body p, .legal__body li { font-family: var(--font-body); color: var(--ink); line-height: 1.7; }
.legal__body p { margin-bottom: 1.1rem; }
.legal__body ul { margin: 0 0 1.2rem 1.2rem; display: grid; gap: .5rem; }
.legal__toc { position: sticky; top: 100px; font-family: var(--sans); font-size: .9rem; }

/* ---------- Servicios Page ---------- */
.srv-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.8rem);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(118,32,17,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(118,32,17,.07) 0%, transparent 70%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
/* Dama de la Justicia difuminada al costado derecho — atmósfera sin robar legibilidad */
.srv-hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(52%, 760px);
  background: url("../img/srv_hero.jpg") no-repeat center right / cover;
  filter: grayscale(.55) contrast(1.02) sepia(.12);
  opacity: .15;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.72) 44%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.72) 44%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.srv-hero > .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .srv-hero::after { width: 100%; opacity: .08; mask-image: linear-gradient(to top, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%); }
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--wine);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  opacity: .5;
}
.srv-hero__head {
  max-width: 840px;
}
.srv-hero__head h1 {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.15;
  margin: 1rem 0 1.2rem;
  color: var(--ink);
}
.srv-hero__head h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--wine);
}
.srv-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--ink);
  line-height: 1.68;
  max-width: 68ch;
}
.srv-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: 2rem;
}
.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .45rem .95rem;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--wine-600);
  box-shadow: var(--shadow-sm);
}
.srv-badge svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* Quick Jump Nav */
.srv-quicknav {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: .85rem;
}
.srv-quicknav__track {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: 2px;
}
.srv-quicknav__track::-webkit-scrollbar { display: none; }
.srv-quicknav__link {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  min-height: 44px;            /* objetivo táctil accesible */
  padding: .5rem 1.15rem;
  border-radius: 100px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.srv-quicknav__link:hover, .srv-quicknav__link:focus-visible { transform: translateY(-1px); }
.srv-quicknav__link b {
  color: var(--gold);
}
.srv-quicknav__link:hover, .srv-quicknav__link:focus-visible {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.srv-quicknav__link:hover b, .srv-quicknav__link:focus-visible b {
  color: var(--gold-soft);
}

/* Service Detail Cards */
.srv-list {
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.2rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  counter-reset: srv;               /* numera los expedientes automáticamente */
}

/* --- Tarjeta: expediente con capas y profundidad --- */
.srv-card {
  counter-increment: srv;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;                  /* recorta la banda superior */
  position: relative;
  box-shadow: 0 1px 3px rgba(33,28,26,.06), 0 12px 28px rgba(33,28,26,.05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(118,32,17,.08), 0 26px 50px rgba(118,32,17,.15);
  border-color: rgba(118,32,17,.35);
}
@media (prefers-reduced-motion: reduce) {
  .srv-card:hover { transform: none; }
}

/* --- Banda de encabezado --- */
.srv-card__top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding: clamp(1.7rem, 3.4vw, 2.5rem) clamp(1.5rem, 3.4vw, 2.8rem);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(255,255,255,.08) 0%, transparent 58%),
    linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  border-bottom: 2px solid var(--on-dark);
  overflow: hidden;
}

/* Imagen temática en el costado derecho con transparencia que se funde naturalmente con el fondo */
.srv-card__top > .srv-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.srv-card__media img {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(300px, 52%, 620px);
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.60;
  filter: contrast(1.08) brightness(0.95);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.2) 75%, transparent 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.2) 75%, transparent 100%);
}
.srv-card:hover .srv-card__media img {
  transform: scale(1.04);
  opacity: 0.72;
}
.srv-card__media-grade {
  display: none;
}

/* Numeral fantasma del expediente */
.srv-card__top::after {
  content: counter(srv, decimal-leading-zero) / "";
  position: absolute;
  right: clamp(.6rem, 2vw, 1.8rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 8.5rem);
  line-height: .78;
  color: rgba(255,255,255,.16);
  text-shadow: 0 4px 25px rgba(0,0,0,0.45);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.srv-card__top > * { position: relative; z-index: 2; }

/* Insignia "EXP. 01" */
.srv-card__exp {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.42);
  padding: .4rem .85rem;
  border-radius: 100px;
  white-space: nowrap;
}
.srv-card__exp b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: .02em;
}
.srv-card__header-text { flex: 1; }
.srv-card__header-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  max-width: 24ch;
}
.srv-card__header-text p {
  font-family: var(--font-body);
  color: var(--on-dark-2);
  font-size: 1rem;
  margin-top: .7rem;
  line-height: 1.62;
  max-width: 66ch;
}

/* --- Cuerpo: alcance de la defensa --- */
.srv-card__scope {
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3.4vw, 2.8rem);
}
.srv-card__scope h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--wine);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.srv-card__scope h3 svg { color: var(--gold); flex: none; }
.srv-card__scope ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem 1.2rem;
}
.srv-card__scope li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .94rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 2px solid transparent;
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: background .28s var(--ease), border-color .28s var(--ease);
}
.srv-card__scope li:hover {
  background: var(--paper-3);
  border-left-color: var(--gold);
}
.srv-card__scope li strong { color: var(--wine-600); }
.srv-card__scope li svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold);
  margin-top: .2rem;
}

/* --- Pie: materias + acción --- */
.srv-card__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.5rem, 3.4vw, 2.8rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.srv-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  flex: 1;
  min-width: 260px;
}
.srv-card__tags .chip { background: var(--white); }
.srv-card__tags-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-right: .3rem;
}
.srv-card__actions {
  display: flex;
  gap: .8rem;
  flex-shrink: 0;
}
/* El pie de la tarjeta ya es crema: aquí el CTA va en vino sólido.
   El crema queda reservado para los botones sobre lámina oscura. */
.srv-card__actions .btn--gold {
  --_bg: var(--wine);
  --_fg: var(--white);
  border-color: var(--wine);
}
.srv-card__actions .btn--gold:hover {
  background: var(--wine-600);
  border-color: var(--wine-600);
  color: var(--white);
}
@media (max-width: 768px) {
  /* Mismo prefijo que la regla base, si no esta pierde por especificidad */
  .srv-card__top > .srv-card__media {
    width: 100%;
    opacity: .34;
  }
  .srv-card__media-grade {
    background: linear-gradient(to bottom, rgba(118, 32, 17, 0.75) 0%, var(--wine-deep) 100%);
  }
  .srv-card__scope ul {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .srv-card__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .srv-card__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Why LVH Services Strip / Feature banner */
.srv-features {
  background: var(--wine-deep);
  color: var(--on-dark);
  padding-block: clamp(3rem, 6vw, 4.8rem);
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.srv-features .sec-head h2 { color: #fff; }
.srv-features .sec-head p { color: var(--on-dark-2); }
.srv-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.srv-feature-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: background .3s var(--ease);
}
.srv-feature-item:hover {
  background: rgba(255,255,255,.08);
}
.srv-feature-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.srv-feature-item .icon svg {
  width: 22px;
  height: 22px;
}
.srv-feature-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .5rem;
}
.srv-feature-item p {
  color: var(--on-dark-2);
  font-size: .9rem;
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillar { grid-column: span 6; }
  .pillar--feature { grid-column: span 12; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}
@media (max-width: 900px) {
  .cine { height: 260vh; }
  .cine__rail {
    display: block;
    right: 10px;
    height: 70px;
    width: 2px;
    opacity: 0.75;
    z-index: 10;
  }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 540px; margin-inline: auto; width: 100%; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .step::after { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr 1fr; }
  .srv-card__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .srv-features__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav__links, .nav__phone { display: none; }
  .nav__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-nav-mobile {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.2rem var(--gutter) 2rem; display: grid !important; gap: .3rem; transform: translateY(-120%);
    transition: transform .35s var(--ease); z-index: 55; box-shadow: var(--shadow-lg); visibility: hidden;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  body.menu-open .site-nav-mobile { transform: translateY(0); visibility: visible; }
  .site-nav-mobile a { padding: .9rem .4rem; border-bottom: 1px solid var(--line-soft); font-weight: 500; font-size: 1.05rem; }
  .site-nav-mobile .btn { margin-top: 1rem; }
  .pillar, .pillar--feature { grid-column: span 12; }
  .area { grid-template-columns: 60px 1fr; }
  .area__arrow { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .balance__scale {
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(0.4rem, 2.5vw, 1.2rem);
    align-items: center;
  }
  .balance__fulcrum {
    width: clamp(52px, 14vw, 76px);
    margin-inline: auto;
  }
  .balance__pan .k {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }
  .balance__pan .s {
    font-size: clamp(0.62rem, 2.2vw, 0.74rem);
    letter-spacing: .08em;
  }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .about__facts { gap: 1.4rem; }
  .about__monogram { right: 10px; top: 10px; padding: .7rem .9rem; }
  .about__monogram .m { font-size: 1.5rem; }
  .srv-card__top { gap: .8rem; }
  .srv-card__top::after { font-size: 5.5rem; opacity: .75; }
  .srv-card__header-text h2 { max-width: 100%; }
  .srv-hero__badges { gap: .5rem; }
}
@media (max-width: 360px) {
  /* Con las frases destacadas en una sola línea, el titular necesita
     un punto menos en pantallas muy estrechas para no invadir el margen. */
  .cine__title { font-size: clamp(1.95rem, 8.8vw, 2.3rem); }
  .cine__lead  { font-size: clamp(1.7rem, 7.6vw, 2rem); }
}
@media (max-width: 460px) {
  .who__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cine { height: 230vh; }
  .cine__cta .btn { width: 100%; }
  .cine__inner, .cine__act--center .cine__inner { max-width: 100%; }
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Cursor interactivo estándar y micro-iluminación ---------- */
a[href], button, [role="button"],
input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"],
select, summary, label[for],
.btn, .nav-toggle, .wa-float, [data-wa],
.about__profile-more, .pmodal__close, .srv-quicknav__link, .contact__map-link,
.formatos-filter-btn, .format-card__zoom-btn, .fmodal__close, .partner-card__action {
  cursor: pointer;
}

/* Micro-iluminación refinada al pasar el cursor sobre enlaces e hipervínculos */
a[href] {
  transition: color .22s var(--ease), text-shadow .22s var(--ease), filter .22s var(--ease), opacity .22s var(--ease);
}
a[href]:hover {
  text-shadow: 0 0 10px rgba(118, 32, 17, 0.28);
  filter: brightness(1.08);
}

/* Enlaces sobre superficies oscuras (Header transparente, Hero, Footer, Cine) */
.footer a[href]:hover,
.cine a[href]:hover,
.formatos-hero a[href]:hover,
.cta-band a[href]:hover {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.7), 0 0 4px rgba(255, 255, 255, 0.4);
  filter: brightness(1.15);
}



/* ============================================================
   Página Nosotros — Perfiles Completos de Socios y Abogados
   ============================================================ */
.nosotros-hero {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.nosotros-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.nosotros-hero__content .eyebrow {
  margin-bottom: 1rem;
}
.nosotros-hero__content h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.nosotros-hero__content p {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.nosotros-hero__content .sig {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--wine);
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
  font-weight: 500;
}
.nosotros-hero__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.nosotros-hero__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sección de Equipo */
.team-section {
  padding-block: clamp(4rem, 7vw, 7rem);
  background: var(--paper-2);
}
.team-section__header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 4.8rem);
}
.team-section__header .eyebrow {
  margin-bottom: .8rem;
  justify-content: center;
}
.team-section__header h2 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  margin-bottom: 1rem;
}
.team-section__header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Tarjeta individual de socio con perfil completo */
.partner-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--wine);
}
.partner-card:last-child {
  margin-bottom: 0;
}

/* Marco para foto individual */
.partner-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-card__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--line);
  background: #fdfdfd;
}
.partner-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
#prisciliano .partner-card__photo {
  object-position: center 55%;
}
#juliana .partner-card__photo {
  object-position: center 40%;
}
#jose .partner-card__photo {
  object-position: center 22%;
}
.partner-card:hover .partner-card__photo {
  transform: scale(1.03);
}
.partner-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(67, 16, 9, 0.92);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem .8rem;
  border-radius: 4px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.18);
}
.partner-card__photo-hint {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
  margin-top: .6rem;
  text-align: center;
  font-style: italic;
}

/* Información y texto completo */
.partner-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partner-card__header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.partner-card__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: .3rem;
}
.partner-card__role {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wine);
  display: block;
}
.partner-card__bio {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.partner-card__bio p {
  margin: 0;
}
.partner-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}
.partner-card__tag {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--wine);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: .35rem .75rem;
  border-radius: 100px;
}
.partner-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

@media (max-width: 900px) {
  .nosotros-hero__grid {
    grid-template-columns: 1fr;
  }
  .partner-card {
    grid-template-columns: 1fr;
  }
  .partner-card__photo-wrap {
    max-width: 260px;
    margin-inline: auto;
  }
  .partner-card__media {
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   Página Formatos — Catálogo, Previsualizaciones y Modal Leads
   ============================================================ */
.formatos-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 6.5vw, 6.5rem);
  padding-bottom: clamp(3.8rem, 5.5vw, 5.2rem);
  background: var(--wine-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  isolation: isolate;
}
/* Fondo documental dinámico difuminado */
.formatos-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formatos-hero__docs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 100%;
  max-width: 1380px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.formatos-hero__doc {
  position: absolute;
  width: clamp(280px, 32vw, 440px);
  user-select: none;
  pointer-events: none;
  transition: transform 0.6s ease;
}
.formatos-hero__doc img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
}
.formatos-hero__doc--left {
  left: 3%;
  transform: translateY(25px) rotate(-14deg) scale(0.92);
  filter: blur(6px) saturate(0.85);
  opacity: 0.20;
}
.formatos-hero__doc--center {
  left: 50%;
  transform: translateX(-50%) translateY(5px) rotate(2deg) scale(1.06);
  filter: blur(4.5px) saturate(0.9);
  opacity: 0.30;
  z-index: 1;
}
.formatos-hero__doc--right {
  right: 3%;
  transform: translateY(35px) rotate(13deg) scale(0.92);
  filter: blur(6px) saturate(0.85);
  opacity: 0.20;
}
/* Overlay con gradiente radial y viñeta para máxima legibilidad tipográfica */
.formatos-hero__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(67, 16, 9, 0.60) 0%, rgba(67, 16, 9, 0.85) 60%, var(--wine-deep) 100%),
    linear-gradient(180deg, rgba(33, 28, 26, 0.35) 0%, transparent 40%, rgba(33, 28, 26, 0.6) 100%);
  z-index: 2;
}
.formatos-hero__container {
  position: relative;
  z-index: 3;
}
.formatos-hero__inner {
  max-width: 860px;
  margin-inline: auto;
}
.formatos-hero .eyebrow {
  margin-bottom: 1rem;
  justify-content: center;
}
.formatos-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.3rem;
}
.formatos-hero .lead {
  font-size: 1.1rem;
  line-height: 1.7;
}
.formatos-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2.2rem;
}
.formatos-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: .5rem 1.1rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--on-dark);
}
.formatos-badge svg {
  color: var(--gold, #d4af37);
  flex-shrink: 0;
}

/* Barra de filtros y búsqueda */
.formatos-bar-section {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
  position: sticky;
  top: 68px;
  z-index: 25;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.formatos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.formatos-filters {
  display: flex;
  align-items: center;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.formatos-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.formatos-filter-btn:hover {
  background: var(--paper-3);
  border-color: var(--wine);
  color: var(--wine);
  box-shadow: 0 2px 12px rgba(118, 32, 17, 0.16);
  filter: brightness(1.03);
}
.formatos-filter-btn.is-active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  box-shadow: 0 2px 8px rgba(118, 32, 17, 0.25);
}
.formatos-filter-btn .count {
  font-size: .75rem;
  opacity: .85;
}
.formatos-search {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}
.formatos-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.formatos-search input {
  width: 100%;
  padding: .55rem 2.2rem .55rem 2.5rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.formatos-search input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(118, 32, 17, 0.12);
}
#formatos-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#formatos-search-clear:hover {
  color: var(--wine);
  background: var(--paper-3);
}

/* Grilla del catálogo */
.formatos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.2rem);
}
.format-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.format-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--wine);
}
.format-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f7f3ed 0%, #ece6dc 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
}
.format-card__preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  transition: transform .35s var(--ease);
}
.format-card:hover .format-card__preview {
  transform: scale(1.05);
}
.format-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(67, 16, 9, 0.92);
  backdrop-filter: blur(6px);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.format-card__zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.85);
  transition: all .25s var(--ease);
  z-index: 2;
  cursor: pointer;
}
.format-card:hover .format-card__zoom-btn {
  opacity: 1;
  transform: scale(1);
}
.format-card__zoom-btn:hover {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.format-card__content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.format-card__title {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .75rem;
}
.format-card__desc {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.format-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem 0;
  display: grid;
  gap: .45rem;
  font-size: .83rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding-block: .85rem;
}
.format-card__features li {
  line-height: 1.45;
}
.format-card__features strong {
  color: var(--ink);
  font-weight: 600;
}
.format-card__footer {
  margin-top: auto;
}
.format-card__download-btn {
  width: 100%;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Estado vacío */
.formatos-empty {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  color: var(--muted);
}
.formatos-empty svg {
  color: var(--line-strong);
  margin-bottom: 1.2rem;
}
.formatos-empty h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.formatos-empty p {
  font-size: .95rem;
  margin-bottom: 1.4rem;
}

/* ============================================================
   Modales: Descarga Lead y Vista Previa Ampliada
   ============================================================ */
.fmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.fmodal[hidden] {
  display: none !important;
}
.fmodal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fmodalFadeIn .22s ease-out;
}
.fmodal__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fmodal__container--lg {
  max-width: 860px;
}
.fmodal__dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  position: relative;
  animation: fmodalPopIn .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.fmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease);
  z-index: 10;
}
.fmodal__close:hover {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}
.fmodal__header {
  text-align: center;
  margin-bottom: 1.8rem;
}
.fmodal__badge {
  display: inline-block;
  background: var(--paper-3);
  border: 1px solid var(--line);
  color: var(--wine);
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: .8rem;
}
.fmodal__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: .6rem;
}
.fmodal__subtitle {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 48ch;
  margin-inline: auto;
}
.fmodal__field {
  margin-bottom: 1.2rem;
  text-align: left;
}
.fmodal__field label {
  display: block;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.fmodal__field label .req {
  color: var(--wine);
  font-weight: 700;
}
.fmodal__field label .opt {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}
.fmodal__field input[type="text"],
.fmodal__field input[type="email"],
.fmodal__field input[type="tel"] {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.fmodal__field input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(118, 32, 17, 0.14);
}
.fmodal__field--check {
  margin-block: 1.1rem;
}
.fmodal__check-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
}
.fmodal__check-label input {
  margin-top: 3px;
  accent-color: var(--wine);
  cursor: pointer;
  flex-shrink: 0;
}
.fmodal__check-label a {
  color: var(--wine);
  text-decoration: underline;
}
.fmodal__error {
  color: #c02626;
  font-size: .78rem;
  font-weight: 600;
  margin-top: .4rem;
  display: none;
}
.fmodal__field.is-invalid .fmodal__error {
  display: block;
}
.fmodal__field.is-invalid input {
  border-color: #c02626;
  background: #fffafa;
}
.fmodal__submit-btn {
  width: 100%;
  justify-content: center;
  padding: .9rem 1.4rem;
  font-size: .98rem;
  font-weight: 700;
  border-radius: 8px;
  margin-top: .4rem;
}
.fmodal__privacy-note {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

/* Vista de éxito en el modal */
.fmodal__success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}
.fmodal__download-fallback {
  text-align: center;
  margin-bottom: 1.5rem;
}
.fmodal__download-fallback .btn {
  display: inline-flex;
}
.fmodal__guide-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  text-align: left;
  margin-bottom: 1.4rem;
}
.fmodal__guide-box h4 {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
}
.fmodal__guide-box h4 svg {
  color: var(--wine);
}
.fmodal__guide-box ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  display: grid;
  gap: .45rem;
}
.fmodal__guide-box ol code {
  background: var(--paper-3);
  padding: .15rem .35rem;
  border-radius: 4px;
  font-size: .8rem;
  color: var(--wine);
}
.fmodal__cta-box {
  background: linear-gradient(135deg, rgba(118, 32, 17, 0.06), rgba(67, 16, 9, 0.12));
  border: 1px solid rgba(118, 32, 17, 0.22);
  border-radius: 10px;
  padding: 1.4rem;
  text-align: center;
}
.fmodal__cta-badge {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 100px;
  margin-bottom: .6rem;
}
.fmodal__cta-box p {
  font-size: .88rem;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.fmodal__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.fmodal__wa-btn {
  background: #25d366;
  color: #fff;
  border: none;
  font-weight: 600;
}
.fmodal__wa-btn:hover {
  background: #20ba5a;
  color: #fff;
  transform: translateY(-1px);
}

/* Modal de vista previa ampliada */
.prevmodal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.prevmodal__image-wrap {
  background: linear-gradient(180deg, #f7f3ed 0%, #ece6dc 100%);
  border-radius: 10px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prevmodal__image-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}
.prevmodal__info {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  text-align: left;
}
.prevmodal__desc {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--muted);
}
.prevmodal__actions {
  margin-top: .8rem;
}

/* Animaciones */
@keyframes fmodalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fmodalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 1024px) {
  .formatos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .formatos-hero__doc--left,
  .formatos-hero__doc--right {
    display: none;
  }
  .formatos-hero__doc--center {
    width: min(340px, 86vw);
    filter: blur(5px) saturate(0.85);
    opacity: 0.22;
  }
  .formatos-bar-section {
    position: static;
  }
  .formatos-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .formatos-search {
    max-width: 100%;
  }
  .prevmodal__inner {
    grid-template-columns: 1fr;
  }
  .prevmodal__image-wrap img {
    max-height: 320px;
  }
}
@media (max-width: 600px) {
  .formatos-grid {
    grid-template-columns: 1fr;
  }
  .fmodal__dialog {
    padding: 1.4rem;
  }
  .fmodal__cta-actions {
    flex-direction: column;
  }
  .fmodal__cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Banda CTA Simplificada (Formatos) — Tono Crema Oscuro
   ============================================================ */
.formatos-cta {
  background: var(--paper-3); /* Crema un tono más oscuro */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}
.formatos-cta__inner {
  max-width: 760px;
  margin-inline: auto;
}
.formatos-cta .eyebrow {
  margin-bottom: .8rem;
  justify-content: center;
}
.formatos-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: .85rem;
  font-weight: 700;
}
.formatos-cta p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.formatos-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.formatos-cta__actions .btn {
  padding: .85em 1.7em;
  font-size: .95rem;
}
.formatos-cta__actions .btn--ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}
.formatos-cta__actions .btn--ghost:hover {
  background: var(--paper);
  border-color: var(--wine);
  color: var(--wine);
}


