/* =========================================================
   LEXIN CONSULTORES — Sistema de diseño
   Luxury Minimalism · Premium Corporate
   ========================================================= */

:root {
  /* Paleta */
  --navy-950: #050A1F;
  --navy-900: #0A1024;
  --navy-800: #0F1832;
  --navy-700: #16213f;
  --ink: #0A0A0A;
  --gold: #D4AF37;
  --gold-soft: #E6C766;
  --gold-deep: #B8932B;
  --white: #FFFFFF;
  --warm-white: #FAFAFA;
  --warm-100: #F2F1ED;
  --line: #E6E4DD;

  /* Texto */
  --text-on-light: #0E1426;
  --text-on-light-soft: #51586b;
  --text-on-dark: #F4F5F8;
  --text-on-dark-soft: #A7AEC2;

  /* Tokens semánticos */
  --bg: var(--warm-white);
  --surface: var(--white);

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Forma */
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(10, 16, 36, .06);
  --shadow-md: 0 10px 30px -12px rgba(10, 16, 36, .18);
  --shadow-lg: 0 30px 60px -22px rgba(10, 16, 36, .28);
  --glow-gold: 0 10px 40px -8px rgba(212, 175, 55, .55);

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;

  /* Z-index escala */
  --z-nav: 100;
  --z-float: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--navy-950); }

.text-gold { color: var(--gold); }

/* =========================================================
   BOTONES
   ========================================================= */
.cta-button {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border-radius: 999px;
  min-height: 48px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, color .25s;
  will-change: transform;
}
.btn-icon { width: 1.15em; height: 1.15em; }
.cta-button--sm { --pad-y: .6rem; --pad-x: 1.1rem; font-size: .85rem; min-height: 42px; }
.cta-button--lg { --pad-y: 1rem; --pad-x: 1.9rem; font-size: 1rem; }
.cta-button--xl { --pad-y: 1.2rem; --pad-x: 2.6rem; font-size: 1.1rem; }

.cta-button--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-950);
  box-shadow: var(--glow-gold);
}
.cta-button--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(212,175,55,.7); }
.cta-button--primary:active { transform: translateY(0); }

.cta-button--ghost {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.cta-button--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* Botón dorado dentro de nav clara/oscura */
.sticky-nav .cta-button--sm {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-950);
  box-shadow: 0 6px 20px -6px rgba(212,175,55,.5);
}
.sticky-nav .cta-button--sm:hover { transform: translateY(-2px); }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.sticky-nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color .35s var(--ease-out), box-shadow .35s, backdrop-filter .35s;
  background: transparent;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.sticky-nav.is-scrolled {
  background: rgba(5, 10, 31, .72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(212,175,55,.18), 0 12px 40px -20px rgba(0,0,0,.7);
}

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); }
.logo__mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.logo__img { height: 34px; width: auto; max-width: 150px; object-fit: contain; display: block; flex: none; }
.logo__text { font-size: 1.05rem; letter-spacing: .14em; font-weight: 300; text-transform: uppercase; }
.logo__text strong { font-weight: 700; }

