/* ==========================================================================
   GMA Abogados — Sistema de diseño
   Concepto: "Claridad en medio de la incertidumbre"
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta institucional */
  --purple: #3A296F;
  --deep: #21163E;
  --deep-2: #1A1133;
  --cyan: #65B4C5;
  --electric: #210376;
  --electric-lift: #2A0A93;
  --warm: #F8F7FB;
  --ink: #17131F;

  /* Derivados */
  --ink-70: rgba(23, 19, 31, 0.72);
  --ink-55: rgba(23, 19, 31, 0.56);
  --on-dark: #F4F2FA;
  --on-dark-70: rgba(244, 242, 250, 0.74);
  --on-dark-50: rgba(244, 242, 250, 0.52);
  --line-light: rgba(23, 19, 31, 0.10);
  --line-dark: rgba(244, 242, 250, 0.14);
  --cyan-soft: rgba(101, 180, 197, 0.16);

  /* Tipografía */
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.35rem, 1.35rem + 4.4vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 1.15rem + 2.7vw, 3.15rem);
  --fs-h3: clamp(1.2rem, 1.02rem + 0.75vw, 1.6rem);
  --fs-lead: clamp(1.02rem, 0.96rem + 0.4vw, 1.24rem);
  --fs-body: clamp(0.97rem, 0.94rem + 0.16vw, 1.06rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.76rem;

  /* Espaciado y forma */
  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(4.5rem, 8vw, 8.5rem);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow-sm: 0 2px 10px rgba(33, 22, 62, 0.06);
  --shadow-md: 0 18px 40px -22px rgba(33, 22, 62, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(33, 22, 62, 0.55);
  --shadow-glow: 0 18px 44px -18px rgba(33, 3, 118, 0.65);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 74px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.018em; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Utilidades de layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--warm); color: var(--ink); padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Superficies */
.surface-dark {
  background: var(--deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: #fff; }
.surface-light { background: var(--warm); color: var(--ink); }
.surface-white { background: #fff; color: var(--ink); }

/* Malla de puntos + auroras para fondos premium */
.surface-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 242, 250, 0.10) 1px, transparent 0);
  background-size: 34px 34px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.aurora--purple { background: radial-gradient(circle, var(--purple), transparent 68%); }
.aurora--cyan { background: radial-gradient(circle, rgba(101, 180, 197, 0.55), transparent 68%); }
.aurora--electric { background: radial-gradient(circle, rgba(42, 10, 147, 0.8), transparent 70%); }
.surface-dark > .container, .section > .container { position: relative; z-index: 1; }

/* ---------- 4. Tipografía de secciones ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple); margin: 0 0 1.1rem;
}
.surface-dark .eyebrow { color: var(--cyan); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7;
}
.eyebrow--dot::before {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: 1;
}
.h2 { font-size: var(--fs-h2); font-weight: 600; }
.display-serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.display-serif em { font-style: italic; color: var(--cyan); }
.lead {
  font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-70);
  max-width: 62ch;
}
.surface-dark .lead,
.hero .lead,
.page-hero .lead { color: var(--on-dark-70); }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero .h2, .page-hero h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- 5. Botones ---------- */
.btn {
  --btn-bg: var(--electric);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.96rem; letter-spacing: -0.005em;
  cursor: pointer; text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative; overflow: hidden;
  min-height: 48px;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--electric-lift) 0%, var(--electric) 58%, #150250 100%);
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-color: rgba(101, 180, 197, 0.35);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(101, 180, 197, 0.45), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 22px 52px -16px rgba(33, 3, 118, 0.8); }

.btn--ghost {
  background: transparent; color: var(--on-dark);
  border-color: rgba(101, 180, 197, 0.5);
}
.btn--ghost:hover { background: var(--cyan-soft); border-color: var(--cyan); }
.surface-light .btn--ghost, .surface-white .btn--ghost { color: var(--purple); border-color: rgba(58, 41, 111, 0.28); }
.surface-light .btn--ghost:hover, .surface-white .btn--ghost:hover { background: rgba(58, 41, 111, 0.06); border-color: var(--purple); }

.btn--light { background: #fff; color: var(--deep); box-shadow: var(--shadow-md); }
.btn--light:hover { background: var(--warm); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--purple); font-size: 0.95rem;
}
.surface-dark .link-arrow { color: var(--cyan); }
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease), height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(26, 17, 51, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-dark);
  height: 64px;
}
.header__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.brand img {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.35s var(--ease);
}
.header.is-stuck .brand img { height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  padding: 0.55rem 0.8rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; color: var(--on-dark-70);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header__cta { margin-left: 0.6rem; padding: 0.7rem 1.25rem; min-height: 42px; font-size: 0.9rem; }

.nav-toggle {
  margin-left: auto; display: none;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 19px; height: 1.5px; background: #fff; border-radius: 2px;
  position: relative; transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 1.5px;
  background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(26, 17, 51, 0.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line-dark);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 0.95rem 0.5rem; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
  .header__cta { margin: 1.2rem 0 0; width: 100%; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  background: linear-gradient(165deg, var(--deep-2) 0%, var(--deep) 45%, #241a47 100%);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr); align-items: center; }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  border: 1px solid rgba(101, 180, 197, 0.32);
  background: rgba(101, 180, 197, 0.09);
  border-radius: 100px; font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1.6rem;
}
.hero__badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(101, 180, 197, 0.7);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(101, 180, 197, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(101, 180, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 180, 197, 0); }
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  margin-bottom: 1.3rem; color: #fff;
  max-width: 16ch; text-wrap: balance;
}
.hero h1 .accent {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  letter-spacing: -0.005em;
  background: linear-gradient(100deg, var(--cyan) 10%, #a8dbe6 60%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;
}
.hero .lead { max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.2rem; }
.hero__note {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: var(--fs-small); color: var(--on-dark-50); max-width: 46ch;
}
.hero__note svg { flex: none; margin-top: 3px; color: var(--cyan); }

/* Escena SVG de ruta Chile ↔ España */
.route-scene {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.55;
  mask-image: linear-gradient(100deg, transparent 0%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 38%, #000 100%);
}
.route-scene svg { width: 100%; height: 100%; }
.route-path {
  fill: none; stroke: rgba(101, 180, 197, 0.55); stroke-width: 1.4;
  stroke-dasharray: 6 9; stroke-linecap: round;
  animation: dash 26s linear infinite;
}
.route-path--faint { stroke: rgba(244, 242, 250, 0.16); stroke-dasharray: 3 12; animation-duration: 40s; }
@keyframes dash { to { stroke-dashoffset: -420; } }
.route-node { fill: var(--cyan); }
.route-node--halo { fill: none; stroke: rgba(101, 180, 197, 0.4); stroke-width: 1; }

/* Tarjeta del formulario */
.hero__form-card {
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--ink);
  position: relative;
}
.hero__form-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(150deg, rgba(101, 180, 197, 0.7), transparent 40%, rgba(42, 10, 147, 0.35));
  z-index: -1;
}
.form-card__head { margin-bottom: 1.35rem; }
.form-card__head h2 { font-size: 1.32rem; margin-bottom: 0.35rem; letter-spacing: -0.02em; }
.form-card__head p { font-size: var(--fs-small); color: var(--ink-55); }

/* ---------- 8. Formularios ---------- */
.field { margin-bottom: 0.95rem; }
.field > label {
  display: block; font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-55);
  margin-bottom: 0.4rem;
}
.control {
  width: 100%; padding: 0.85rem 1rem; min-height: 50px;
  border: 1px solid rgba(23, 19, 31, 0.14);
  border-radius: 12px; background: #fff;
  font-size: 0.97rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.control::placeholder { color: rgba(23, 19, 31, 0.34); }
.control:hover { border-color: rgba(23, 19, 31, 0.26); }
.control:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(101, 180, 197, 0.22);
}
select.control {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2317131F' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field--phone .phone-row { display: flex; gap: 0.5rem; }
.field--phone .phone-row .control:first-child { flex: 0 0 108px; }
.field--phone .phone-row .control:last-child { flex: 1 1 auto; }

/* Selector de ruta Chile / España */
.route-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.route-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.route-toggle label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; padding: 0.7rem 0.5rem; min-height: 62px;
  border: 1px solid rgba(23, 19, 31, 0.14); border-radius: 12px;
  cursor: pointer; text-align: center;
  transition: all 0.22s var(--ease); background: #fff;
}
.route-toggle label .flag { font-size: 1.15rem; line-height: 1; }
.route-toggle label .txt { font-size: 0.87rem; font-weight: 600; }
.route-toggle label:hover { border-color: rgba(58, 41, 111, 0.4); }
.route-toggle input:checked + label {
  border-color: var(--purple); background: rgba(58, 41, 111, 0.06);
  box-shadow: 0 0 0 3px rgba(101, 180, 197, 0.2);
}
.route-toggle input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }

.consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.78rem; color: var(--ink-55); line-height: 1.5;
  margin: 0.9rem 0 1.1rem;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--purple); flex: none; }
.consent a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }

.form-error {
  display: none; font-size: 0.8rem; color: #b3261e; margin-top: 0.35rem; font-weight: 500;
}
.field.has-error .control { border-color: #b3261e; }
.field.has-error .form-error { display: block; }
.form-status {
  margin-top: 0.9rem; padding: 0.85rem 1rem; border-radius: 12px;
  background: rgba(101, 180, 197, 0.14); border: 1px solid rgba(101, 180, 197, 0.4);
  font-size: 0.86rem; display: none;
}
.form-status.is-visible { display: block; }
.form-foot {
  margin-top: 0.85rem; font-size: 0.75rem; color: var(--ink-55);
  display: flex; align-items: center; gap: 0.45rem; justify-content: center;
}
.form-foot svg { color: var(--purple); flex: none; }

/* ---------- 9. Franja de confianza ---------- */
.trust {
  background: linear-gradient(180deg, #241a47 0%, var(--deep) 100%);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark);
  padding-block: clamp(2.4rem, 4vw, 3.4rem);
  position: relative; overflow: hidden;
}
.trust__grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { position: relative; padding-left: 1.15rem; }
.trust__item::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(101, 180, 197, 0));
  border-radius: 2px;
}
.trust__num {
  font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1; color: #fff; display: block; margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.trust__num .plus { color: var(--cyan); }
.trust__label { font-size: 0.86rem; color: var(--on-dark-70); line-height: 1.45; }
.trust__icon { color: var(--cyan); margin-bottom: 0.55rem; }
.trust__title { font-size: 0.98rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }

/* ---------- 10. Tarjetas de ruta ---------- */
.routes { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (min-width: 900px) { .routes { grid-template-columns: 1fr 1fr; } }
.route-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.route-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(58, 41, 111, 0.25); }
.route-card--dark {
  background: linear-gradient(160deg, var(--purple) 0%, var(--deep) 70%);
  color: var(--on-dark); border-color: rgba(101, 180, 197, 0.22);
}
.route-card--dark h3 { color: #fff; }
.route-card__glow {
  position: absolute; width: 320px; height: 320px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(101, 180, 197, 0.35), transparent 65%);
  filter: blur(30px); pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease);
  opacity: 0.75;
}
.route-card:hover .route-card__glow { transform: scale(1.25) translate(-16px, 16px); opacity: 1; }
.route-card__media {
  position: relative; margin: calc(-1 * clamp(1.6rem, 3vw, 2.6rem));
  margin-bottom: clamp(1.3rem, 2.4vw, 1.9rem);
  aspect-ratio: 16 / 7; overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.route-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(0.72);
}
.route-card:hover .route-card__media img { transform: scale(1.08); filter: saturate(0.95); }
.route-card__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 22, 62, 0.12) 0%, rgba(33, 22, 62, 0.3) 55%, rgba(255, 255, 255, 0.94) 100%),
    linear-gradient(120deg, rgba(58, 41, 111, 0.5), rgba(101, 180, 197, 0.16));
}
.route-card--dark .route-card__media::after {
  background:
    linear-gradient(180deg, rgba(26, 17, 51, 0.18) 0%, rgba(26, 17, 51, 0.5) 50%, rgba(48, 34, 96, 0.97) 100%),
    linear-gradient(120deg, rgba(33, 3, 118, 0.5), rgba(101, 180, 197, 0.18));
}
.route-card__place {
  position: absolute; z-index: 1; left: clamp(1.1rem, 2.4vw, 1.7rem); top: 0.9rem;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.88);
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.route-card__place::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 180, 197, 0.3);
}
.route-card__tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 1rem;
}
.route-card--dark .route-card__tag { color: var(--cyan); }
.route-card h3 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.05rem); letter-spacing: -0.025em; margin-bottom: 0.7rem; }
.route-card > p { color: var(--ink-70); margin-bottom: 1.4rem; }
.route-card--dark > p { color: var(--on-dark-70); }
.route-card__list { display: grid; gap: 0.55rem; margin-bottom: 1.8rem; }
@media (min-width: 520px) { .route-card__list { grid-template-columns: 1fr 1fr; } }
.route-card__list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.92rem; color: var(--ink-70);
}
.route-card--dark .route-card__list li { color: var(--on-dark-70); }
.route-card__list li::before {
  content: ""; flex: none; margin-top: 0.52em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 180, 197, 0.18);
}
.route-card__foot { margin-top: auto; }

