/* ==========================================================================
   PROSSER ABOGADOS — Sistema de diseño web
   Derivado del Manual de Marca (Deep Navy · Champagne Gold · Warm Ivory)
   y de la landing de conversión. Tipografías: Playfair Display + Inter.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Paleta oficial */
  --navy:        #161D28;
  --navy-soft:   #1B222D;
  --charcoal:    #24272C;
  --slate:       #3E444C;
  --slate-mid:   #6D747C;
  --slate-light: #9AA0A8;
  --gold:        #B89B67;
  --gold-deep:   #9B7A4D;
  --sand:        #D9CDBB;
  --ivory:       #F3EFE8;
  --ivory-warm:  #FBF8F3;
  --line-warm:   #E4DAC9;
  --ink-black:   #111315;

  /* Tipografía */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala fluida */
  --fs-display: clamp(40px, 5.4vw, 80px);
  --fs-h1:      clamp(36px, 4.8vw, 68px);
  --fs-h2:      clamp(30px, 4vw, 56px);
  --fs-h3:      clamp(24px, 2.4vw, 34px);
  --fs-lead:    clamp(17px, 1.35vw, 20px);
  --fs-body:    16px;
  --fs-small:   14px;

  /* Ritmo */
  --pad-section: clamp(72px, 9vw, 150px);
  --pad-x:       clamp(18px, 4.5vw, 64px);
  --max:         1440px;
  --max-text:    820px;
  --radius-lg:   clamp(24px, 3.6vw, 56px);
  --radius-md:   32px;
  --radius-sm:   24px;

  /* Movimiento */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-deep); }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. ANIMACIONES
   -------------------------------------------------------------------------- */
@keyframes softIn   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.1) translateY(-16px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseRing{ 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.fade-1 { animation: softIn 1s var(--ease) both; }
.fade-2 { animation: softIn 1s .16s var(--ease) both; }
.fade-3 { animation: softIn 1s .32s var(--ease) both; }
.fade-4 { animation: softIn 1s .48s var(--ease) both; }

body.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
body.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body.js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.wrap      { max-width: var(--max); margin: 0 auto; }
.wrap-mid  { max-width: 1200px; margin: 0 auto; }
.wrap-text { max-width: var(--max-text); margin: 0 auto; }

/* position:relative ancla los anillos decorativos a la sección; sin esto se
   posicionan contra el viewport y desbordan la página a lo ancho.
   overflow:clip los recorta sin romper los position:sticky de dentro. */
.section        { padding: var(--pad-section) var(--pad-x); position: relative; overflow: clip; }
.section--navy  { background: var(--navy);      color: var(--ivory); }
.section--ivory { background: var(--ivory-warm);color: var(--navy); }
.section--sand  { background: var(--ivory);     color: var(--navy); }
.section--round { border-radius: var(--radius-lg); margin: 24px; }
.section--round-top    { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.section--round-bottom { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.section--navy  h1, .section--navy  h2, .section--navy  h3 { color: var(--ivory); }
.section--ivory h1, .section--ivory h2, .section--ivory h3,
.section--sand  h1, .section--sand  h2, .section--sand  h3 { color: var(--navy); }

.grid      { display: grid; gap: 24px; }
.grid-2    { grid-template-columns: repeat(2, 1fr); }
.grid-3    { grid-template-columns: repeat(3, 1fr); }
.grid-4    { grid-template-columns: repeat(4, 1fr); }
.grid-2-1  { grid-template-columns: 1fr 2fr; gap: 80px; }

.stack   { display: flex; flex-direction: column; }
.center  { text-align: center; }
.mt-sm { margin-top: 24px; } .mt-md { margin-top: 48px; } .mt-lg { margin-top: 72px; }

/* --------------------------------------------------------------------------
   5. TIPOGRAFÍA
   -------------------------------------------------------------------------- */
.display { font-family: var(--serif); font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.015em; }
.h1      { font-family: var(--serif); font-size: var(--fs-h1);      line-height: 1.06; letter-spacing: -.012em; }
.h2      { font-family: var(--serif); font-size: var(--fs-h2);      line-height: 1.1;  letter-spacing: -.01em; }
.h3      { font-family: var(--serif); font-size: var(--fs-h3);      line-height: 1.18; }
.h4      { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; }

.italic-gold { font-style: italic; color: var(--gold); }
.italic-sand { font-style: italic; color: var(--sand); }

.lead {
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--sand);
}
.section--ivory .lead, .section--sand .lead { color: var(--slate); }

.body-text { font-size: var(--fs-body); line-height: 1.8; color: var(--slate); }
.section--navy .body-text { color: var(--sand); }

.muted { color: var(--slate-mid); font-size: var(--fs-small); }
.section--navy .muted { color: var(--slate-light); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
}
.section--navy .eyebrow { color: var(--gold); }

.gold-line {
  display: inline-block;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: lineGrow 1.2s .3s var(--ease) both;
}

.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.eyebrow-rule .gold-line { width: 40px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 88px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--sand);
}
.section--navy .section-head { border-bottom-color: var(--slate); }
.section-head p { max-width: 380px; font-size: 15px; line-height: 1.75; color: var(--slate); margin: 0; }
.section--navy .section-head p { color: var(--sand); }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4.2vw, 60px);
  line-height: 1.2;
  letter-spacing: -.005em;
}