.nav-links { display: flex; gap: 2rem; list-style: none; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .9rem; letter-spacing: .04em; font-weight: 400;
  position: relative; padding: .4rem 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 2rem) 1.25rem 5rem;
  color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #16213f 0%, var(--navy-950) 55%, #02050f 100%);
}
.hero__bg::after {
  /* textura sutil + halo dorado */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 80% 20%, rgba(212,175,55,.16), transparent 70%),
    radial-gradient(35% 45% at 15% 80%, rgba(212,175,55,.10), transparent 70%);
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .82;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,31,.40) 0%, rgba(5,10,31,.74) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.015) 0 2px, transparent 2px 26px);
}
.hero__content { position: relative; max-width: 920px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .35em; font-size: .72rem; font-weight: 500;
  color: var(--gold-soft); margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300; line-height: 1.08;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -.01em; margin-bottom: 1.5rem;
}
.hero__subtitle {
  color: var(--text-on-dark-soft); font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 620px; margin: 0 auto 2.4rem; font-weight: 300;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.trust-indicators {
  display: inline-flex; align-items: center; gap: clamp(1rem, 4vw, 2.6rem);
  padding: 1.1rem 1.8rem; border-radius: var(--radius-xl);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.trust__item { display: flex; flex-direction: column; gap: .15rem; }
.trust__num { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--gold); font-weight: 500; }
.trust__label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.trust__divider { width: 1px; height: 34px; background: rgba(255,255,255,.14); }

.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; color: rgba(255,255,255,.6);
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll svg { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* =========================================================
   ESTRUCTURA DE SECCIÓN
   ========================================================= */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.1rem, 5vw, 2.5rem);
  max-width: var(--container); margin: 0 auto;
}
.dark-theme {
  background: var(--navy-950); color: var(--text-on-dark);
  max-width: none; margin: 0;
  padding-left: clamp(1.1rem, 5vw, 2.5rem); padding-right: clamp(1.1rem, 5vw, 2.5rem);
}
.dark-theme > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section__head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: var(--container); gap: 1.5rem; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600;
  color: var(--gold-deep); margin-bottom: .9rem;
}
.dark-theme .section__eyebrow { color: var(--gold-soft); }
.section__title {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.12; color: inherit;
}
.section__lead { margin-top: 1rem; color: var(--text-on-light-soft); font-size: 1.05rem; font-weight: 300; }
.dark-theme .section__lead { color: var(--text-on-dark-soft); }

/* =========================================================
   GRILLAS
   ========================================================= */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   TARJETAS DE PROBLEMAS / QUOTE
   ========================================================= */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.card--quote:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,175,55,.6);
}
.card__quotemark { width: 38px; height: 38px; color: var(--gold); opacity: .55; margin-bottom: 1rem; }
.card__text { font-size: 1.12rem; font-weight: 400; color: var(--text-on-light); line-height: 1.5; }
.card__author { margin-top: 1.2rem; font-size: .85rem; color: var(--text-on-light-soft); letter-spacing: .02em; }

/* =========================================================
   ABOUT / SPLIT LAYOUT
   ========================================================= */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-layout--equal { align-items: stretch; }

.video-trigger {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.video-trigger .media-placeholder { position: absolute; inset: 0; transition: transform .6s var(--ease-out); }
.video-trigger:hover .media-placeholder { transform: scale(1.05); }
.video-trigger__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.video-trigger:hover .video-trigger__img { transform: scale(1.05); }
.video-trigger::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,10,31,.55)); z-index: 1; }
.video-trigger__cap {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(5,10,31,.6); backdrop-filter: blur(6px);
  color: var(--white); font-size: .78rem; letter-spacing: .04em;
  padding: .45rem .9rem; border-radius: 999px;
}

.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,175,55,.92); color: var(--navy-950);
  box-shadow: var(--glow-gold);
  transition: transform .3s var(--ease-out);
}
.play-button svg { width: 30px; height: 30px; margin-left: 3px; }
.video-trigger:hover .play-button { transform: translate(-50%,-50%) scale(1.08); }
.play-button--sm { width: 54px; height: 54px; }
.play-button--sm svg { width: 22px; height: 22px; }
.play-button--lg { width: 92px; height: 92px; position: static; transform: none; margin: 0 auto 1.4rem; }

.about__body .section__eyebrow { text-align: left; }
.about__text { color: var(--text-on-light-soft); margin: 1.3rem 0; font-size: 1.05rem; }
.about__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.about__list li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--text-on-light); }
.about__list svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 2rem 1.6rem;
  display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,.6); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.04));
  color: var(--gold-deep); margin-bottom: .4rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__media {
  display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 10; margin-bottom: .9rem; background: var(--navy-800);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.service-card__text { color: var(--text-on-light-soft); font-size: .95rem; flex: 1; }
.service-card__link { margin-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--gold-deep); display: inline-flex; gap: .35rem; transition: gap .25s; }
.service-card__link:hover { gap: .7rem; }
.service-card__link--muted { color: var(--text-on-light-soft); cursor: default; }
.service-card--soon { background: var(--warm-100); }
.badge-soon {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--navy-950); color: var(--gold-soft);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: .35rem .7rem; border-radius: 999px;
}

/* =========================================================
   CARRUSEL DE CASOS
   ========================================================= */