/* ---------- 11. Chips "¿Qué necesitas resolver?" ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.8rem 1.15rem; min-height: 52px;
  border-radius: 100px; border: 1px solid var(--line-light);
  background: #fff; color: var(--ink);
  font-size: 0.94rem; font-weight: 500; cursor: pointer;
  transition: all 0.25s var(--ease); text-align: left;
  box-shadow: var(--shadow-sm);
}
.chip__ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(101, 180, 197, 0.16); color: var(--purple);
  transition: all 0.25s var(--ease);
}
.chip:hover {
  border-color: var(--purple); transform: translateY(-3px);
  box-shadow: var(--shadow-md); color: var(--purple);
}
.chip:hover .chip__ico { background: var(--purple); color: #fff; }
.chip.is-active { border-color: var(--purple); background: rgba(58, 41, 111, 0.05); color: var(--purple); }

/* ---------- 12. Escena documentos → ruta clara ---------- */
.clarity { position: relative; }
.clarity__grid { display: grid; gap: clamp(2.2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 940px) { .clarity__grid { grid-template-columns: 1fr 1fr; } }
.docs-scene {
  position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%;
  margin-inline: auto;
}
.doc {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 46%; height: 22%;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(244, 242, 250, 0.2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 1.1s var(--ease-out), opacity 0.8s var(--ease), border-color 0.8s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 0 14px;
  opacity: 0.55;
}
.doc span {
  display: block; height: 3px; border-radius: 3px;
  background: rgba(244, 242, 250, 0.35);
}
.doc span:nth-child(1) { width: 62%; }
.doc span:nth-child(2) { width: 88%; }
.doc span:nth-child(3) { width: 40%; background: rgba(101, 180, 197, 0.7); }
.clarity.is-ordered .doc {
  --x: 0px;
  transform: translate(-50%, -50%) translateY(var(--ty)) rotate(0deg) scale(0.96);
  opacity: 1; border-color: rgba(101, 180, 197, 0.42);
}
.docs-scene__line {
  position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px; z-index: 2;
  transform: translateX(-50%) scaleY(0); transform-origin: top;
  background: linear-gradient(180deg, transparent, var(--cyan) 16%, var(--cyan) 84%, transparent);
  box-shadow: 0 0 16px rgba(101, 180, 197, 0.75);
  transition: transform 1.2s var(--ease-out) 0.35s;
  opacity: 0.85;
}
.clarity.is-ordered .docs-scene__line { transform: translateX(-50%) scaleY(1); }
.docs-scene__label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-50); font-weight: 600;
  opacity: 0; transition: opacity 0.6s var(--ease) 1s;
}
.docs-scene__label--top { top: 0; }
.docs-scene__label--bottom { bottom: 0; }
.clarity.is-ordered .docs-scene__label { opacity: 1; }
.clarity__list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.clarity__list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.clarity__list .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(101, 180, 197, 0.5); color: var(--cyan);
  font-size: 0.78rem; font-weight: 700;
}
.clarity__list strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.15rem; }
.clarity__list p { font-size: 0.92rem; color: var(--on-dark-70); }