/* --------------------------------------------------------------------------
   6. BOTONES Y ENLACES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 18px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all .3s var(--ease);
}
.btn svg { flex: none; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--lg      { font-size: 16px; padding: 22px 44px; }
.btn--ivory   { background: var(--ivory); color: var(--navy); }
.btn--ivory:hover  { background: var(--gold); color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.3); }
.btn--gold    { background: var(--gold); color: var(--navy); }
.btn--gold:hover   { background: var(--ivory); color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.3); }
.btn--navy    { background: var(--navy); color: var(--ivory); }
.btn--navy:hover   { background: var(--gold); color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,.25); }
.btn--ghost   { background: transparent; color: var(--ivory); border: 1px solid rgba(217,205,187,.35); }
.btn--ghost:hover  { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn--ghost-dark  { background: transparent; color: var(--navy); border: 1px solid var(--line-warm); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: all .25s ease;
}
.link-arrow:hover { border-bottom-color: var(--gold); color: var(--gold); }
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--gold); }

/* --------------------------------------------------------------------------
   7. NAVEGACIÓN
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,29,40,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ivory);
  padding: 18px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid rgba(217,205,187,.08);
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--ivory); flex: none; }
.brand:hover { color: var(--ivory); }
.brand__mark { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .08em; }
.brand__rule { width: 1px; height: 16px; background: var(--gold); flex: none; }
.brand__sub  { font-size: 10px; font-weight: 500; letter-spacing: .35em; color: var(--sand); }

.nav__right { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: clamp(18px, 2vw, 30px); align-items: center; font-size: 13px; letter-spacing: .05em; }
.nav__links > a, .nav__item > a { white-space: nowrap; }
.nav__links a { color: var(--sand); position: relative; padding-bottom: 4px; }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ivory); }

/* Submenú de Áreas de práctica.
   Se abre con :hover y con :focus-within, así funciona también con teclado
   sin necesidad de JavaScript. */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--has-menu > a { display: inline-flex; align-items: center; gap: 6px; }
