/* =========================================================================
   Rivas & Asociados — Sistema visual
   Verde bosque profundo #1D4141 · blanco cálido · grises · dorado terrado
   Spectral (display serif) + Hanken Grotesk (sans)
   ========================================================================= */

:root {
  /* --- Color tokens (tweakable) --- */
  --navy-900: #0f2424;   /* verde bosque más oscuro */
  --navy-800: #162c2c;
  --navy-700: #1D4141;   /* color principal */
  --navy-600: #255252;
  --navy-500: #2e6565;

  --paper:    #f5f3ee;   /* warm off-white background */
  --paper-2:  #faf8f3;
  --line:     #e2ded4;   /* hairline on paper */
  --line-2:   #d4cfc2;

  --ink:      #1a201e;   /* near-black text, matiz verde */
  --ink-soft: #465450;
  --ink-mut:  #687470;

  --gold:     #a87c42;   /* dorado terrado, cálido con el verde */
  --gold-soft:#c09656;
  --gold-tint:rgba(168,124,66,0.14);

  --on-navy:      #edf2f0;
  --on-navy-soft: #a8bfb8;
  --on-navy-mut:  #6e8e84;
  --navy-line:    rgba(255,255,255,0.12);

  /* --- Type --- */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* --- Geometry --- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* hero overlay strength (tweakable) */
  --hero-overlay: 0.62;
}