/* ---------- 12b. Protocolo LEX-60 ---------- */
.lex__grid { display: grid; gap: clamp(2.2rem, 4vw, 3.8rem); align-items: center; }
@media (min-width: 960px) { .lex__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.lex__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.5rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(101, 180, 197, 0.35);
  background: rgba(101, 180, 197, 0.1);
  border-radius: 100px; color: var(--cyan);
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.lex__badge .tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--deep);
}
.lex__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.lex__note {
  margin-top: 1.4rem; font-size: 0.83rem; color: var(--on-dark-50);
  display: flex; gap: 0.55rem; align-items: flex-start; max-width: 52ch;
}
.lex__note svg { color: var(--cyan); flex: none; margin-top: 3px; }

.lex__panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(101, 180, 197, 0.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.lex__headline {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding-bottom: 1.3rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-dark);
}
.lex__num {
  font-family: var(--font-display); line-height: 0.85;
  font-size: clamp(3.6rem, 2rem + 7vw, 5.6rem);
  background: linear-gradient(150deg, #a8dbe6, var(--cyan) 60%, #4e97a8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lex__num-label { font-size: 0.95rem; color: var(--on-dark-70); line-height: 1.3; }
.lex__num-label strong { display: block; color: #fff; font-weight: 600; }

.lex-steps { display: grid; gap: 0; }
.lex-step { display: grid; grid-template-columns: 26px 1fr; gap: 0.9rem; position: relative; }
.lex-step__marker { position: relative; display: flex; justify-content: center; }
.lex-step__dot {
  width: 13px; height: 13px; border-radius: 50%; margin-top: 5px; z-index: 1;
  border: 2px solid rgba(244, 242, 250, 0.35); background: var(--deep);
  transition: all 0.4s var(--ease);
}
.lex-step__line {
  position: absolute; top: 18px; bottom: -6px; left: 50%; width: 2px;
  transform: translateX(-50%);
  background: rgba(244, 242, 250, 0.18);
}
.lex-step:last-child .lex-step__line { display: none; }
.lex-step--wait .lex-step__line {
  background: repeating-linear-gradient(180deg, rgba(244, 242, 250, 0.3) 0 4px, transparent 4px 9px);
}
.lex-step--action .lex-step__dot {
  border-color: var(--cyan); background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(101, 180, 197, 0.15);
}
.lex-step--action .lex-step__line { background: var(--cyan); opacity: 0.75; }
.lex-step__body { padding-bottom: 1.5rem; }
.lex-step__body strong { display: block; color: #fff; font-size: 0.97rem; font-weight: 600; }
.lex-step__body p { font-size: 0.86rem; color: var(--on-dark-50); margin: 0.2rem 0 0; }
.lex-step__chip {
  display: inline-block; margin-top: 0.5rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--deep); background: var(--cyan);
  border-radius: 100px; padding: 0.25rem 0.7rem;
}
.lex-step--wait .lex-step__body strong { color: var(--on-dark-70); }

/* Tarjeta de servicio destacada como Protocolo LEX-60 */
.svc.svc--lex {
  border-color: rgba(101, 180, 197, 0.55);
  background: linear-gradient(160deg, rgba(101, 180, 197, 0.1), rgba(42, 10, 147, 0.05)), #fff;
}
.svc.svc--lex::after { transform: scaleX(1); }
.svc--lex .svc__ico {
  background: linear-gradient(140deg, var(--purple), var(--electric));
  color: #fff;
}
.svc__badge {
  align-self: flex-start; margin-bottom: 0.7rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--deep);
  background: var(--cyan); border-radius: 100px; padding: 0.24rem 0.65rem;
}

/* Aviso destacado dentro de las páginas interiores */
.lex-callout {
  display: grid; gap: 1.2rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(42, 10, 147, 0.16), rgba(101, 180, 197, 0.1));
  border: 1px solid rgba(101, 180, 197, 0.35);
  margin-top: 2rem;
}
@media (min-width: 780px) { .lex-callout { grid-template-columns: 1fr auto; gap: 2rem; } }
.lex-callout h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.lex-callout p { font-size: 0.9rem; color: var(--ink-70); margin: 0; }
.surface-dark .lex-callout p { color: var(--on-dark-70); }
.lex-callout .btn { white-space: nowrap; }
.lex-callout__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- 13. Servicios ---------- */
.svc-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  position: relative; overflow: hidden;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line-light);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(58, 41, 111, 0.2); }
.svc:hover::after { transform: scaleX(1); }
.svc__ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(101, 180, 197, 0.22), rgba(58, 41, 111, 0.12));
  color: var(--purple);
}
.svc h3 { font-size: 1.06rem; margin-bottom: 0.45rem; letter-spacing: -0.015em; }
.svc p { font-size: 0.9rem; color: var(--ink-70); margin-bottom: 1rem; }
.svc ul { display: grid; gap: 0.35rem; margin-top: auto; }
.svc ul li { font-size: 0.85rem; color: var(--ink-55); padding-left: 0.95rem; position: relative; }
.svc ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
}
.svc--dark { background: rgba(255, 255, 255, 0.045); border-color: var(--line-dark); }
.svc--dark h3 { color: #fff; }
.svc--dark p { color: var(--on-dark-70); }
.svc--dark ul li { color: var(--on-dark-50); }
.svc--dark .svc__ico { color: var(--cyan); background: rgba(101, 180, 197, 0.14); }
.svc--dark:hover { border-color: rgba(101, 180, 197, 0.4); }

/* ---------- 14. Diferenciadores ---------- */
.diff-grid { display: grid; gap: 1px; background: var(--line-light); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-light); }
@media (min-width: 700px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }
.diff {
  background: #fff; padding: 1.8rem 1.6rem;
  transition: background 0.3s var(--ease);
  position: relative;
}
.diff:hover { background: #fbfaff; }
.diff__n {
  font-family: var(--font-display); font-size: 1.5rem; color: rgba(58, 41, 111, 0.3);
  display: block; margin-bottom: 0.7rem; line-height: 1;
}
.diff h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.diff p { font-size: 0.9rem; color: var(--ink-70); margin: 0; }

/* ---------- 15. Cómo trabajamos (timeline) ---------- */
.steps { position: relative; }
.steps__track {
  position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px;
  background: rgba(244, 242, 250, 0.12); border-radius: 2px;
}
.steps__progress {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(101, 180, 197, 0.25));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s linear;
}
.steps__list { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.step { display: flex; gap: 1.3rem; align-items: flex-start; position: relative; }
.step__dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--deep); border: 1px solid rgba(101, 180, 197, 0.4);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--cyan);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step.is-active .step__dot {
  background: var(--cyan); color: var(--deep); border-color: var(--cyan);
  box-shadow: 0 0 0 6px rgba(101, 180, 197, 0.14);
}
.step__body { padding-top: 0.25rem; }
.step__body h3 { font-size: 1.14rem; margin-bottom: 0.35rem; }
.step__body p { color: var(--on-dark-70); font-size: 0.94rem; max-width: 60ch; }
.step__meta {
  display: inline-block; margin-top: 0.6rem; font-size: var(--fs-micro);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(101, 180, 197, 0.3); border-radius: 100px;
  padding: 0.25rem 0.7rem;
}
@media (min-width: 1000px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .steps__track { left: 12px; right: 12px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps__progress { transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cyan), rgba(101, 180, 197, 0.25)); }
  .step { flex-direction: column; gap: 1.1rem; }
}

