/* ============================================================
   IBU · Bárbara Urra — Hoja de estilos
   Paleta: azul marino institucional + acento dorado + neutros
   ============================================================ */

:root {
  --navy: #15256b;
  --navy-deep: #0e1a4d;
  --navy-800: #1b2e7d;
  --ink: #141a2e;
  --slate: #4d5c6b;        /* cuerpo secundario, más contraste */
  --slate-light: #70808f;
  --gold: #b9975b;
  --gold-dark: #a07e42;
  --bronze: #7c5c22;   /* dorado oscuro con contraste AA sobre fondos claros */
  --paper: #ffffff;
  --mist: #f5f7fb;
  --mist-2: #eef1f7;
  --line: #e2e7f0;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(16, 28, 77, .06);
  --shadow-md: 0 12px 34px rgba(16, 28, 77, .10);
  --shadow-lg: 0 24px 60px rgba(16, 28, 77, .16);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;  /* títulos: look autoritario */
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;

  /* Curvas de animación (ease-out/in-out fuertes, no los nativos débiles) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(21,37,107,.12);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Accessible focus (keyboard users) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.nav.scrolled :focus-visible { outline-color: var(--navy); }
.hero :focus-visible, .compromiso :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bronze);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold); }

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(31px, 4.1vw, 48px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section { padding: 96px 0; }
.section--alt { background: var(--mist); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__sub { color: var(--slate); font-size: 18px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--gold { background: var(--gold); color: #1a1405; box-shadow: 0 10px 24px rgba(185,151,91,.35); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
/* Press feedback (el dedo/clic recibe respuesta inmediata) */
.btn:active { transform: translateY(0) scale(.975); transition-duration: .11s; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 20px; }
.topbar__left { display: flex; gap: 26px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); transition: color .2s; }
.topbar__item:hover { color: var(--gold); }
.topbar__tag { color: rgba(255,255,255,.65); letter-spacing: .03em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21,37,107,.98);
  backdrop-filter: blur(8px);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 42px; width: auto; }
.nav__logo--dark { display: none; }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: 8px;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  margin-left: 10px;
  background: var(--gold);
  color: #1a1405 !important;
  font-weight: 600;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--gold-dark); }

/* Scrolled state: solid white nav */
.nav.scrolled { background: rgba(255,255,255,.98); box-shadow: var(--shadow-sm); }
.nav.scrolled .nav__logo--light { display: none; }
.nav.scrolled .nav__logo--dark { display: block; }
.nav.scrolled .nav__link { color: var(--ink); }
.nav.scrolled .nav__link:hover { color: var(--navy); }
.nav.scrolled .nav__link--cta { color: #1a1405 !important; }
.nav.scrolled .nav__toggle span { background: var(--navy); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: #050a1c;
  color: #fff;
  padding: 92px 0 58px;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/forensic-bg.svg") no-repeat center right;
  background-size: cover;
  pointer-events: none;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,7,19,.82) 0%, rgba(3,7,19,.42) 42%, rgba(3,7,19,0) 74%),
    linear-gradient(0deg, rgba(3,7,19,.55) 0%, rgba(3,7,19,0) 40%);
}
.hero__inner { position: relative; z-index: 2; display: flex; }