.carousel__controls { display: flex; gap: .6rem; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: var(--white);
  display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .25s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); transform: translateY(-2px); }

.carousel {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 32%);
  gap: 1.25rem; overflow-x: auto; overflow-y: hidden;
  padding: .5rem .25rem 1.5rem; margin-top: 2rem;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: rgba(212,175,55,.6); border-radius: 999px; }
.carousel::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }

.video-card {
  scroll-snap-align: start; position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.video-card .media-placeholder { aspect-ratio: 16 / 10; transition: transform .6s var(--ease-out); }
.video-card__video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; object-fit: contain; background: #050A1F; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.video-card:hover .media-placeholder { transform: scale(1.06); }
.video-card .play-button--sm { top: 35%; }
.video-card__body { padding: 1.2rem 1.3rem 1.5rem; }
.video-card__tag {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(212,175,55,.4); border-radius: 999px;
  padding: .25rem .7rem; margin-bottom: .7rem;
}
.video-card__body h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.video-card__body p { font-size: .9rem; color: var(--text-on-dark-soft); margin-top: .3rem; }

/* =========================================================
   FEATURES (ESTÁNDAR LEXIN)
   ========================================================= */
.feature { padding: 1.6rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); transition: transform .35s var(--ease-out), border-color .35s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(212,175,55,.45); }
.feature__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(212,175,55,.12); color: var(--gold-soft); margin-bottom: 1.1rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; font-weight: 600; color: var(--white); margin-bottom: .5rem; }
.feature p { font-size: .92rem; color: var(--text-on-dark-soft); }

/* =========================================================
   EQUIPO
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 1.6rem); align-items: stretch; }
.team-member {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 1.8rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.team-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,.55); }
.team-member__photo {
  width: 100%; max-width: 150px; margin: 0 auto 1.1rem; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: top center;
  filter: grayscale(100%); transition: filter .45s var(--ease-out), transform .45s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.team-member:hover .team-member__photo { filter: grayscale(0%); transform: scale(1.04); }
.team-member h3 { font-size: 1.05rem; font-weight: 600; }
.team-member__role { color: var(--gold-deep); font-size: .82rem; font-weight: 600; margin-top: .35rem; letter-spacing: .01em; }
.team-member__desc { color: var(--text-on-light-soft); font-size: .84rem; line-height: 1.6; margin-top: .85rem; }

.team__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.scroll-down-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.8rem; border-radius: 999px;
  border: 1px solid var(--navy-950); color: var(--navy-950);
  font-weight: 600; font-size: .95rem;
  transition: background-color .3s, color .3s, transform .3s;
}
.scroll-down-btn svg { width: 18px; height: 18px; transition: transform .3s; }
.scroll-down-btn:hover { background: var(--navy-950); color: var(--white); transform: translateY(-2px); }
.scroll-down-btn:hover svg { transform: translateY(3px); }

/* =========================================================
   QUIÉNES SOMOS — PANELES
   ========================================================= */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3rem); transition: border-color .35s, transform .35s var(--ease-out);
}
.panel:hover { border-color: rgba(212,175,55,.4); transform: translateY(-4px); }
.panel__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(212,175,55,.12); color: var(--gold-soft); margin-bottom: 1.3rem; }
.panel__icon svg { width: 30px; height: 30px; }
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--white); margin-bottom: .8rem; }
.panel p { color: var(--text-on-dark-soft); font-size: 1.02rem; }