/* ---------- 15b. Agenda (LatePoint incrustado) ---------- */
.booking {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Selector de servicio, cuando hay más de un calendario disponible */
.booking-picker {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  padding: 1.1rem clamp(1.1rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--line-light);
  background: #fff;
}
.booking-picker__tab {
  border: 1px solid var(--line-light); background: #fff; cursor: pointer;
  border-radius: 100px; padding: 0.6rem 1.15rem; min-height: 44px;
  font-size: 0.87rem; font-weight: 600; color: var(--ink-55);
  transition: all 0.25s var(--ease);
}
.booking-picker__tab:hover { border-color: var(--purple); color: var(--purple); }
.booking-picker__tab.is-active {
  background: var(--purple); border-color: var(--purple); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(58, 41, 111, 0.6);
}

.booking__frame-wrap { position: relative; min-height: 640px; }
.booking__frame { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 640px) { .booking__frame { height: 640px; } }
.booking__loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #fff; transition: opacity 0.4s var(--ease), visibility 0.4s;
  z-index: 1;
}
.booking__frame-wrap.is-ready .booking__loader { opacity: 0; visibility: hidden; }
.booking__loader-inner { display: grid; gap: 0.9rem; justify-items: center; text-align: center; padding: 1.5rem; }
.booking__spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid rgba(58, 41, 111, 0.15); border-top-color: var(--purple);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.booking__loader p { font-size: 0.88rem; color: var(--ink-55); margin: 0; }