/* Glass card (transparent so the fingerprint shows through) */
.hero__card {
  max-width: 600px;
  background: linear-gradient(150deg, rgba(10,20,55,.46), rgba(5,10,28,.56));
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  border: 1px solid rgba(130,180,240,.26);
  border-radius: 22px;
  padding: 44px 46px 40px;
  box-shadow: 0 30px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero__card > * { text-shadow: 0 1px 14px rgba(3,8,22,.45); }
.hero__cardlogo { height: 40px; width: auto; margin-bottom: 22px; opacity: .96; }
.hero__eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.hero__title {
  font-family: "Fjalla One", var(--sans); font-weight: 400;
  font-size: clamp(48px, 6.8vw, 80px); line-height: 1.0; letter-spacing: .005em;
  margin-bottom: 6px;
}
.hero__role {
  font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: clamp(15px, 1.8vw, 19px); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.hero__creds {
  list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px;
}
.hero__creds li {
  position: relative; padding-left: 24px;
  font-size: 14px; line-height: 1.45; font-weight: 600; color: rgba(255,255,255,.9);
}
.hero__creds li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 11px; height: 11px; border-radius: 3px;
  background: linear-gradient(140deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 0 3px rgba(185,151,91,.18);
}
.hero__lead { font-size: 17px; color: rgba(255,255,255,.84); max-width: 540px; margin-bottom: 30px; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero__stats { list-style: none; display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; }
.hero__stats li { display: flex; flex-direction: column; font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .03em; max-width: 130px; }
.hero__stats span { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }

.hero__motto {
  position: relative; z-index: 2; text-align: center; margin-top: 44px;
  font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 500;
}

/* ============================================================
   HIGHLIGHT CARDS
   ============================================================ */
.highlights { padding: 68px 0 0; position: relative; z-index: 5; }
.highlights__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }

/* ---------- Animated wave dividers ---------- */
.wave {
  position: absolute; left: 0; width: 100%; line-height: 0; z-index: 4; pointer-events: none;
}
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; transform: scaleY(-1); }
.wave svg { display: block; width: 100%; height: 72px; }
.wave__parallax > use { animation: wave-move 14s cubic-bezier(.55,.5,.45,.5) infinite; }
.wave__parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 9s; }
.wave__parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 13s; }
.wave__parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 18s; }
.wave__parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 25s; }
@keyframes wave-move {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wave__parallax > use { animation: none; }
}
.hcard {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius); padding: 40px 32px 36px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.hcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(185,151,91,.5); }
.hcard:hover::before { transform: scaleX(1); }
.hcard__icon {
  width: 66px; height: 66px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  border: 1px solid rgba(185,151,91,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(16,28,77,.18);
}
.hcard__icon .hico { display: block; }
.hcard h3 { font-family: var(--display); font-size: 25px; color: var(--navy); font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.hcard p { color: var(--slate); font-size: 16px; }

/* ============================================================
   PERFIL
   ============================================================ */
.perfil__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.perfil__media { display: flex; justify-content: center; }
.portrait {
  position: relative; width: 100%; max-width: 400px; margin: 0;
  border-radius: 20px; padding: 14px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%, #0a1340 100%);
  box-shadow: var(--shadow-lg);
}
.portrait::before {
  content: ""; position: absolute; inset: 22px; z-index: 2;
  border: 1px solid rgba(185,151,91,.55); border-radius: 12px; pointer-events: none;
}
.portrait__ph {
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(57,150,245,.28), transparent 55%),
    url("assets/forensic-bg.svg") center/cover,
    var(--navy-deep);
  color: rgba(255,255,255,.62);
}
.portrait__ph svg { opacity: .7; }
.portrait__ph span {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,.55);
}
.portrait__ph img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 36% 22%;
}
.portrait__cap {
  text-align: center; color: var(--slate); font-size: 13px; font-weight: 500;
  letter-spacing: .02em; padding: 14px 10px 4px;
}
.perfil__badge {
  position: absolute; right: -20px; bottom: 30px; z-index: 3;
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: #1a1405; display: grid; place-items: center; align-content: center;
  font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: .9;
  box-shadow: var(--shadow-md); border: 4px solid #fff;
}
.perfil__badge small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.perfil__text .section__title { margin-bottom: 26px; }
.perfil__text p { color: var(--slate); margin-bottom: 20px; }
.perfil__text p:last-of-type { margin-bottom: 0; }
.perfil__text strong { color: var(--ink); font-weight: 600; }
.perfil__audience { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.perfil__audience-title { font-weight: 600; color: var(--navy); margin-bottom: 14px !important; }
.perfil__audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.perfil__audience li {
  background: var(--mist-2); color: var(--navy); font-weight: 500; font-size: 14.5px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
}

/* ============================================================
   ESPECIALIZACIÓN (spec list)
   ============================================================ */
.speccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.speccard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.speccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(185,151,91,.5); }
.speccard__img { background: var(--navy-deep); }
.speccard__img img { width: 100%; height: auto; display: block; }
.speccard__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.speccard__body h3 { font-family: var(--serif); font-size: 25px; color: var(--navy); font-weight: 600; margin-bottom: 12px; }
.speccard__body p { color: var(--slate); margin-bottom: 18px; font-size: 16px; }
.spec__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.spec__tags li {
  font-size: 13.5px; color: var(--navy); background: var(--mist);
  padding: 7px 15px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500;
}