/* ---------------------------------------------------------------- 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; } }

body {
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--on-navy);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 132px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.018em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--ink-soft); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow--center::before { display: none; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }

.serif-num { font-family: var(--serif); font-variant-numeric: lining-nums; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  padding: 0.95em 1.7em;
  font-family: var(--sans);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #9c7b41; }

.btn--navy { background: var(--navy-800); color: var(--on-navy); }
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.link-more {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.link-more:hover { gap: 0.85em; color: var(--gold); }

/* ================================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(15,36,36,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--navy-line);
  transition: padding .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled {
  background: rgba(15,36,36,0.94);
  padding-block: 11px;
  box-shadow: 0 10px 30px -18px rgba(15,36,36,0.5);
}
.brand { display: flex; align-items: baseline; gap: 0; line-height: 1; }
.brand b {
  font-family: var(--serif); font-weight: 500; font-size: 1.42rem;
  letter-spacing: 0.01em; color: var(--on-navy);
  transition: color .4s var(--ease);
}
.brand .amp { color: var(--gold); font-style: italic; padding-inline: 0.12em; }
.brand small {
  display: block; font-family: var(--sans); font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--on-navy-mut);
  margin-top: 5px; transition: color .4s var(--ease);
}

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--on-navy-soft); position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--gold-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--on-navy); transition: background .3s, transform .3s, opacity .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-900);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.6rem); color: var(--on-navy);
  padding: 0.32em 0; border-bottom: 1px solid var(--navy-line);
}
.mobile-menu a .idx { font-family: var(--sans); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; margin-right: 1em; vertical-align: middle; }
.mobile-menu .btn { margin-top: 32px; align-self: flex-start; }

/* ================================================================ HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 72% 16%, rgba(168,124,66,0.18), transparent 52%),
    radial-gradient(90% 75% at 14% 96%, rgba(29,65,65,0.55), transparent 60%),
    linear-gradient(135deg, #162c2c 0%, #0f2424 52%, #060e0e 100%);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease);
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  animation: heroKenBurns 9s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .6s linear; }
  .hero__slide.is-active { animation: none; transform: scale(1.06); }
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,14,14,0.52) 0%, rgba(6,14,14,0.40) 38%, rgba(6,14,14,0.72) 70%, rgba(6,14,14,0.98) 100%),
    linear-gradient(75deg, rgba(6,14,14,0.82) 0%, rgba(6,14,14,0.46) 52%, rgba(6,14,14,0.12) 100%);
}
.hero__badge {
  position: absolute; top: clamp(96px, 14vh, 150px); right: var(--gutter); z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(15,36,36,0.32); backdrop-filter: blur(6px); border-radius: var(--radius);
}
.hero__badge .stars { color: var(--gold-soft); letter-spacing: 2px; font-size: 0.7rem; }
.hero__badge b { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; }
.hero__badge small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-soft); }

.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(70px, 11vh, 130px); padding-top: 140px; }
.hero__logo {
  display: block;
  height: 6.4rem;
  width: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.hero .eyebrow { color: var(--gold-soft); margin-bottom: 26px; }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero .display { max-width: 16ch; color: #fff; }
.hero__sub { max-width: 48ch; margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--on-navy-soft); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); margin-top: 52px;
  padding-top: 30px;
}
.hero__meta .stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.hero__meta .stat b { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; display: block; line-height: 1; }
.hero__meta .stat > span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-mut); }
.hero__meta .stat--text { display: flex; flex-direction: column; gap: 3px; justify-content: center; text-align: center; }
.hero__meta .stat b .u { color: var(--gold-soft); font-size: 0.8em; vertical-align: baseline; }
.hero__meta .stat--text span:first-child { font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 500; color: #fff; letter-spacing: 0.02em; text-transform: none; line-height: 1.1; }
.hero__meta .stat--text span:last-child { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-mut); line-height: 1.4; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-navy-soft);
}
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--gold-soft), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-soft); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ================================================================ NÓMINA / MARQUEE */
.marquee { background: var(--navy-900); color: var(--on-navy-soft); border-block: 1px solid var(--navy-700); overflow: hidden; }
.marquee__track { display: flex; gap: 64px; padding: 20px 0; white-space: nowrap; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--on-navy-soft); display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after { content: "·"; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ================================================================ QUIÉNES SOMOS */
.about { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 11vw, 160px); color: #fff; }
.about__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.about__bg image-slot { width: 100%; height: 100%; }
.about::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,14,14,0.78) 0%, rgba(6,14,14,0.70) 45%, rgba(6,14,14,0.86) 100%);
}
.about__content { max-width: 880px; margin-inline: auto; text-align: center; }
.about__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.02; color: #fff;
  font-size: clamp(3.2rem, 9vw, 7rem); letter-spacing: -0.01em; margin-top: 14px;
}
.about .eyebrow--center { color: var(--gold-soft); }
.about .eyebrow--center::before, .about .eyebrow--center::after { background: var(--gold-soft); }
.about__lead {
  color: var(--on-navy-soft); margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.75; max-width: 760px; margin-inline: auto;
}
.about__cta { margin-top: 40px; display: flex; justify-content: center; }
.about__values {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 40px;
  margin-top: clamp(56px, 7vw, 84px); padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.14); text-align: left;
}
.about__values .v h4 { font-family: var(--sans); font-size: 0.96rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; display: flex; align-items: center; gap: 10px; }
.about__values .v h4::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.about__values .v p { font-size: 0.9rem; margin-top: 10px; color: var(--on-navy-soft); line-height: 1.6; }

/* ================================================================ STATS / CONFIANZA strip */
.stats { background: var(--navy-900); color: var(--on-navy); position: relative; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgba(168,124,66,0.10), transparent 60%); pointer-events: none; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy-700); border: 1px solid var(--navy-700); }
.stats__cell { background: var(--navy-900); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); position: relative; }
.stats__cell b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 500; line-height: 1; color: #fff; display: block; }
.stats__cell b .u { color: var(--gold-soft); }
.stats__cell span { display: block; margin-top: 14px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-soft); }