/* Estado sin configurar / de respaldo */
.booking__fallback {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.1rem; justify-items: center; text-align: center;
}
.booking__fallback h3 { font-size: 1.2rem; margin: 0; }
.booking__fallback p { font-size: 0.93rem; color: var(--ink-70); margin: 0; max-width: 48ch; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 0.5rem; }

.booking-note {
  margin-top: 1.1rem; font-size: 0.82rem; color: var(--ink-55);
  display: flex; gap: 0.5rem; align-items: flex-start; justify-content: center;
}
.surface-dark .booking-note { color: var(--on-dark-50); }
.booking-note svg { color: var(--purple); flex: none; margin-top: 3px; }
.surface-dark .booking-note svg { color: var(--cyan); }

.booking-steps { display: grid; gap: 1rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
@media (min-width: 780px) { .booking-steps { grid-template-columns: repeat(3, 1fr); } }
.booking-step {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark);
}
.booking-step__n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(101, 180, 197, 0.5); color: var(--cyan);
  font-size: 0.76rem; font-weight: 700;
}
.booking-step strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.15rem; }
.booking-step p { font-size: 0.85rem; color: var(--on-dark-70); margin: 0; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.7rem; }
.header__actions .btn { padding: 0.7rem 1.15rem; min-height: 42px; font-size: 0.89rem; }
@media (max-width: 1180px) {
  .header__actions { flex-direction: column; align-items: stretch; margin: 1.2rem 0 0; gap: 0.6rem; }
  .header__actions .btn { width: 100%; padding: 0.9rem 1.2rem; min-height: 48px; }
}

/* ---------- 16. Placeholders elegantes ---------- */
.ph {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background:
    linear-gradient(150deg, rgba(58, 41, 111, 0.9) 0%, rgba(33, 22, 62, 0.95) 60%, rgba(26, 17, 51, 1) 100%);
  border: 1px solid rgba(101, 180, 197, 0.22);
  display: grid; place-items: center;
  color: var(--on-dark-50);
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 242, 250, 0.13) 1px, transparent 0);
  background-size: 20px 20px; opacity: 0.55;
}
.ph::after {
  content: ""; position: absolute; z-index: 0;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 180, 197, 0.28), transparent 68%);
  filter: blur(28px); right: -12%; bottom: -18%;
}
.ph__inner {
  position: relative; z-index: 1; text-align: center; padding: 1.5rem;
  display: grid; gap: 0.55rem; justify-items: center;
}
.ph__ico { color: var(--cyan); opacity: 0.85; }
.ph__label {
  font-size: var(--fs-micro); letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; color: var(--cyan);
}
.ph__hint { font-size: 0.78rem; color: var(--on-dark-50); max-width: 24ch; line-height: 1.4; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1; }
.ph--hero { aspect-ratio: 5 / 6; }