/* ============================================================
   ASESORÍA A ABOGADOS Y PARTICULARES (banda destacada)
   ============================================================ */
.asesoria {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, #0a1340 100%);
  color: #fff;
}
.asesoria__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 85% 0%, rgba(185,151,91,.18), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(57,120,220,.16), transparent 70%);
}
.asesoria__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.asesoria__title { color: #fff; margin-bottom: 18px; }
.asesoria__rule {
  display: block; width: 72px; height: 3px; margin: 0 0 24px;
  border-radius: 2px; transform-origin: left center;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(231,198,126,.15) 100%);
}
.asesoria__lead { color: rgba(255,255,255,.86); font-size: 17.5px; margin-bottom: 30px; }
.asesoria__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.asesoria__list li {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(185,151,91,.28);
  border-radius: 14px; padding: 18px 18px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
/* Pasada de luz tipo escáner forense (una sola vez, al revelarse la tarjeta) */
.asesoria__list li::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -65%; width: 48%;
  background: linear-gradient(100deg, transparent, rgba(231,198,126,.28), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.asesoria__list li:hover { transform: translateY(-4px); border-color: rgba(185,151,91,.6); background: rgba(255,255,255,.08); }
.asesoria__ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(185,151,91,.14); border: 1px solid rgba(185,151,91,.4);
}
.asesoria__list strong { display: block; color: #fff; font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.asesoria__list li span:last-child { color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 960px) {
  .asesoria__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .asesoria__list { grid-template-columns: 1fr; }
}

/* ---- Desplazamiento ambiental sutil del fondo (profundidad) ---- */
.asesoria__overlay { animation: ase-drift 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes ase-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(2.2%, -1.6%, 0); }
}

/* ---- Estado inicial (solo con JS): oculto antes de la secuencia ---- */
.js .asesoria__text .eyebrow,
.js .asesoria__title,
.js .asesoria__lead,
.js .asesoria__text .btn {
  opacity: 0; transform: translateY(18px);
}
.js .asesoria__rule { transform: scaleX(0); }
.js .asesoria__list li { opacity: 0; transform: translateY(26px) scale(.97); }
.js .asesoria__ic { opacity: 0; transform: scale(.4) rotate(-8deg); }

/* ---- Secuencia orquestada al entrar en pantalla ---- */
.asesoria.is-animated .eyebrow        { animation: ase-rise .7s var(--ease-out) forwards; animation-delay: .05s; }
.asesoria.is-animated .asesoria__title{ animation: ase-rise .7s var(--ease-out) forwards; animation-delay: .13s; }
.asesoria.is-animated .asesoria__rule { animation: ase-rule .85s var(--ease-out) forwards; animation-delay: .42s; }
.asesoria.is-animated .asesoria__lead { animation: ase-rise .7s var(--ease-out) forwards; animation-delay: .24s; }
.asesoria.is-animated .asesoria__text .btn { animation: ase-rise .7s var(--ease-out) forwards; animation-delay: .36s; }