/* ================================================================ ÁREAS DE PRÁCTICA */
.areas { background: var(--navy-900); }
.areas__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); }
.areas__grid .area { grid-column: span 2; }
.areas__grid .area:nth-child(4), .areas__grid .area:nth-child(5) { grid-column: span 3; }
.area {
  background: var(--navy-800); padding: clamp(30px, 3.4vw, 46px); position: relative;
  transition: background .4s var(--ease); display: flex; flex-direction: column; min-height: 300px;
}
.area:hover { background: var(--navy-700); }
.area__ico { width: 46px; height: 46px; color: var(--gold-soft); transition: color .4s var(--ease); }
.area:hover .area__ico { color: var(--gold); }
.area__num { position: absolute; top: clamp(30px,3.4vw,46px); right: clamp(30px,3.4vw,46px); font-family: var(--serif); font-size: 0.95rem; color: var(--on-navy-mut); }
.area h3 { font-size: 1.32rem; margin-top: 26px; color: #fff; }
.area p { font-size: 0.95rem; color: var(--on-navy-soft); margin-top: 14px; flex: 1; }
.area .link-more { margin-top: 24px; align-self: flex-start; font-size: 0.74rem; color: var(--on-navy); }
.areas .section-head .h2 { color: #fff; }
.areas .section-head .lead { color: var(--on-navy-soft); }
.area::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .45s var(--ease); }
.area:hover::after { width: 100%; }

/* ================================================================ EQUIPO */
.team { background: var(--navy-900); color: var(--on-navy); }
.team .eyebrow { color: var(--gold-soft); }
.team .eyebrow::before { background: var(--gold-soft); }
.team .section-head .h2 { color: #fff; }
.team .section-head .lead { color: var(--on-navy-soft); }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.member { }
.member__photo { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-700), #060e0e); }
.member__photo image-slot { width: 100%; aspect-ratio: 3/4; filter: grayscale(1) contrast(1.02); transition: filter .5s var(--ease); }
.member:hover .member__photo image-slot { filter: grayscale(0) contrast(1); }
.member__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -70px 60px -40px rgba(6,14,14,0.9); pointer-events: none; }
.member__role { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-top: 20px; }
.member h3 { font-size: 1.28rem; color: #fff; margin-top: 8px; }
.member .spec { font-size: 0.9rem; color: var(--on-navy-soft); margin-top: 8px; }
.member .edu { font-size: 0.8rem; color: var(--on-navy-mut); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--navy-line); display: flex; align-items: center; gap: 8px; }
.member .edu::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.team__foot { margin-top: clamp(40px, 5vw, 60px); display: flex; justify-content: center; }

/* ================================================================ NUESTRA ESPECIALIDAD */
.especialidad { background: var(--navy-800); }

.esp__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

/* Imagen */
.esp__img {
  position: relative;
}
.esp__img image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}
.esp__img-caption {
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-mut);
  text-align: center;
}
/* Línea dorada lateral */
.esp__img::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 10%;
  height: 80%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* Texto */
.esp__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 18px;
}
.spec__title em {
  font-style: italic;
  color: var(--gold-soft);
}

/* Puntos clave */
.esp__points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid var(--navy-line);
  padding-top: clamp(28px, 3vw, 40px);
}
.esp__point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.esp__point-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-tint);
  border: 1px solid rgba(168,124,66,0.22);
  display: grid;
  place-items: center;
  color: var(--gold-soft);
}
.esp__point-icon svg { width: 16px; height: 16px; }
.esp__point strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--on-navy);
  margin-bottom: 6px;
}
.esp__point p {
  font-size: 0.88rem;
  color: var(--on-navy-soft);
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .esp__split { grid-template-columns: 1fr; }
  .esp__img::before { display: none; }
  .esp__img image-slot { aspect-ratio: 16/9; }
}

/* ================================================================ CONFIANZA / CREDIBILIDAD */
.trust { background: var(--navy-900); }
.trust .section-head .h2 { color: #fff; }
.trust .section-head .lead { color: var(--on-navy-soft); }
.trust__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: end; margin-bottom: clamp(44px, 5vw, 64px); }
.trust__creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.trust__creds .c b { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 500; line-height: 1; color: #fff; display: block; }
.trust__creds .c b .u { color: var(--gold); }
.trust__creds .c span { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-mut); margin-top: 8px; display: block; }