/* Fotografías reales */
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--deep-2);
  border: 1px solid rgba(101, 180, 197, 0.22);
  isolation: isolate;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-out);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 17, 51, 0.55) 100%);
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--tall { aspect-ratio: 5 / 6; }
.photo:hover img { transform: scale(1.03); }
.photo__ring {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(101, 180, 197, 0.28);
}

/* ---------- 17. Casos y testimonios ---------- */
.cases-grid { display: grid; gap: 1rem; }
@media (min-width: 780px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case {
  padding: 1.7rem 1.5rem; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case__tag {
  align-self: flex-start; font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  background: rgba(101, 180, 197, 0.16); color: var(--purple);
}
.case h3 { font-size: 1.04rem; margin: 0; }
.case p { font-size: 0.9rem; color: var(--ink-70); margin: 0; }
.case__meta {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line-light);
  font-size: 0.78rem; color: var(--ink-55); display: flex; align-items: center; gap: 0.45rem;
}
.testimonials {
  display: grid; gap: 1rem; margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.testimonial {
  position: relative; padding: 1.7rem 1.5rem 1.5rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-light); background: #fff;
  display: flex; flex-direction: column; gap: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s var(--ease);
  overflow: hidden;
}
.testimonial::before {
  content: "”";
  position: absolute; right: 1rem; top: -0.35rem;
  font-family: var(--font-display); font-size: 5.5rem; line-height: 1;
  color: rgba(58, 41, 111, 0.1); pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(58, 41, 111, 0.22);
}
.testimonial__tag {
  align-self: flex-start; font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  background: rgba(101, 180, 197, 0.16); color: var(--purple);
}
.testimonial__quote {
  font-size: 0.95rem; line-height: 1.6; color: var(--ink-70); margin: 0;
  position: relative; z-index: 1;
}
.testimonial__person {
  display: flex; align-items: center; gap: 0.7rem;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-light);
}
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--purple), var(--deep));
  color: #fff; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
}
.testimonial__person div { font-size: 0.78rem; color: var(--ink-55); line-height: 1.35; }
.testimonial__person strong { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.testimonial__verified {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.15rem;
}
.testimonial__verified svg { color: var(--cyan); flex: none; }

.disclaimer {
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  border-left: 2px solid var(--cyan);
  background: rgba(101, 180, 197, 0.08);
  border-radius: 0 12px 12px 0;
  font-size: 0.82rem; color: var(--ink-55); line-height: 1.55;
}
.surface-dark .disclaimer { color: var(--on-dark-50); background: rgba(101, 180, 197, 0.07); }

/* ---------- 18. Equipo ---------- */
.founder { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.founder__media { position: relative; }
.founder__stamp {
  position: absolute; right: -14px; bottom: 22px;
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg); max-width: 210px;
  border: 1px solid var(--line-light);
}
.founder__stamp strong { display: block; font-size: 0.9rem; }
.founder__stamp span { font-size: 0.76rem; color: var(--ink-55); }
.founder__quote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.35; color: #fff; margin-bottom: 1.3rem;
}
.founder__facts { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
@media (min-width: 560px) { .founder__facts { grid-template-columns: 1fr 1fr; } }
.founder__fact {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.89rem; color: var(--on-dark-70);
}
.founder__fact svg { color: var(--cyan); flex: none; margin-top: 3px; }
.team-grid { display: grid; gap: 1rem; margin-top: clamp(2.4rem, 4vw, 3.4rem); }
@media (min-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-grid--2 { max-width: 620px; }
@media (min-width: 940px) { .team-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
.member__name { font-weight: 600; margin: 0.85rem 0 0.15rem; color: #fff; font-size: 0.98rem; }
.member__role { font-size: 0.82rem; color: var(--cyan); }
.member__desc { font-size: 0.82rem; color: var(--on-dark-50); margin-top: 0.35rem; }

/* ---------- 19. Autoridad / medios ---------- */
.authority-grid { display: grid; gap: 1rem; }
@media (min-width: 780px) { .authority-grid { grid-template-columns: 1.25fr 1fr 1fr; } }
.auth-card {
  border-radius: var(--r-lg); padding: 1.5rem;
  background: #fff; border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.auth-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.auth-card h3 { font-size: 1.02rem; margin: 0; }
.auth-card p { font-size: 0.88rem; color: var(--ink-70); margin: 0; }
.media-strip {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem;
}
.media-slot {
  flex: 1 1 150px; min-height: 74px; border-radius: 14px;
  border: 1px dashed rgba(58, 41, 111, 0.3);
  display: grid; place-items: center; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(23, 19, 31, 0.35); font-weight: 600;
  background: #fff; padding: 0.5rem;
}
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.social-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: 100px; min-height: 44px;
  border: 1px solid var(--line-light); background: #fff;
  font-size: 0.86rem; font-weight: 500;
  transition: all 0.25s var(--ease);
}
.social-pill:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.social-pill svg { color: var(--purple); }

/* ---------- 20. FAQ ---------- */
.tabs { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 100px; background: rgba(58, 41, 111, 0.07); margin-bottom: 1.8rem; }
.surface-dark .tabs { background: rgba(255, 255, 255, 0.07); }
.tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.6rem 1.2rem; border-radius: 100px; min-height: 44px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-55);
  transition: all 0.25s var(--ease);
}
.surface-dark .tab { color: var(--on-dark-50); }
.tab[aria-selected="true"] { background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.surface-dark .tab[aria-selected="true"] { background: var(--cyan); color: var(--deep); }
.faq-panel[hidden] { display: none; }
.faq-list { display: grid; gap: 0.6rem; max-width: 860px; }
.faq {
  border: 1px solid var(--line-light); border-radius: var(--r-md);
  background: #fff; overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq.is-open { border-color: rgba(58, 41, 111, 0.28); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.3rem; position: relative;
  font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq__q::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq.is-open .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 1.3rem 1.25rem; font-size: 0.93rem; color: var(--ink-70); margin: 0;
}
.faq__a .link-arrow { margin: 0 1.3rem 1.3rem; }

/* ---------- 21. Cierre comercial ---------- */
.closing {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--purple) 0%, var(--deep) 55%, #150250 100%);
  color: #fff; text-align: center;
}
.closing h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.4rem); letter-spacing: -0.03em;
  max-width: 18ch; margin-inline: auto; margin-bottom: 1.1rem;
}
.closing .lead { margin-inline: auto; margin-bottom: 2rem; color: var(--on-dark-70); }
.closing__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.closing__ticker {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.6rem; font-size: 0.82rem; color: var(--on-dark-50);
}
.closing__ticker span { display: inline-flex; align-items: center; gap: 0.4rem; }
.closing__ticker svg { color: var(--cyan); }