.asesoria.is-animated .asesoria__list li { animation: ase-card .7s var(--ease-out) forwards; }
.asesoria.is-animated .asesoria__list li:nth-child(1) { animation-delay: .50s; }
.asesoria.is-animated .asesoria__list li:nth-child(2) { animation-delay: .60s; }
.asesoria.is-animated .asesoria__list li:nth-child(3) { animation-delay: .70s; }
.asesoria.is-animated .asesoria__list li:nth-child(4) { animation-delay: .80s; }

.asesoria.is-animated .asesoria__ic { animation: ase-pop .55s var(--ease-out) forwards; }
.asesoria.is-animated .asesoria__list li:nth-child(1) .asesoria__ic { animation-delay: .66s; }
.asesoria.is-animated .asesoria__list li:nth-child(2) .asesoria__ic { animation-delay: .76s; }
.asesoria.is-animated .asesoria__list li:nth-child(3) .asesoria__ic { animation-delay: .86s; }
.asesoria.is-animated .asesoria__list li:nth-child(4) .asesoria__ic { animation-delay: .96s; }

.asesoria.is-animated .asesoria__list li::after { animation: ase-scan 1.05s ease forwards; }
.asesoria.is-animated .asesoria__list li:nth-child(1)::after { animation-delay: .78s; }
.asesoria.is-animated .asesoria__list li:nth-child(2)::after { animation-delay: .88s; }
.asesoria.is-animated .asesoria__list li:nth-child(3)::after { animation-delay: .98s; }
.asesoria.is-animated .asesoria__list li:nth-child(4)::after { animation-delay: 1.08s; }