.nav__caret { transition: transform .25s var(--ease); flex: none; }
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 286px;
  padding: 12px;
  background: rgba(22,29,40,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217,205,187,.14);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 120;
}
/* Puente invisible: evita que el menú se cierre al cruzar el hueco con el cursor. */
.nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--sand);
  white-space: nowrap;
}
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: rgba(184,155,103,.16); color: var(--ivory); }
.nav__menu-all {
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 1px solid rgba(217,205,187,.14);
  border-radius: 0 0 10px 10px;
  color: var(--gold) !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

/* Sublista de áreas dentro del menú móvil */
.drawer__sub { display: flex; flex-direction: column; padding: 6px 0 10px 18px; border-left: 1px solid rgba(184,155,103,.3); margin: 4px 0 8px 4px; }
.drawer__sub a { font-family: var(--sans); font-size: 15px; color: var(--sand); padding: 9px 0; border-bottom: none; }
.drawer__sub a:hover { color: var(--gold); }

.nav__cta {
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}

/* Menú móvil */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(217,205,187,.3);
  border-radius: 50%;
  color: var(--ivory);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex: none;
  transition: border-color .2s ease;
}
.nav__toggle:hover { border-color: var(--gold); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  padding: 24px var(--pad-x) 48px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { display: flex; animation: softIn .3s ease both; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__links a {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ivory);
  padding: 14px 0;
  border-bottom: 1px solid rgba(217,205,187,.12);
}
.drawer__links a:hover { color: var(--gold); }
.drawer__foot { margin-top: auto; padding-top: 48px; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center 55%;
  filter: saturate(.7);
  animation: kenburns 26s ease-in-out infinite alternate;
}
/* Video de fondo. El <source> lo inyecta el JS solo en desktop (ver prosser.js):
   en móvil se queda el poster para no gastar datos del visitante. */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(.72) contrast(1.02);
}
.hero__pause {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 4;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(22,29,40,.5);
  border: 1px solid rgba(217,205,187,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ivory);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.hero__pause:hover { border-color: var(--gold); color: var(--gold); background: rgba(22,29,40,.75); }
.hero__pause[hidden] { display: none; }
.hero__pause .ico-play { display: none; }
.hero__pause.is-paused .ico-play { display: block; }
.hero__pause.is-paused .ico-pause { display: none; }

/* Velos más livianos para que se lea el video. La legibilidad del titular la
   sostiene el text-shadow de .hero__copy, no la opacidad del fondo. */
.hero__veil-1 { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,29,40,.82) 0%, rgba(22,29,40,.68) 42%, rgba(22,29,40,.38) 75%, rgba(22,29,40,.6) 100%); }
.hero__veil-2 { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,29,40,.88) 0%, rgba(22,29,40,0) 42%); }
.hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--pad-x) clamp(48px, 6vw, 80px); }
.hero__copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  /* Sombra difusa: mantiene el contraste del texto sobre las zonas claras del
     video sin necesidad de oscurecer todo el fondo. */
  text-shadow: 0 2px 30px rgba(11,15,22,.75), 0 1px 4px rgba(11,15,22,.45);
}
.hero__copy .lead { max-width: 720px; margin: 0 auto; }
.hero strong { color: var(--ivory); font-weight: 600; }

/* Anillo decorativo */
.ring { position: absolute; pointer-events: none; opacity: .4; }
.ring svg { width: 100%; height: 100%; animation: spinSlow 60s linear infinite; }
.ring--tr { top: 10%; right: 6%; width: 380px; height: 380px; }
.ring--br { bottom: -120px; right: -100px; width: 360px; height: 360px; }
.ring--bl { bottom: -120px; left: -120px; width: 420px; height: 420px; }

/* Cabecera de páginas internas */
.pagehead {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(64px, 8vw, 120px) var(--pad-x) clamp(56px, 7vw, 100px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.pagehead__inner { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.pagehead .lead { max-width: 680px; margin: 24px auto 0; }

.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 24px; }
.crumbs a { color: var(--sand); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--slate-mid); margin: 0 8px; }

/* --------------------------------------------------------------------------
   9. TARJETAS
   -------------------------------------------------------------------------- */
.card {
  min-width: 0;
  border-radius: var(--radius-md);
  padding: clamp(32px, 3.4vw, 52px) clamp(26px, 3vw, 44px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 32px 64px rgba(0,0,0,.2); }
.card--light { background: var(--ivory); border: 1px solid var(--line-warm); color: var(--navy); }
.card--dark  { background: var(--navy-soft); border: 1px solid var(--slate); color: var(--ivory); }
.card--navy  { background: var(--navy); color: var(--ivory); }
.card--dark:hover, .card--navy:hover { box-shadow: 0 32px 64px rgba(0,0,0,.4); }

/* --------------------------------------------------------------------------
   La tarjeta manda sobre el color de la sección que la contiene.
   Sin esto, una .card--light dentro de .section--navy hereda el título en
   marfil y queda invisible sobre su propio fondo claro — y al revés, una
   .card--dark dentro de .section--ivory hereda el título en navy sobre navy.
   -------------------------------------------------------------------------- */
.section--navy .card--light h1, .section--navy .card--light h2,
.section--navy .card--light h3, .section--navy .card--light h4 { color: var(--navy); }
.section--navy .card--light .body-text,
.section--navy .card--light .lead,
.section--navy .card--light p            { color: var(--slate); }
.section--navy .card--light .eyebrow     { color: var(--gold-deep); }
.section--navy .card--light .muted       { color: var(--slate-mid); }
.section--navy .card--light .check-list li { color: var(--slate); }

.section--ivory .card--dark h1, .section--ivory .card--dark h2,
.section--ivory .card--dark h3, .section--ivory .card--dark h4,
.section--ivory .card--navy h1, .section--ivory .card--navy h2,
.section--ivory .card--navy h3, .section--ivory .card--navy h4,
.section--sand  .card--dark h3, .section--sand  .card--navy h3 { color: var(--ivory); }
.section--ivory .card--dark .body-text, .section--ivory .card--navy .body-text,
.section--ivory .card--dark .lead,      .section--ivory .card--navy .lead,
.section--sand  .card--dark .body-text, .section--sand  .card--navy .body-text { color: var(--sand); }
.section--ivory .card--dark .eyebrow,   .section--ivory .card--navy .eyebrow   { color: var(--gold); }
.section--ivory .card--dark .muted,     .section--ivory .card--navy .muted     { color: var(--slate-light); }

/* Tarjeta de servicio (enlazable) */
.svc {
  display: flex;
  flex-direction: column;
  color: inherit;
  padding: 0;
  overflow: hidden;
}
.svc:hover { color: inherit; border-color: var(--gold); }
.svc__body { padding: clamp(26px, 2.6vw, 38px) clamp(24px, 2.6vw, 36px) clamp(30px, 3vw, 40px); }

/* Fotografía de encabezado de la tarjeta */
.svc__media { position: relative; flex: none; }
.svc__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.03);
  transition: transform .7s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.06); }