/* Intro general antes de Misión / Visión */
.qs-intro { max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.qs-intro p { color: var(--text-on-dark-soft); font-size: 1.05rem; line-height: 1.85; font-weight: 300; }

/* ===== Video "Conoce la firma" (About) ===== */
.about-video {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: #050A1F; box-shadow: var(--shadow-lg);
}
.about-video__player { width: 100%; height: 100%; object-fit: contain; display: block; background: #050A1F; }

/* ===== Desplegable perfil de equipo ===== */
.profile-toggle { width: 100%; margin-top: .9rem; }
.profile-toggle summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--gold-deep); padding: .3rem .2rem;
}
.profile-toggle summary::-webkit-details-marker { display: none; }
.profile-toggle summary:hover { color: var(--gold); }
.profile-toggle__chev { display: inline-grid; place-items: center; transition: transform .3s var(--ease-out); }
.profile-toggle__chev svg { width: 15px; height: 15px; }
.profile-toggle[open] .profile-toggle__chev { transform: rotate(180deg); }
.profile-toggle__content { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.profile-toggle[open] .profile-toggle__content { max-height: 480px; }
.profile-toggle .team-member__desc { margin-top: .7rem; }

/* ===== Desplegable ¿Quiénes Somos? ===== */
.qs-toggle { max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.qs-toggle summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .75rem; }
.qs-toggle summary::-webkit-details-marker { display: none; }
.qs-toggle__title {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.12; color: var(--white);
}
.qs-toggle__chev { display: inline-grid; place-items: center; color: var(--gold-soft); transition: transform .3s var(--ease-out); }
.qs-toggle__chev svg { width: 26px; height: 26px; }
.qs-toggle[open] .qs-toggle__chev { transform: rotate(180deg); }
.qs-toggle__content {
  max-height: 0; overflow: hidden; opacity: 0; text-align: left;
  transition: max-height .3s var(--ease-out), opacity .3s var(--ease-out), margin-top .3s var(--ease-out);
}
.qs-toggle[open] .qs-toggle__content { max-height: 1000px; opacity: 1; margin-top: 1.6rem; }
.qs-toggle__content p { color: var(--text-on-dark-soft); font-size: 1.05rem; line-height: 1.85; font-weight: 300; }

/* ===== Informe jurídico desplegable en Especialidades ===== */
.svc-report { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.svc-report summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--gold-deep); padding: .2rem 0;
}
.svc-report summary::-webkit-details-marker { display: none; }
.svc-report summary:hover { color: var(--gold); }
.svc-report__chev { display: inline-grid; place-items: center; transition: transform .3s var(--ease-out); }
.svc-report__chev svg { width: 15px; height: 15px; }
.svc-report[open] .svc-report__chev { transform: rotate(180deg); }
.svc-report__content { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.svc-report[open] .svc-report__content { max-height: 4000px; }
.svc-report__content p { font-size: .85rem; color: var(--text-on-light-soft); margin-top: .7rem; line-height: 1.6; }
.svc-report__content p strong { color: var(--text-on-light); }
.svc-report__content ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.svc-report__content li { font-size: .85rem; color: var(--text-on-light-soft); margin-top: .4rem; line-height: 1.55; }
.svc-report__content li strong { color: var(--text-on-light); }

/* ===== Noticias Migratorias ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
.news-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,.55); }
.news-card__date { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.news-card__title { font-size: 1.15rem; font-weight: 600; margin: .5rem 0 .6rem; line-height: 1.3; }
.news-card__summary { font-size: .92rem; color: var(--text-on-light-soft); flex: 1; }
.news-card__source { margin-top: 1.1rem; font-size: .8rem; color: var(--text-on-light-soft); }
.news-card__source strong { color: var(--text-on-light); font-weight: 600; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--text-on-light-soft); padding: 2.5rem 1rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* Offset para que el header sticky no tape el destino del smooth-scroll */
section[id] { scroll-margin-top: 92px; }

/* Enlaces "Leer informe jurídico" / "Ver perfil completo" (páginas externas) */
.svc-report-link {
  margin-top: .6rem; font-weight: 600; font-size: .85rem; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .35rem; transition: gap .25s, color .25s;
}
.svc-report-link:hover { gap: .6rem; color: var(--gold); }
.team-member__link {
  margin-top: .9rem; font-weight: 600; font-size: .82rem; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .35rem; transition: gap .25s, color .25s;
}
.team-member__link:hover { gap: .6rem; color: var(--gold); }

/* =========================================================
   PÁGINAS DE DOCUMENTO (informes / perfiles) — vistas externas
   ========================================================= */
.doc-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.1rem, 5vw, 2.5rem);
  background: rgba(5,10,31,.92); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(212,175,55,.18);
}
.doc-nav .logo { color: var(--white); }
.doc-main { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 4rem; }
.doc-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.doc-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600; color: var(--gold-deep); margin-bottom: .9rem; }
.doc-title { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; }
.doc-sub { margin-top: 1rem; color: var(--text-on-light-soft); font-size: 1.05rem; font-weight: 300; }
.doc-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top center; margin: 0 auto 1.4rem; box-shadow: var(--shadow-md); display: block; }
.doc-body p { margin-top: 1.15rem; line-height: 1.78; color: var(--text-on-light); font-size: 1.02rem; text-align: justify; }
.doc-body p strong { color: var(--text-on-light); font-weight: 600; }
.doc-body h2 { text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; margin-top: 2.4rem; color: var(--text-on-light); }
.doc-body ul { margin: .8rem 0 0; padding-left: 1.3rem; }
.doc-body li { margin-top: .6rem; line-height: 1.65; color: var(--text-on-light); }
.doc-body li strong { font-weight: 600; }
.doc-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.doc-back { color: var(--text-on-light-soft); font-weight: 500; font-size: .92rem; transition: color .25s; }
.doc-back:hover { color: var(--gold-deep); }