@keyframes ase-rise { to { opacity: 1; transform: none; } }
@keyframes ase-rule { to { transform: scaleX(1); } }
@keyframes ase-card { to { opacity: 1; transform: none; } }
@keyframes ase-pop  { to { opacity: 1; transform: none; } }
@keyframes ase-scan {
  0%   { left: -65%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .asesoria__overlay { animation: none; }
  .js .asesoria__text .eyebrow,
  .js .asesoria__title,
  .js .asesoria__lead,
  .js .asesoria__text .btn,
  .js .asesoria__list li,
  .js .asesoria__ic { opacity: 1; transform: none; animation: none; }
  .js .asesoria__rule { transform: scaleX(1); animation: none; }
  .asesoria__list li::after { display: none; }
}

/* ============================================================
   AYUDA / QUÉ HACE UN PERITO
   ============================================================ */
.ayuda__inner { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.ayuda__media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.ayuda__lead { color: var(--slate); margin: 8px 0 26px; font-size: 17px; }
.ayuda__list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.ayuda__list li { display: flex; gap: 14px; align-items: flex-start; }
.ayuda__ic {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: 2px;
  display: grid; place-items: center; background: var(--mist-2); color: var(--navy); border: 1px solid var(--line);
}
.ayuda__list strong { display: block; color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.ayuda__list li span:last-child { color: var(--slate); font-size: 14.5px; line-height: 1.5; }
.ayuda__closing {
  color: var(--slate); font-size: 16px; margin-bottom: 26px;
  padding: 18px 22px; background: var(--mist); border-left: 3px solid var(--gold); border-radius: 10px;
}
.ayuda__closing strong { color: var(--navy); }

/* ============================================================
   CATÁLOGO DE SERVICIOS
   ============================================================ */
.catalogo__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }

.svc {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px 32px; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(185,151,91,.5); }
.svc:hover::before { transform: scaleX(1); }

.svc__num {
  position: absolute; top: 14px; right: 24px; z-index: 0;
  font-family: var(--serif); font-weight: 700; font-size: 70px; line-height: 1;
  color: var(--mist-2); letter-spacing: -0.03em; pointer-events: none;
}
.svc__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; min-height: 56px; }
.svc__icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
  border: 1px solid rgba(185,151,91,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(16,28,77,.18);
}
.svc__title { font-family: var(--display); font-size: 22px; line-height: 1.18; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }
.svc__desc { position: relative; z-index: 1; color: var(--slate); font-size: 16px; margin-bottom: 20px; }
.svc__points { position: relative; z-index: 1; list-style: none; display: grid; gap: 11px; }
.svc__points li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.svc__check { flex: none; margin-top: 1px; }

/* Tarjeta CTA (cierre del catálogo) */
.svc--cta {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 70%, #0a1340 100%);
  border-color: transparent; color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.svc--cta::before { display: none; }
.svc--cta:hover { border-color: rgba(185,151,91,.5); }
.svc--cta .svc__title { color: #fff; font-size: 27px; }
.svc--cta p { color: rgba(255,255,255,.82); font-size: 16px; }
.svc__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Franja de valores */
.catalogo__values {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 40px;
}
.catalogo__values li {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--navy); background: var(--mist-2); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px;
}

/* ============================================================
   INSTITUCIONES (ticker horizontal)
   ============================================================ */
.instituciones { overflow: hidden; }
.instituciones__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.ticker {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.inst {
  flex: none; margin-right: 22px;
  width: 244px; height: 124px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm); text-align: center; padding: 14px 20px;
  filter: grayscale(0.15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}
.inst:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(185,151,91,.5); filter: none; }
.inst__logo {
  max-height: 44px; max-width: 160px; width: auto; object-fit: contain; margin-bottom: 2px;
}
.inst__name {
  font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.1;
  letter-spacing: .2px;
}
.inst__sub {
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  color: var(--slate-light);
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* ============================================================
   COMPROMISO (quote band)
   ============================================================ */
.compromiso {
  position: relative;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, #0a1340 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.compromiso__overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(600px 300px at 50% 0%, rgba(185,151,91,.16), transparent 70%);
  pointer-events: none;
}
.compromiso__inner { position: relative; max-width: 820px; margin: 0 auto; }
.compromiso__quote {
  font-family: var(--display); font-size: clamp(23px, 4.5vw, 44px); font-weight: 600;
  line-height: 1.18; margin: 10px 0 26px; color: #fff;
}
.compromiso__text { color: rgba(255,255,255,.82); font-size: 17.5px; }
.compromiso__values { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.compromiso__values span {
  font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--gold); border: 1px solid rgba(185,151,91,.4); padding: 9px 20px; border-radius: 999px;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacto__lead { color: var(--slate); margin: 6px 0 28px; font-size: 17px; }
.contacto__list { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.contacto__list li { display: flex; align-items: center; gap: 16px; }
.contacto__ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--mist-2); color: var(--navy);
  border: 1px solid var(--line);
}
.contacto__list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-light); font-weight: 600; }
.contacto__list a, .contacto__list span { color: var(--ink); font-weight: 500; font-size: 16.5px; }
.contacto__list a:hover { color: var(--gold-dark); }
.contacto__wa { margin-top: 4px; }

.contacto__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--mist); transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 4px rgba(185,151,91,.12);
}
.contacto__form .btn { grid-column: span 2; }
.form__note { grid-column: span 2; font-size: 14.5px; text-align: center; min-height: 20px; margin-top: -4px; }
.form__note.ok { color: #1a7a4f; font-weight: 600; }
.form__note.err { color: #b4232a; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding: 64px 24px 48px; }
.footer__brand img { height: 46px; margin-bottom: 18px; }
.footer__brand p { font-size: 15px; max-width: 360px; color: rgba(255,255,255,.62); }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a, .footer__contact span { color: rgba(255,255,255,.72); font-size: 15px; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__motto { letter-spacing: .14em; text-transform: uppercase; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   POPUP DE BIENVENIDA (modal)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,10,28,.68); backdrop-filter: blur(3px);
  animation: modal-fade .3s ease forwards;
}
.modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: #fff; border-radius: 20px; padding: 40px 36px 32px; text-align: center;
  box-shadow: 0 30px 80px rgba(5,10,28,.5);
  border-top: 5px solid var(--gold);
  animation: modal-pop .4s var(--ease-out) forwards;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--slate);
  background: var(--mist-2); transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--line); color: var(--navy); }