.svc__frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,29,40,.12) 0%, rgba(22,29,40,.62) 100%);
}
.svc__icon {
  position: absolute;
  left: clamp(24px, 2.6vw, 36px);
  bottom: -28px;
  z-index: 2;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: background .3s ease;
}
.svc:hover .svc__icon { background: var(--gold); }
.svc:hover .svc__icon svg { stroke: var(--navy); }
.svc .svc__body { padding-top: clamp(44px, 4vw, 56px); }
.svc__num { font-size: 11px; letter-spacing: .25em; color: var(--gold-deep); margin-bottom: 14px; }
.card--dark .svc__num { color: var(--gold); }
.svc h3 { margin-bottom: 18px; }
.svc p { font-size: 15px; line-height: 1.8; color: var(--slate); margin: 0; }
.card--dark .svc p { color: var(--sand); }
.svc__more { margin-top: 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 8px; }
.card--dark .svc__more { color: var(--gold); }

/* --------------------------------------------------------------------------
   Tarjeta de caso con fotografía de fondo ("Qué resolvemos")
   -------------------------------------------------------------------------- */
.case-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.case-card:hover { transform: translateY(-8px); box-shadow: 0 32px 64px rgba(0,0,0,.28); }
.case-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.68) contrast(1.02);
  transition: transform .7s var(--ease);
}
.case-card:hover .case-card__img { transform: scale(1.07); }
.case-card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,29,40,.30) 0%, rgba(22,29,40,.82) 52%, rgba(22,29,40,.95) 100%);
}
.case-card__body {
  position: relative;
  padding: clamp(26px, 2.8vw, 38px);
}
.case-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(22,29,40,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 20px;
  transition: background .3s ease, color .3s ease;
}
.case-card:hover .case-card__num { background: var(--gold); color: var(--navy); }
.section--ivory .case-card h3, .section--sand .case-card h3,
.section--navy  .case-card h3 { color: var(--ivory); margin-bottom: 12px; }
.section--ivory .case-card p, .section--sand .case-card p,
.section--navy  .case-card p { color: var(--sand); font-size: 15px; line-height: 1.7; }

/* Círculo con letra (Método DAR) */
.dar-badge {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold);
}
.card--dark .dar-badge { background: var(--navy); }
/* En tarjetas claras el círculo va en navy: el dorado sobre crema no tenía contraste. */
.card--light .dar-badge { background: var(--navy); color: var(--gold); }

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--slate);
}
.card--light .meta-list li { border-bottom-color: var(--sand); color: var(--slate); }
.card--dark  .meta-list li { color: var(--sand); }
.meta-list li:last-child { border-bottom: none; }
.meta-list li > span:last-child { font-weight: 500; text-align: right; }
.card--dark  .meta-list li > span:last-child { color: var(--ivory); }
.card--light .meta-list li > span:last-child { color: var(--navy); }

/* --------------------------------------------------------------------------
   10. CIFRAS, LISTAS, MARQUEE
   -------------------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); justify-content: center; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 44px); color: var(--gold); line-height: 1; }
.stat__num--ivory { color: var(--ivory); }
.stat__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-light); margin-top: 8px; line-height: 1.5; }

.hero__stats { max-width: 900px; margin: clamp(36px, 5vw, 56px) auto 0; padding-top: 40px; border-top: 1px solid rgba(217,205,187,.14); }

.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.6; }
.check-ico {
  flex: none; width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(184,155,103,.14);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.risk-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.risk-row--center { justify-content: center; }
.risk-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sand); }
.section--ivory .risk-row span, .section--sand .risk-row span { color: var(--slate); }


/* --------------------------------------------------------------------------
   11. ACORDEÓN (FAQ)
   -------------------------------------------------------------------------- */