/* =========================================================
   OFICINA
   ========================================================= */
.office__body .section__eyebrow, .office__body .section__head { text-align: left; }
.office__text { color: var(--text-on-light-soft); margin: 1.2rem 0 1.6rem; font-size: 1.05rem; }
.office__details { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.office__details li { display: flex; align-items: center; gap: .8rem; color: var(--text-on-light); font-weight: 500; }
.office__details svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.office__media { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.office__media .media-placeholder { width: 100%; height: 100%; }
.office__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   FAQ — ACORDEÓN
   ========================================================= */
.faq { max-width: 800px; }
.faq__list { display: grid; gap: 1rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: rgba(212,175,55,.5); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.35rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.02rem; color: var(--text-on-light);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__chev { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold-deep); transition: transform .35s var(--ease-out); }
.faq-item__chev svg { width: 20px; height: 20px; }
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item__content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out), padding .45s var(--ease-out); }
.faq-item__content p { color: var(--text-on-light-soft); padding-bottom: 0; }
.faq-item[open] .faq-item__content { max-height: 640px; padding-bottom: 1.4rem; }

/* Respuestas enriquecidas (lead + viñetas + cierre) — Home y página completa */
.faq-item[open] .faq-answer { max-height: 1800px; }
.faq-q { margin: 0; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: 1.35; }
.faq-answer p { color: var(--text-on-light-soft); line-height: 1.7; }
.faq-answer ul { margin: .8rem 0 0; padding-left: 1.25rem; }
.faq-answer li { margin-top: .55rem; line-height: 1.6; color: var(--text-on-light-soft); }
.faq-answer li strong { color: var(--text-on-light); font-weight: 600; }
.faq-answer__close { margin-top: 1rem !important; color: var(--text-on-light); font-weight: 500; }
.faq__more { text-align: center; margin-top: 2.2rem; }

/* Página completa /preguntas-frecuentes */
.faq-main .faq__list--full { display: grid; gap: 1rem; }
.faq-cat {
  text-align: center; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--text-on-light);
  margin: 2.6rem 0 .4rem;
}
.faq-cat:first-child { margin-top: 0; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { position: relative; text-align: center; overflow: hidden; }
.final-cta__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px; max-width: 120%;
  background: radial-gradient(circle, rgba(212,175,55,.22), transparent 60%);
  pointer-events: none;
}
.final-cta__inner { position: relative; max-width: 720px; }
.final-cta__logo { height: 68px; width: auto; max-width: 220px; object-fit: contain; opacity: .85; margin: 0 auto 1.8rem; }
.final-cta__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; color: var(--white); }
.final-cta__sub { color: var(--text-on-dark-soft); margin: 1.3rem auto 2.5rem; max-width: 520px; font-size: 1.08rem; font-weight: 300; }

/* =========================================================
   REDES SOCIALES
   ========================================================= */