.modal__logo { height: 42px; width: auto; margin: 0 auto 18px; }
.modal__eyebrow {
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: var(--bronze); margin-bottom: 8px;
}
.modal__title {
  font-family: var(--display); font-weight: 700; font-size: 29px; line-height: 1.12;
  color: var(--navy); margin-bottom: 14px; letter-spacing: -0.01em;
}
.modal__text { color: var(--slate); font-size: 15.5px; margin-bottom: 20px; }
.modal__mail {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  font-weight: 700; font-size: 15.5px; color: var(--navy);
  background: var(--mist); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; transition: border-color .2s, color .2s, background .2s;
}
.modal__mail:hover { border-color: var(--gold); color: var(--gold-dark); background: #fff; }
.modal__mail svg { color: var(--gold-dark); }
.modal__cta { width: 100%; justify-content: center; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__card { animation: none; }
}

/* ============================================================
   ENTRADA DEL HERO (al cargar, escalonada)
   ============================================================ */
.hero__card > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in .7s var(--ease-out) forwards;
  animation-delay: calc(.12s + var(--i, 0) * .09s);
}
.hero__card > *:nth-child(1) { --i: 0; }
.hero__card > *:nth-child(2) { --i: 1; }
.hero__card > *:nth-child(3) { --i: 2; }
.hero__card > *:nth-child(4) { --i: 3; }
.hero__card > *:nth-child(5) { --i: 4; }
.hero__card > *:nth-child(6) { --i: 5; }
.hero__card > *:nth-child(7) { --i: 6; }
.hero__card > *:nth-child(8) { --i: 7; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ============================================================
   REVEAL AL HACER SCROLL  (tarjetas, textos, medios)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* Medios laterales: entran desde un costado para dar dirección */
.perfil__media.reveal, .ayuda__media.reveal { transform: translateY(26px) translateX(-22px); }
.contacto__form.reveal { transform: translateY(26px) translateX(18px); }
.perfil__media.reveal.is-visible,
.ayuda__media.reveal.is-visible,
.contacto__form.reveal.is-visible { transform: none; }

/* ============================================================
   CASILLAS / CHECKLIST  (se rellenan cuando aparece la tarjeta)
   ============================================================ */
.js .svc__points li,
.js .spec__tags li,
.js .catalogo__values li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
}
/* El check en círculo entra con un pequeño "pop" */
.js .svc__check { transform: scale(.4); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s ease; }

.svc.is-visible .svc__points li,
.speccard.is-visible .spec__tags li,
.catalogo__values.is-visible li { opacity: 1; transform: none; }
.svc.is-visible .svc__check { transform: scale(1); opacity: 1; }

/* Escalonado de las casillas dentro de cada tarjeta */
.svc.is-visible .svc__points li:nth-child(1) { transition-delay: .18s; }
.svc.is-visible .svc__points li:nth-child(2) { transition-delay: .25s; }
.svc.is-visible .svc__points li:nth-child(3) { transition-delay: .32s; }
.svc.is-visible .svc__points li:nth-child(4) { transition-delay: .39s; }
.svc.is-visible .svc__points li:nth-child(5) { transition-delay: .46s; }
.svc.is-visible .svc__check { transition-delay: calc(.14s + var(--c, 0) * .07s); }
.svc__points li:nth-child(1) .svc__check { --c: 1; }
.svc__points li:nth-child(2) .svc__check { --c: 2; }
.svc__points li:nth-child(3) .svc__check { --c: 3; }
.svc__points li:nth-child(4) .svc__check { --c: 4; }
.svc__points li:nth-child(5) .svc__check { --c: 5; }
.speccard.is-visible .spec__tags li:nth-child(1) { transition-delay: .14s; }
.speccard.is-visible .spec__tags li:nth-child(2) { transition-delay: .2s; }
.speccard.is-visible .spec__tags li:nth-child(3) { transition-delay: .26s; }
.speccard.is-visible .spec__tags li:nth-child(4) { transition-delay: .32s; }