.trust__bar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px,4vw,52px); border-top: 1px solid var(--navy-line); }
.trust__video { margin: clamp(40px,5vw,60px) 0 clamp(44px,5vw,64px); }
.trust__video-frame { position: relative; aspect-ratio: 16/9; border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.trust__video-frame > video, .trust__video-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; object-fit: cover; }
.trust__video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.trust__video-play { width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-soft); display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease); }
.trust__video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.trust__video:hover .trust__video-play { background: var(--gold); color: #fff; }
.trust__video-label { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: #fff; }
.trust__video-hint { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-mut); }
.trust__col h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-mut); margin-bottom: 22px; }
.assoc-list { display: flex; flex-wrap: wrap; gap: 12px; }
.assoc-list li {
  border: 1px solid var(--navy-line); padding: 10px 18px; border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 500; color: var(--on-navy-soft);
  display: flex; align-items: center; gap: 9px; background: var(--navy-800);
}
.assoc-list li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%; flex: none; }
.award-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--navy-line); align-items: baseline; }
.award-list li:last-child { border-bottom: none; }
.award-list .yr { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; flex: none; width: 52px; }
.award-list .desc b { display: block; font-size: 0.96rem; color: #fff; font-family: var(--sans); font-weight: 600; }
.award-list .desc span { font-size: 0.84rem; color: var(--on-navy-mut); }

/* ================================================================ TESTIMONIOS */
.tests { background: var(--navy-800); color: var(--on-navy); position: relative; overflow: hidden; }
.tests .mark { position: absolute; top: -40px; left: var(--gutter); font-family: var(--serif); font-size: 18rem; line-height: 1; color: rgba(255,255,255,0.04); pointer-events: none; }
.tests__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px); position: relative; }
.quote { display: flex; flex-direction: column; }
.quote .stars { color: var(--gold-soft); letter-spacing: 3px; font-size: 0.78rem; margin-bottom: 22px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--on-navy); font-weight: 300; }
.quote .by { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote .by .av { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-600); border: 1px solid var(--navy-line); flex: none; display: grid; place-items: center; font-family: var(--serif); color: var(--gold-soft); font-size: 1rem; }
.quote .by b { display: block; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; color: #fff; }
.quote .by span { font-size: 0.78rem; color: var(--on-navy-mut); }

/* ================================================================ ARTÍCULOS */
.articles { background: var(--navy-900); }
.articles__head .h2 { color: #fff; }
.articles__head .link-more { color: var(--on-navy); }
.articles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px,4vw,56px); }
.articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.6vw, 38px); }
.post { display: flex; flex-direction: column; }
.post__img { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.post__img image-slot { width: 100%; aspect-ratio: 16/11; transition: transform .6s var(--ease); }
.post:hover .post__img image-slot { transform: scale(1.04); }
.post__cat { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--navy-800); color: #fff; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 13px; }
.post__meta { display: flex; gap: 14px; align-items: center; font-size: 0.76rem; color: var(--on-navy-mut); letter-spacing: 0.04em; margin-top: 22px; }
.post__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.post h3 { font-size: 1.3rem; margin-top: 14px; line-height: 1.2; color: #fff; transition: color .3s var(--ease); }
.post:hover h3 { color: var(--gold); }
.post p { font-size: 0.92rem; color: var(--on-navy-soft); margin-top: 12px; }
.post .read { margin-top: 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy); display: inline-flex; align-items: center; gap: 8px; }

/* ================================================================ CONTACTO */
.contact { background: var(--navy-900); color: var(--on-navy); }
.contact .eyebrow { color: var(--gold-soft); }
.contact .eyebrow::before { background: var(--gold-soft); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
.contact h2 { color: #fff; }
.contact__lead { color: var(--on-navy-soft); margin-top: 18px; max-width: 42ch; }

.form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-mut); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 0.98rem; color: #fff;
  background: transparent; border: none; border-bottom: 1px solid var(--navy-line);
  padding: 12px 0; transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-navy-mut); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); }