.social-media { text-align: center; }
.social__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 2rem; }
.social__nav { display: flex; justify-content: center; gap: 1.1rem; }
.social__link {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: var(--text-on-dark);
  transition: transform .3s var(--ease-out), color .3s, border-color .3s, background-color .3s;
}
.social__link svg { width: 26px; height: 26px; }
.social__link:hover { transform: scale(1.1); color: var(--gold); border-color: var(--gold); background: rgba(212,175,55,.08); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #02050f; color: var(--text-on-dark-soft); padding: 2.5rem clamp(1.1rem, 5vw, 2.5rem); }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); }
.site-footer__brand .logo__mark { width: 22px; height: 22px; }
.site-footer__brand .logo__img { height: 28px; }
.site-footer__brand .logo__text { font-size: .95rem; }
.site-footer__copy { font-size: .85rem; }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a { font-size: .85rem; transition: color .25s; }
.site-footer__legal a:hover { color: var(--gold); }

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.floating-wa { position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: var(--z-float); }
.floating-wa__link {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease-out);
}
.floating-wa__link:hover { transform: scale(1.08); }
.floating-wa__icon { width: 34px; height: 34px; }
.floating-wa__ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* =========================================================
   MODAL DE VIDEO
   ========================================================= */
.video-modal {
  border: none; padding: 0; background: transparent;
  max-width: min(900px, 92vw); width: 100%; color: var(--text-on-dark);
}
.video-modal::backdrop { background: rgba(3,5,15,.78); backdrop-filter: blur(8px); }
.video-modal[open] { animation: modalIn .35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.video-modal__inner {
  position: relative; background: var(--navy-900);
  border: 1px solid rgba(212,175,55,.25); border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
}
.video-modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-on-dark);
  background: rgba(255,255,255,.06); transition: background-color .25s, transform .25s;
}
.video-modal__close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
.video-modal__close svg { width: 22px; height: 22px; }
.video-modal__player {
  background: radial-gradient(120% 100% at 50% 0%, var(--navy-700), var(--navy-950));
  border-radius: var(--radius-xl); padding: clamp(2.5rem, 7vw, 4rem) 1.5rem; margin-bottom: 1.6rem;
}
.video-modal__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.video-modal__hint { color: var(--text-on-dark-soft); margin-top: .6rem; font-size: .95rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* =========================================================
   PLACEHOLDERS DE MEDIA (sustituir por imágenes/video reales)
   ========================================================= */
.media-placeholder { background-color: var(--navy-800); background-size: cover; background-position: center; position: relative; }
.media-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,10,31,.55));
}
.media-placeholder--about { background-image: linear-gradient(135deg, #16213f, #0a1024 70%), radial-gradient(circle at 30% 30%, rgba(212,175,55,.25), transparent 50%); }
.media-placeholder--office { background-image: linear-gradient(135deg, #1a2440, #0a1024 70%), radial-gradient(circle at 70% 20%, rgba(212,175,55,.2), transparent 55%); }
.media-placeholder--c1 { background-image: linear-gradient(135deg, #1c2748, #0a1024); }
.media-placeholder--c2 { background-image: linear-gradient(135deg, #20284a, #0a1024); }
.media-placeholder--c3 { background-image: linear-gradient(135deg, #182142, #0a1024); }
.media-placeholder--c4 { background-image: linear-gradient(135deg, #232c50, #0a1024); }
.media-placeholder--t1 { background-image: linear-gradient(160deg, #22304f, #0e1730); }
.media-placeholder--t2 { background-image: linear-gradient(160deg, #2a3354, #111933); }
.media-placeholder--t3 { background-image: linear-gradient(160deg, #1d2b4c, #0e1730); }
.media-placeholder--t4 { background-image: linear-gradient(160deg, #283156, #121a36); }
.team-member__photo.media-placeholder::after { display: none; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(5,10,31,.96); backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-130%); transition: transform .4s var(--ease-out);
    border-bottom: 1px solid rgba(212,175,55,.2);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links a { display: block; padding: 1rem .25rem; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav__actions .cta-button--sm { display: none; }
  /* Nav siempre visible en móvil para legibilidad del toggle */
  .sticky-nav { background: rgba(5,10,31,.6); backdrop-filter: blur(12px); }
}
@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout--equal { gap: 1.2rem; }
  .about-us .split-layout { grid-template-columns: 1fr; }
  .office-location .split-layout { display: flex; flex-direction: column-reverse; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .trust-indicators { flex-wrap: wrap; justify-content: center; row-gap: .8rem; }
  .trust__divider { display: none; }
  .carousel { grid-auto-columns: 82%; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .cta-button { width: 100%; }
}