/* ---------- 22. Footer ---------- */
.footer {
  background: var(--deep-2); color: var(--on-dark-70);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer__grid { display: grid; gap: 2.4rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { height: 38px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer__brand p { font-size: 0.87rem; max-width: 34ch; }
.footer h3 {
  font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem; font-weight: 700;
}
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 0.55rem; margin-top: 1.2rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark-70);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover {
  color: var(--cyan); border-color: var(--cyan);
  background: rgba(101, 180, 197, 0.1); transform: translateY(-2px);
}
.footer__contact { display: grid; gap: 0.75rem; }
.footer__contact a, .footer__contact span {
  display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem;
}
.footer__contact svg { color: var(--cyan); flex: none; margin-top: 3px; }
.footer__bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--on-dark-50);
}
.footer__legal-note {
  margin-top: 1.2rem; font-size: 0.74rem; color: rgba(244, 242, 250, 0.38);
  line-height: 1.6; max-width: 90ch;
}

/* ---------- 23. WhatsApp persistente ---------- */
.wa {
  position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.05rem 0.7rem 0.75rem;
  border-radius: 100px;
  background: rgba(26, 17, 51, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(101, 180, 197, 0.4);
  color: var(--on-dark); font-size: 0.86rem; font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.wa:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(33, 22, 62, 0.96); }
.wa__ico {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(101, 180, 197, 0.18); color: var(--cyan);
}
.wa__txt { white-space: nowrap; }
@media (max-width: 560px) {
  .wa { padding: 0.6rem; }
  .wa__txt { display: none; }
  .wa__ico { width: 34px; height: 34px; }
}

/* ---------- 24. Reveal / animaciones de entrada ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 25. Páginas interiores ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(165deg, var(--deep-2) 0%, var(--deep) 55%, #241a47 100%);
  color: var(--on-dark); position: relative; overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); color: #fff;
  letter-spacing: -0.03em; max-width: 18ch;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent 12%, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 75%);
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 17, 51, 0.35), rgba(26, 17, 51, 0.9));
}
.breadcrumb { font-size: 0.8rem; color: var(--on-dark-50); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { opacity: 0.5; margin: 0 0.35rem; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.7rem; }
.prose p, .prose li { color: var(--ink-70); font-size: 0.97rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 26. Reduced motion: sólo lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-path { animation: none; }
  .hero__badge .pulse { animation: none; }
  [data-reveal] { transform: none; transition-duration: 0.35s; }
  .doc, .docs-scene__line { transition-duration: 0.4s; }
  .btn--primary::after { display: none; }
}