/* Hover sutil en casillas/tags (solo punteros finos) */
@media (hover: hover) and (pointer: fine) {
  .spec__tags li, .perfil__audience li, .catalogo__values li {
    transition: opacity .42s var(--ease-out), transform .2s var(--ease-out),
                background .2s ease, border-color .2s ease, color .2s ease;
  }
  .spec__tags li:hover, .perfil__audience li:hover, .catalogo__values li:hover {
    transform: translateY(-2px);
    border-color: rgba(185,151,91,.55);
    color: var(--gold-dark);
  }
}

/* ============================================================
   LINE-ART DE LAS TARJETAS  (se dibuja al aparecer)
   ============================================================ */
.speccard__art {
  display: block; width: 100%; height: auto;
  background: linear-gradient(158deg, #12235c 0%, #0a1740 55%, #070f2b 100%);
}
/* Estado inicial oculto solo con JS activo (si no, se ve el dibujo completo) */
.js .speccard__art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .speccard__art .pop  { opacity: 0; transform: scale(.5); transform-box: fill-box; transform-origin: center; }
.js .speccard__art .fade { opacity: 0; }

.speccard.is-visible .speccard__art .draw {
  animation: art-draw 1.2s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--o, 0) * .11s);
}
.speccard.is-visible .speccard__art .pop {
  animation: art-pop .5s var(--ease-out) forwards;
  animation-delay: calc(.85s + var(--o, 0) * .12s);
}
.speccard.is-visible .speccard__art .fade {
  animation: art-fade .7s ease forwards; animation-delay: .95s;
}
@keyframes art-draw { to { stroke-dashoffset: 0; } }
@keyframes art-pop  { to { opacity: 1; transform: none; } }
@keyframes art-fade { to { opacity: 1; } }

/* ============================================================
   DERIVA LENTA DEL FONDO DEL HERO (profundidad sutil)
   ============================================================ */
.hero__bg { animation: hero-drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.4%, -1.2%, 0); }
}

/* ============================================================
   REDUCED MOTION  (comprensión sin movimiento)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__card > * { animation: none; opacity: 1; transform: none; }
  .reveal, .perfil__media.reveal, .ayuda__media.reveal, .contacto__form.reveal {
    transition: opacity .4s ease; transform: none;
  }
  .svc__points li, .spec__tags li,
  .catalogo__values li, .svc__check { transition: opacity .3s ease; transform: none; }
  .btn:active { transform: none; }
  .speccard__art .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .speccard__art .pop, .speccard__art .fade { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__bg { animation: none; transform: scale(1.06); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__bg { background-position: center right -120px; opacity: .85; }
  .hero__card { max-width: 100%; }
  .perfil__inner, .contacto__inner, .ayuda__inner { grid-template-columns: 1fr; gap: 40px; }
  .catalogo__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .perfil__media { order: -1; }
  .ayuda__media { max-width: 480px; margin: 0 auto; }
  .highlights__grid { grid-template-columns: 1fr; }
  .speccards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__tag { display: none; }
  .topbar__left { gap: 16px; }
  .topbar__item span { display: none; }
  .section { padding: 68px 0; }
  .hero__card { padding: 32px 24px 30px; border-radius: 16px; }
  .hero__stats { gap: 20px; }

  .nav__menu {
    position: fixed; inset: 118px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .35s ease; z-index: 99;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__link { color: var(--ink); padding: 15px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: 14px 0 0; text-align: center; border-radius: 10px; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__stats { gap: 24px; }
  .hero__stats span { font-size: 34px; }
  /* Títulos largos de disciplina/servicio: evitar 3 líneas en pantallas chicas */
  .svc__title { font-size: 20px; }
  .speccard__body h3 { font-size: 22px; }
  .svc__title, .speccard__body h3, .hcard h3 { overflow-wrap: break-word; }
  .contacto__form { grid-template-columns: 1fr; padding: 26px; }
  .field--half { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
}