.field--error { border-bottom-color: #e05c5c !important; }
.field input.field--error, .field select.field--error, .field textarea.field--error { border-color: #e05c5c; }
.field select option { background: var(--navy-800); color: #fff; }
.form__submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 0.78rem; color: var(--on-navy-mut); max-width: 30ch; }

.offices { display: grid; gap: 0; }
.office { padding: 22px 0; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.office:first-child { border-top: none; padding-top: 0; }
.office .city { font-family: var(--serif); font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: 10px; }
.office .city::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.office address { font-style: normal; font-size: 0.9rem; color: var(--on-navy-soft); line-height: 1.7; }
.office .ph { color: var(--gold-soft); font-size: 0.9rem; margin-top: 6px; display: block; }
.contact__hours { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 30px; }
.contact__hours .hr b { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-mut); margin-bottom: 6px; }
.contact__hours .hr span { color: var(--on-navy); font-size: 0.92rem; }

/* ================================================================ FOOTER */
.footer { background: #0a1b1b; color: var(--on-navy-soft); padding-top: clamp(56px, 7vw, 88px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 3vw, 56px); padding-bottom: 48px; border-bottom: 1px solid var(--navy-line); }
.footer__brand b { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer__brand .amp { color: var(--gold); font-style: italic; }
.footer__brand p { font-size: 0.9rem; margin-top: 16px; max-width: 34ch; color: var(--on-navy-mut); }
.footer__socials { display: flex; gap: 12px; margin-top: 24px; }
.footer__socials a { width: 38px; height: 38px; border: 1px solid var(--navy-line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, background .3s, color .3s; color: var(--on-navy-soft); }
.footer__socials a:hover { border-color: var(--gold); color: var(--gold-soft); }
.footer__col h5 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 0.9rem; color: var(--on-navy-soft); transition: color .3s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 28px; font-size: 0.8rem; color: var(--on-navy-mut); }
.footer__bottom .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom .legal a:hover { color: var(--gold-soft); }

/* ================================================================ image-slot theming */
/* Default empty slots read as refined dark placeholders, not light-gray boxes */
image-slot::part(frame) {
  background:
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 55%, #060e0e 100%);
}
image-slot::part(empty) { color: rgba(255,255,255,0.55); }

/* Hero: cinematic navy with a faint vignette + corporate sheen */
.about__bg image-slot::part(frame) {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
}

/* ================================================================ reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue .line::after, .marquee__track { animation: none !important; }
}

/* ================================================================ INSIGHTS LEGALES */
.insights {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line-2);
}
.insights__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.insights__head .eyebrow { margin-bottom: 10px; }
.insights__desc {
  font-size: 0.95rem; color: var(--ink-soft); max-width: 52ch; line-height: 1.55; margin-top: 8px;
}
.insights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px);
}
.insight {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.insight:hover {
  box-shadow: 0 12px 40px -12px rgba(29,65,65,0.18);
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.insight__img {
  position: relative; overflow: hidden; display: block;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.insight__img image-slot { width: 100%; aspect-ratio: 16/10; transition: transform .55s var(--ease); }
.insight:hover .insight__img image-slot { transform: scale(1.04); }
.insight__cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--navy-700); color: #fff;
  font-size: 0.63rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
}
.insight__body {
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1;
}
.insight__date {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.insight__body h3 {
  font-size: 1.12rem; margin-top: 10px; line-height: 1.25;
  transition: color .3s var(--ease);
}
.insight:hover .insight__body h3 { color: var(--navy-700); }
.insight__body h3 a { color: inherit; }
.insight__body p {
  font-size: 0.9rem; color: var(--ink-mut); margin-top: 10px; line-height: 1.6; flex: 1;
}
.insight__btn {
  margin-top: 20px; align-self: flex-start;
  font-size: 0.78rem; padding: 0.7em 1.3em;
  color: var(--navy-700); border-color: var(--navy-700);
}
.insight__btn:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

@media (max-width: 1080px) { .insights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .insights__grid { grid-template-columns: 1fr; } .insights__head { flex-direction: column; align-items: flex-start; } }

/* ================================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .areas__grid .area, .areas__grid .area:nth-child(4) { grid-column: auto; }
  .areas__grid .area:nth-child(5) { grid-column: 1 / -1; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .tests__grid { grid-template-columns: 1fr; gap: 40px; max-width: 640px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .about__values { grid-template-columns: repeat(2, 1fr); }
  .trust__top { grid-template-columns: 1fr; }
  .trust__bar { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__badge { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats__grid, .areas__grid, .team__grid, .articles__grid { grid-template-columns: 1fr; }
  .areas__grid .area, .areas__grid .area:nth-child(4), .areas__grid .area:nth-child(5) { grid-column: auto; }
  .about__values { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .trust__creds { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 120px; }
}