.acc {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: clamp(24px, 2.6vw, 32px) clamp(24px, 2.8vw, 36px);
  margin-bottom: 16px;
}
.acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary span:first-child { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); color: var(--navy); }
.acc .plus { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; flex: none; transition: transform .3s ease; }
.acc[open] .plus { transform: rotate(45deg); }
.acc p { font-size: 16px; line-height: 1.85; color: var(--slate); margin-top: 20px; }

/* --------------------------------------------------------------------------
   12. EQUIPO
   -------------------------------------------------------------------------- */
.person__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--navy-soft), var(--charcoal));
  border: 1px solid var(--slate);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.person__initials { font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); color: var(--gold); letter-spacing: .04em; }
.person__role { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.section--navy .person__role { color: var(--gold); }
.person h3 { margin-bottom: 16px; }
.person__facts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.person__facts li { display: flex; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--slate); }
.section--navy .person__facts li { color: var(--sand); }
.person__facts li::before { content: '—'; color: var(--gold); flex: none; }

/* --------------------------------------------------------------------------
   13. TIMELINE / PASOS
   -------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line-warm);
  align-items: start;
}
.section--navy .step { border-top-color: var(--slate); }
.step:last-child { border-bottom: 1px solid var(--line-warm); }
.section--navy .step:last-child { border-bottom-color: var(--slate); }
.step__num { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; }
.step h4 { margin-bottom: 10px; }
.section--navy .step h4 { color: var(--ivory); }
.step p { font-size: 15px; line-height: 1.8; color: var(--slate); }
.section--navy .step p { color: var(--sand); }

/* --------------------------------------------------------------------------
   14. FORMULARIO
   -------------------------------------------------------------------------- */
.field { margin-bottom: 28px; }
.field label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-mid);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-warm);
  padding: 14px 0;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--slate-mid); line-height: 1.7; margin-top: 20px; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-black); color: var(--sand); padding: clamp(56px, 7vw, 80px) var(--pad-x) 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--slate);
}
.footer__col-title { font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: block; }
.footer__links { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer__links a, .footer__links span { color: var(--sand); }
.footer__links a:hover { color: var(--gold); }
.footer__about { font-size: 14px; line-height: 1.8; color: var(--slate-mid); max-width: 340px; margin-top: 24px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .06em; color: var(--slate-mid);
}
.footer .brand__sub { color: var(--gold); }

/* --------------------------------------------------------------------------
   16. WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #0B3D22;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  animation: pulseRing 2.8s infinite;
  transition: transform .3s var(--ease), background .3s ease;
}
.wa-fab:hover { transform: translateY(-4px) scale(1.03); background: #1FBE59; color: #0B3D22; }
.wa-fab svg { flex: none; }
.wa-fab__label { white-space: nowrap; }

/* --------------------------------------------------------------------------
   17. BLOQUES PLACEHOLDER (para contenido real pendiente)
   -------------------------------------------------------------------------- */
.placeholder {
  border: 1px dashed rgba(184,155,103,.5);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 3vw, 44px);
  background: rgba(184,155,103,.05);
  text-align: center;
}
.placeholder__tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(184,155,103,.4);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.placeholder p { font-size: 14px; line-height: 1.75; color: var(--slate-mid); max-width: 520px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
/* El nav pasa a menú hamburguesa antes que el resto del layout: con 7 ítems
   más el CTA, por debajo de 1250px los enlaces empiezan a apretarse. */
@media (max-width: 1250px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

@media (max-width: 1100px) {
  .grid-3   { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section--round { margin: 12px; }
}

@media (max-width: 640px) {
  .grid-4, .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; font-size: 13px; padding: 15px 22px; }
  .btn--lg { font-size: 14px; padding: 17px 24px; }
  .nav__cta { width: auto; padding: 10px 16px; font-size: 11px; letter-spacing: .08em; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__num { font-size: 30px; }
  .stats { gap: 28px; }
  .risk-row { justify-content: center; gap: 8px 16px; }
  .risk-row span { font-size: 12px; }
  .wa-fab { right: 14px; bottom: 14px; padding: 13px 18px 13px 15px; }
  .wa-fab__label { display: none; }
  .svc { min-height: 0; }
  .drawer__links a { font-size: 24px; }
}
