/* ============================================================
   MISAEL VALENZUELA PEÑA — Abogados y Consultores
   Sistema de diseño: azul marino profundo + oro envejecido
   Tipografía: Cormorant Garamond (display) / Jost (UI y cuerpo)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #081521;
  --navy-950: #0b1d2b;
  --navy-900: #0e2433;
  --navy-800: #133042;
  --navy-700: #1b3e53;
  --gold: #c3a15f;
  --gold-strong: #d9bc80;
  --gold-deep: #a5854a;
  --gold-soft: rgba(195, 161, 95, 0.35);
  --paper: #f7f4ed;
  --paper-2: #efeadd;
  --white: #ffffff;
  --text-dark: #17242e;
  --text-mute: #55656f;
  --text-light: #e9eef2;
  --text-light-mute: #a3b3be;
  --line-light: rgba(23, 36, 46, 0.14);
  --line-dark: rgba(233, 238, 242, 0.14);
  --green-wa: #25d366;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;

  /* Z */
  --z-header: 100;
  --z-overlay: 200;
  --z-preloader: 300;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--paper);
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Utilidades ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--dark {
  background: var(--navy-900);
  color: var(--text-light);
}

.section--ink {
  background: var(--navy-950);
  color: var(--text-light);
}

.section--alt {
  background: var(--paper-2);
}

.section--white {
  background: var(--white);
}

/* Etiqueta superior de sección */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section--dark .label,
.section--ink .label {
  color: var(--gold);
}

.label--rule::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Titulares */
.h-display,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy-950);
  letter-spacing: 0.005em;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
}

h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

.h-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.section--dark .h-italic,
.section--ink .h-italic {
  color: var(--gold-strong);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .label {
  justify-content: center;
}

.section-head .label {
  margin-bottom: 1.1rem;
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--text-mute);
}

.section--dark .section-head p,
.section--ink .section-head p {
  color: var(--text-light-mute);
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.02em 2.3em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  isolation: isolate;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--gold::before {
  background: var(--gold-strong);
}

.btn--outline {
  border-color: var(--gold-soft);
  color: var(--gold);
}

.btn--outline::before {
  background: var(--gold);
}

.btn--outline:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.btn--outline-dark {
  border-color: rgba(23, 36, 46, 0.35);
  color: var(--navy-950);
}

.btn--outline-dark::before {
  background: var(--navy-950);
}

.btn--outline-dark:hover {
  color: var(--paper);
  border-color: var(--navy-950);
}

.btn .btn__arrow {
  width: 1em;
  height: 1em;
  transition: transform var(--dur) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Enlace con subrayado */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  position: relative;
  padding-bottom: 0.35rem;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.link-line:hover::after {
  transform: scaleX(1);
}

.section--dark .link-line,
.section--ink .link-line {
  color: var(--gold);
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader.is-done {
  transform: translateY(-101%);
}

.preloader.is-hidden {
  display: none;
}

.preloader__mark {
  width: 74px;
  height: 74px;
  color: var(--gold);
}

.preloader__mark path,
.preloader__mark polygon,
.preloader__mark line,
.preloader__mark circle {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.4s var(--ease-out) forwards;
}

.preloader__name {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-light-mute);
  opacity: 0;
  animation: fadeUp 0.9s 0.35s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: transform 0.45s var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.topbar {
  background: var(--ink);
  color: var(--text-light-mute);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
  max-height: 3rem;
  overflow: hidden;
}

.site-header.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.55rem;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-width: 0;
}

.topbar__info svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--gold);
}

.topbar__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  white-space: nowrap;
  transition: color var(--dur);
}

.topbar__mail:hover {
  color: var(--gold-strong);
}

.topbar__addr {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-light-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.15rem 0.4rem;
  color: var(--text-light-mute);
  transition: color var(--dur);
  white-space: nowrap;
}

.lang-switch .flag {
  width: 17px;
  height: 12px;
  display: block;
  box-shadow: 0 0 0 1px rgba(233, 238, 242, 0.18);
  flex-shrink: 0;
}

.lang-switch button.is-active {
  color: var(--white);
}

.lang-switch button:hover {
  color: var(--gold);
}

.lang-switch .sep {
  opacity: 0.4;
}

.topbar__follow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  white-space: nowrap;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.topbar__social a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--text-light-mute);
  transition: color var(--dur), transform var(--dur) var(--ease-out);
}

.topbar__social a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.topbar__social svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1240px) {
  .topbar__addr {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar__follow,
  .topbar__social {
    display: none;
  }
}

.navbar {
  background: rgba(11, 29, 43, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(233, 238, 242, 0.08);
  transition: background-color 0.4s;
}

.site-header.is-scrolled .navbar {
  background: rgba(8, 21, 33, 0.92);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: 0.9rem;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand__mark {
  width: 46px;
  height: 46px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Tamaños fluidos: el header nunca se desborda, sin importar zoom o ancho */
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 0.5rem + 0.58vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__tag {
  font-size: clamp(0.48rem, 0.32rem + 0.22vw, 0.58rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Navegación */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: clamp(0.85rem, 0.1rem + 1.5vw, 2rem);
}

.nav a {
  position: relative;
  font-size: clamp(0.7rem, 0.45rem + 0.32vw, 0.8rem);
  font-weight: 500;
  letter-spacing: clamp(0.08em, 0.04em + 0.08vw, 0.16em);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-light);
  padding-block: 0.4rem;
  transition: color var(--dur);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__cta {
  padding: 0.8em clamp(1em, 0.3em + 1vw, 1.7em);
  font-size: 0.74rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Franja 1101–1230px (p. ej. zoom 110–125%): la navegación tiene prioridad
   sobre el botón; el contacto sigue en el menú y en la barra superior */
@media (max-width: 1230px) {
  .navbar__cta {
    display: none;
  }
}

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  z-index: calc(var(--z-overlay) + 1);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  /* Debajo del header fijo, para que la hamburguesa siga visible y pueda cerrar */
  z-index: calc(var(--z-header) - 1);
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  visibility: hidden;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  color: var(--text-light);
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(233, 238, 242, 0.08);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: color var(--dur), padding-left var(--dur) var(--ease-out);
  opacity: 0;
  transform: translateY(24px);
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color var(--dur), padding-left var(--dur);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.is-active {
  color: var(--gold);
  padding-left: 0.6rem;
}

.mobile-menu nav a small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
}

.mobile-menu__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-light-mute);
  font-size: 0.9rem;
}

.mobile-menu__foot a {
  color: var(--gold);
}

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #12374a 100%);
  color: var(--text-light);
  overflow: hidden;
  padding-top: 8.5rem;
}

.hero__watermark {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 20vw, 17rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(233, 238, 242, 0.045);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(233, 238, 242, 0.035) 1px, transparent 1px);
  background-size: 100% 25%;
  opacity: 0.6;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hero__content {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero__content .label {
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.6rem;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line__inner {
  display: block;
}

.hero__rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.6rem;
  transform-origin: left;
}

.hero__sub {
  max-width: 46ch;
  color: var(--text-light-mute);
  font-size: 1.1rem;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
}

.hero__stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}

.hero__stat .num sup {
  color: var(--gold);
  font-size: 0.6em;
  margin-left: 2px;
}

.hero__stat .cap {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-mute);
  margin-top: 0.3rem;
}

/* Retrato */
.hero__figure {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 460px);
}

.hero__portrait-wrap {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  border: 1px solid rgba(195, 161, 95, 0.35);
  background: linear-gradient(180deg, rgba(195, 161, 95, 0.12), transparent 40%);
}

.hero__portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -80px 80px -40px rgba(8, 21, 33, 0.55);
  pointer-events: none;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: -1.25rem auto auto -1.25rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(195, 161, 95, 0.25);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.hero__portrait-wrap img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__badge {
  position: absolute;
  left: clamp(-2.5rem, -4vw, -1rem);
  bottom: 2.4rem;
  background: rgba(8, 21, 33, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(195, 161, 95, 0.35);
  padding: 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__badge strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}

.hero__badge span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-light-mute);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.35);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ---------- Hero interior (páginas) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 70%, #123448 100%);
  color: var(--text-light);
  padding: clamp(9rem, 16vw, 12.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.page-hero__watermark {
  position: absolute;
  right: -2%;
  bottom: -14%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  color: rgba(233, 238, 242, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light-mute);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  color: var(--gold);
  transition: color var(--dur);
}

.breadcrumb a:hover {
  color: var(--gold-strong);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.page-hero__sub {
  margin-top: 1.3rem;
  max-width: 58ch;
  color: var(--text-light-mute);
  font-size: 1.08rem;
}

/* ---------- Marquesina de clientes ---------- */
.clients {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  padding-block: 2.9rem;
  overflow: hidden;
}

.clients__head {
  text-align: center;
  margin-bottom: 1.9rem;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  padding-right: clamp(3rem, 7vw, 5.5rem);
  flex-shrink: 0;
  animation: marquee 32s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logos a todo color sobre franja clara — protagonismo para los clientes */
.marquee__item img {
  height: 46px;
  width: auto;
  transition: transform 0.35s var(--ease-out);
}

.marquee__item--md img {
  height: 62px;
}

.marquee__item--tall img {
  height: 74px;
}

.marquee__item:hover img {
  transform: translateY(-4px) scale(1.05);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Split (imagen + texto) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split--reverse > .split__media {
  order: 2;
}

.split__media {
  position: relative;
}

.split__media .frame {
  position: relative;
  overflow: hidden;
}

.split__media .frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.split__media .frame:hover img {
  transform: scale(1.045);
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}

.split--reverse .split__media::before {
  inset: 1.5rem 1.5rem -1.5rem -1.5rem;
}

.split__media .badge-exp {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  background: var(--navy-950);
  color: var(--white);
  border: 1px solid var(--gold-soft);
  padding: 1.3rem 1.6rem;
  text-align: center;
  z-index: 2;
}

.split__media .badge-exp .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.split__media .badge-exp .cap {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  color: var(--text-light-mute);
  max-width: 12ch;
}

.split__body .label {
  margin-bottom: 1.1rem;
}

.split__body h2 {
  margin-bottom: 1.4rem;
}

.split__body p {
  color: var(--text-mute);
  margin-bottom: 1.2rem;
}

.section--dark .split__body p,
.section--ink .split__body p {
  color: var(--text-light-mute);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
  margin: 1.6rem 0 2.2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.98rem;
}

.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

/* ---------- Áreas de práctica ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.area-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: 2.4rem 2.1rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
  overflow: hidden;
}

.section--dark .area-card,
.section--ink .area-card {
  background: var(--navy-800);
  border-color: rgba(233, 238, 242, 0.08);
}

.area-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(8, 21, 33, 0.25);
  border-color: transparent;
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card__icon {
  width: 44px;
  height: 44px;
  color: var(--gold-deep);
  transition: color var(--dur);
}

.section--dark .area-card__icon,
.section--ink .area-card__icon {
  color: var(--gold);
}

.area-card h3 {
  font-size: 1.4rem;
}

.section--dark .area-card h3,
.section--ink .area-card h3 {
  color: var(--white);
}

.area-card p {
  color: var(--text-mute);
  font-size: 0.96rem;
  flex-grow: 1;
}

.section--dark .area-card p,
.section--ink .area-card p {
  color: var(--text-light-mute);
}

.area-card .link-line {
  font-size: 0.72rem;
}

/* ---------- Por qué elegirnos ---------- */
.why {
  position: relative;
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.why__sticky {
  position: sticky;
  top: 8rem;
}

.why__list {
  display: flex;
  flex-direction: column;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.why-item:first-child {
  border-top: 1px solid var(--line-dark);
}

.why-item__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  padding-top: 0.35rem;
}

.why-item h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-light-mute);
  font-size: 0.98rem;
  max-width: 52ch;
}

/* ---------- Banda de estadísticas ---------- */
.stats-band {
  background: var(--ink);
  color: var(--text-light);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-block: 1px solid rgba(195, 161, 95, 0.18);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.stat-cell {
  text-align: center;
  position: relative;
}

.stat-cell + .stat-cell::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--line-dark);
}

.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}

.stat-cell .num sup {
  color: var(--gold);
  font-size: 0.55em;
}

.stat-cell .cap {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light-mute);
}

/* ---------- Testimonios ---------- */
.testimonials {
  position: relative;
}

.testimonial-slider {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  min-height: 300px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial__quote-mark {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy-950);
}

.section--dark .testimonial blockquote,
.section--ink .testimonial blockquote {
  color: var(--text-light);
}

.testimonial cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial cite strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.section--dark .testimonial cite strong,
.section--ink .testimonial cite strong {
  color: var(--gold);
}

.testimonial cite span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section--dark .testimonial cite span,
.section--ink .testimonial cite span {
  color: var(--text-light-mute);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

.slider-dots button {
  width: 34px;
  height: 3px;
  background: var(--line-light);
  transition: background-color var(--dur);
  border-radius: 2px;
}

.section--dark .slider-dots button,
.section--ink .slider-dots button {
  background: var(--line-dark);
}

.slider-dots button.is-active {
  background: var(--gold);
}

/* ---------- Blog ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -26px rgba(8, 21, 33, 0.3);
}

.post-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.06);
}

.post-card__body {
  padding: 1.7rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.post-card__meta .date {
  color: var(--text-mute);
  font-weight: 400;
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card h3 a {
  transition: color var(--dur);
}

.post-card h3 a:hover {
  color: var(--gold-deep);
}

.post-card p {
  color: var(--text-mute);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Post destacado */
.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 1px solid var(--line-light);
  background: var(--white);
  margin-bottom: 3rem;
  overflow: hidden;
}

.post-featured__media {
  overflow: hidden;
}

.post-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.post-featured:hover .post-featured__media img {
  transform: scale(1.05);
}

.post-featured__body {
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.post-featured__body h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.post-featured__body p {
  color: var(--text-mute);
}

/* Filtros del blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.6rem;
}

.blog-filters button {
  padding: 0.5rem 1.2rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  color: var(--text-mute);
  transition: all var(--dur);
}

.blog-filters button:hover,
.blog-filters button.is-active {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}

/* ---------- Artículo ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.prose > * + * {
  margin-top: 1.35rem;
}

.prose h2 {
  font-size: 1.85rem;
  margin-top: 2.6rem;
}

.prose h3 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}

.prose p {
  color: #33434e;
}

.prose ul {
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.1rem;
  color: #33434e;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.prose blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy-900);
  margin-block: 2rem;
}

.article-aside {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aside-box {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 1.7rem 1.6rem;
}

.aside-box h4 {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-light);
}

.aside-box ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-box ul a {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  transition: color var(--dur);
}

.aside-box ul a:hover {
  color: var(--gold-deep);
}

.aside-box ul .mini-date {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 0.25rem;
}

.aside-cta {
  background: var(--navy-950);
  color: var(--text-light);
  padding: 2rem 1.7rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.aside-cta h4 {
  color: var(--white);
  font-size: 1.3rem;
}

.aside-cta p {
  font-size: 0.9rem;
  color: var(--text-light-mute);
}

/* ---------- Servicios (página) ---------- */
.services-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.services-nav {
  position: sticky;
  top: 7.5rem;
  border-left: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}

.services-nav a {
  position: relative;
  padding: 0.68rem 0 0.68rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  transition: color var(--dur);
}

.services-nav a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out);
}

.services-nav a:hover,
.services-nav a.is-active {
  color: var(--navy-950);
}

.services-nav a.is-active::before {
  transform: scaleY(1);
}

.service-block {
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
  scroll-margin-top: 8rem;
}

.service-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-block__head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.4rem;
}

.service-block__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  color: var(--gold-deep);
}

.service-block__icon svg {
  width: 26px;
  height: 26px;
}

.service-block p {
  color: var(--text-mute);
  max-width: 62ch;
}

.service-block .service-list {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
}

.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.97rem;
  font-weight: 400;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
}

.service-block .link-line {
  margin-top: 1.6rem;
}

/* ---------- Equipo ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.founder__media {
  position: sticky;
  top: 8rem;
}

.founder__media .frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
}

.founder__media img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.founder__media figcaption {
  padding: 1.1rem 1.3rem;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.founder__media figcaption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.founder__media figcaption span {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.founder__body h2 {
  margin-bottom: 0.4rem;
}

.founder__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
  display: block;
}

.founder__body > p {
  color: var(--text-mute);
  margin-bottom: 1.2rem;
}

.founder__quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy-900);
  margin-block: 1.9rem;
}

.cred-list {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.cred-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  font-weight: 400;
  font-size: 0.98rem;
}

.cred-list li span:first-child {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

.team-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ---------- Hero centrado (páginas legales) ---------- */
.page-hero--center {
  text-align: center;
}

.page-hero--center .breadcrumb {
  justify-content: center;
}

.page-hero--center h1 {
  max-width: 24ch;
  margin-inline: auto;
}

.page-hero--center .page-hero__sub {
  margin-inline: auto;
}

.page-hero--center .page-hero__watermark {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* Icono dentro del recuadro flotante de la imagen (Aviso Legal) */
.badge-exp__icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin: 0 auto 0.5rem;
  display: block;
}

/* Bloque de datos del responsable (estilo "ficha") */
.data-block {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 0.4rem 1.8rem;
  margin: 1.9rem 0 2.4rem;
}

.data-block__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.4rem 1.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}

.data-block__row:last-child {
  border-bottom: 0;
}

.data-block dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.data-block dd {
  color: var(--text-dark);
  font-weight: 400;
}

.data-block dd a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 560px) {
  .data-block__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- Documento legal (privacidad / aviso legal) ---------- */
.legal-doc {
  max-width: 760px;
  margin-inline: auto;
}

.legal-doc > .label {
  margin-bottom: 1.1rem;
}

.legal-doc h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
  scroll-margin-top: 7rem;
}

.legal-updated {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}

.legal-doc .lead {
  font-size: 1.18rem;
  color: var(--text-dark);
  margin-bottom: 2.4rem;
}

.legal-doc h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 7rem;
}

.legal-doc p {
  color: #33434e;
  margin-bottom: 1rem;
}

.legal-doc a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--navy-900);
}

.legal-doc ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.legal-doc ul li {
  position: relative;
  padding-left: 1.1rem;
  color: #33434e;
}

.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Línea de tiempo (año fijo + línea que se ilumina) ---------- */
.tl2 {
  position: relative;
  padding-left: clamp(2rem, 4vw, 3rem);
}

.tl2__line {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(233, 238, 242, 0.1);
  overflow: hidden;
}

.tl2__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--gold-strong), var(--gold) 60%, rgba(195, 161, 95, 0.15));
  transform: scaleY(0);
  transform-origin: top;
}

.tl2-item {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.tl2-item:last-child {
  padding-bottom: 0.5rem;
}

/* El año se queda fijo mientras su contenido avanza */
.tl2-item__era {
  position: sticky;
  top: 8rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tl2-item__dot {
  position: absolute;
  /* centro del rombo = centro de la línea (línea: left 7px + 2px de ancho → eje en 8px) */
  left: calc(-1 * clamp(2rem, 4vw, 3rem) + 8px);
  top: 0.9rem;
  width: 17px;
  height: 17px;
  transform: translate(-50%, 0) rotate(45deg);
  border: 1px solid rgba(195, 161, 95, 0.45);
  background: var(--navy-900);
  transition: background-color 0.45s, border-color 0.45s, box-shadow 0.45s;
}

.tl2-item.is-lit .tl2-item__dot {
  background: var(--gold);
  border-color: var(--gold-strong);
  box-shadow: 0 0 22px rgba(195, 161, 95, 0.55);
}

.tl2-item__year {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(233, 238, 242, 0.22);
  transition: color 0.5s;
  white-space: nowrap;
}

.tl2-item.is-lit .tl2-item__year {
  color: var(--gold);
}

.tl2-item__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-light-mute);
}

.tl2-item__body h3 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 0.8rem;
}

.tl2-item__body > p {
  color: var(--text-light-mute);
  max-width: 56ch;
}

.tl2-hitos {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tl2-hitos li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.97rem;
  max-width: 58ch;
}

.tl2-hitos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.tl2-quote {
  margin-top: 1.5rem;
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
  max-width: 46ch;
}

.tl2-stats {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.6rem;
}

.tl2-stats .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tl2-stats .num sup {
  color: var(--gold);
  font-size: 0.55em;
}

.tl2-stats .cap {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light-mute);
}

@media (max-width: 900px) {
  .tl2-item {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .tl2-item__era {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 0.9rem;
  }

  .tl2-item__year {
    font-size: 2.2rem;
  }
}

/* ---------- Valores (cards romanos) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.value-card {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 2.4rem 2.1rem;
  position: relative;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(8, 21, 33, 0.22);
}

.value-card .roman {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}

.value-card h3 {
  margin-bottom: 0.7rem;
}

.value-card p {
  color: var(--text-mute);
  font-size: 0.97rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy-950);
  color: var(--text-light);
  overflow: hidden;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: grayscale(60%);
}

.cta-band__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

.cta-band p {
  color: var(--text-light-mute);
  max-width: 52ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Contacto ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.contact-card {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -24px rgba(8, 21, 33, 0.22);
}

.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--gold-deep);
}

.contact-card h3 {
  font-size: 1.15rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--text-mute);
  font-weight: 400;
}

.contact-card a:hover {
  color: var(--gold-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line-light);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.contact-form-wrap h2 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.contact-form-wrap > p {
  color: var(--text-mute);
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.form-field label .req {
  color: var(--gold-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--text-dark);
  transition: border-color var(--dur), background-color var(--dur);
  border-radius: 0;
  width: 100%;
  min-height: 44px;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: #b3382c;
}

.form-field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: #b3382c;
  font-weight: 400;
}

.form-field.has-error .error-msg {
  display: block;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem 1.2rem;
  border: 1px solid #2e7d5b;
  color: #205c43;
  background: rgba(46, 125, 91, 0.07);
  font-weight: 400;
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

.contact-map {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  background: var(--white);
}

.contact-map iframe {
  width: 100%;
  flex-grow: 1;
  min-height: 340px;
  border: 0;
  filter: grayscale(35%);
}

.contact-map__foot {
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-map__foot p {
  font-size: 0.9rem;
  color: var(--text-mute);
  max-width: 40ch;
}

/* ---------- Acordeón / FAQ ---------- */
.accordion {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line-light);
}

.accordion-item {
  border-bottom: 1px solid var(--line-light);
}

.accordion-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy-950);
  transition: color var(--dur);
}

.accordion-item__btn:hover {
  color: var(--gold-deep);
}

.accordion-item__btn .acc-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}

.accordion-item__btn .acc-icon::before,
.accordion-item__btn .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--gold-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}

.accordion-item__btn .acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.is-open .acc-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.accordion-item.is-open .accordion-item__panel {
  grid-template-rows: 1fr;
}

.accordion-item__panel > div {
  overflow: hidden;
}

.accordion-item__panel p {
  padding: 0 0.2rem 1.5rem;
  color: var(--text-mute);
  max-width: 68ch;
}

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.newsletter__form {
  display: flex;
  gap: 0;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}

.newsletter__form input {
  flex-grow: 1;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.98rem;
  border: 1px solid rgba(233, 238, 242, 0.2);
  border-right: 0;
  background: rgba(233, 238, 242, 0.06);
  color: var(--white);
  min-width: 0;
}

.newsletter__form input::placeholder {
  color: var(--text-light-mute);
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--gold);
}

.newsletter__form .btn {
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-light-mute);
  border-top: 1px solid rgba(195, 161, 95, 0.22);
  font-size: 0.95rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.site-footer .brand {
  margin-bottom: 1.4rem;
}

.site-footer__about p {
  max-width: 34ch;
  margin-bottom: 1.6rem;
}

.social-row {
  display: flex;
  gap: 0.7rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 238, 242, 0.16);
  color: var(--text-light-mute);
  transition: all var(--dur);
}

.social-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.social-row svg {
  width: 16px;
  height: 16px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  position: relative;
  width: fit-content;
  transition: color var(--dur), padding-left var(--dur) var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 0.8rem;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease-out);
}

.footer-links a:hover::before {
  width: 0.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.footer-contact a:hover {
  color: var(--gold);
}

.site-footer__bottom {
  border-top: 1px solid rgba(233, 238, 242, 0.08);
  padding-block: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.site-footer__bottom nav {
  display: flex;
  gap: 1.6rem;
}

.site-footer__bottom a:hover {
  color: var(--gold);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wa-float__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 1px solid rgba(195, 161, 95, 0.4);
  display: grid;
  place-items: center;
  color: var(--green-wa);
  box-shadow: 0 12px 30px -8px rgba(8, 21, 33, 0.5);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
  position: relative;
}

.wa-float__btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.45);
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.wa-float__btn:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.wa-float__btn svg {
  width: 26px;
  height: 26px;
}

.wa-float__label {
  background: var(--white);
  border: 1px solid var(--line-light);
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.95rem;
  box-shadow: 0 10px 26px -12px rgba(8, 21, 33, 0.3);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur), transform var(--dur) var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}

.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Animaciones de revelado ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  will-change: transform, opacity;
}

html.js [data-reveal="left"] {
  transform: translateX(-44px);
}

html.js [data-reveal="right"] {
  transform: translateX(44px);
}

html.js [data-reveal="zoom"] {
  transform: scale(0.94);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 0;
    margin-bottom: 1rem;
  }

  .services-nav a {
    border: 1px solid var(--line-light);
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
  }

  .services-nav a::before {
    display: none;
  }

  .services-nav a.is-active {
    background: var(--navy-950);
    color: var(--white);
    border-color: var(--navy-950);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__figure {
    order: -1;
    width: min(78%, 360px);
  }

  .hero__badge {
    left: 0;
    bottom: 1.4rem;
  }

  .hero__scroll {
    display: none;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse > .split__media {
    order: 0;
  }

  .split__media {
    max-width: 520px;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .why__sticky {
    position: static;
  }

  .areas-grid,
  .values-grid,
  .team-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-featured {
    grid-template-columns: 1fr;
  }

  .stats-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

  .stat-cell:nth-child(odd)::before {
    display: none;
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder__media {
    position: static;
    max-width: 420px;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    justify-self: start;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar__info span {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .areas-grid,
  .values-grid,
  .team-roles,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .service-block .service-list {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.4rem 2rem;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__tag {
    font-size: 0.5rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__form input {
    border-right: 1px solid rgba(233, 238, 242, 0.2);
  }

  .wa-float__label {
    display: none;
  }

  .split__media .badge-exp {
    right: 0;
  }

  .split__media::before {
    inset: 1rem -0.6rem -0.6rem 1rem;
  }
}

/* ---------- Equipo: tarjetas de miembros ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px -26px rgba(8, 21, 33, 0.28);
}

.member-card__photo {
  position: relative;
  aspect-ratio: 3 / 3.3;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
}

.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  transition: filter 0.5s, transform 0.8s var(--ease-out);
}

.member-card:hover .member-card__photo img {
  filter: none;
  transform: scale(1.035);
}

/* Marcador elegante cuando aún no hay fotografía */
.member-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.member-card__placeholder .initials {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.member-card__placeholder .pending {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light-mute);
}

.member-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(195, 161, 95, 0.25);
  pointer-events: none;
}

.member-card__body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.member-card__body h3 {
  font-size: 1.4rem;
}

.member-card__role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.member-card__bio {
  font-size: 0.93rem;
  color: var(--text-mute);
  margin-top: 0.4rem;
  flex-grow: 1;
}

.member-card__contacts {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.member-card__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-mute);
  transition: color var(--dur);
  width: fit-content;
}

.member-card__contacts a:hover {
  color: var(--gold-deep);
}

.member-card__contacts svg {
  width: 15px;
  height: 15px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Perfil de miembro del equipo ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.profile-aside {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
}

.profile-aside .frame {
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
}

.profile-aside .frame img {
  width: 100%;
  max-height: calc(100vh - 22rem);
  object-fit: cover;
  object-position: top center;
}

.profile-aside .frame .member-card__placeholder {
  position: relative;
  aspect-ratio: 3 / 3.2;
}

.profile-contact {
  background: var(--navy-950);
  color: var(--text-light);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light-mute);
}

.profile-contact svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.profile-contact a {
  transition: color var(--dur);
}

.profile-contact a:hover {
  color: var(--gold);
}

.profile-intro {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-900);
  border-left: 2px solid var(--gold);
  padding-left: 1.6rem;
  margin-bottom: 2.4rem;
}

.profile-section {
  padding-top: 2.4rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line-light);
}

.profile-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.profile-section > .label {
  margin-bottom: 1.2rem;
}

.profile-section p {
  color: var(--text-mute);
  max-width: 64ch;
}

.profile-section p + p {
  margin-top: 1.1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  transition: all var(--dur);
}

a.chip:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}

.edu-list {
  display: flex;
  flex-direction: column;
}

.edu-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.4rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}

.edu-list li:last-child {
  border-bottom: 0;
}

.edu-list .years {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-deep);
}

.edu-list strong {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
}

.edu-list span.inst {
  font-size: 0.9rem;
  color: var(--text-mute);
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    position: static;
    max-width: 420px;
  }

  .edu-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Tarjetas de miembro: foto y nombre enlazables */
.member-card__photo a {
  display: block;
  height: 100%;
}

.member-card__body h3 a {
  transition: color var(--dur);
}

.member-card__body h3 a:hover {
  color: var(--gold-deep);
}

/* ---------- Barra de acciones móvil ---------- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-header);
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 21, 33, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(195, 161, 95, 0.3);
  }

  .mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid rgba(233, 238, 242, 0.18);
  }

  .mobile-cta-bar a svg {
    width: 16px;
    height: 16px;
  }

  .mobile-cta-bar .is-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
  }

  /* La barra sustituye al botón flotante en móvil */
  .wa-float {
    display: none;
  }

  body {
    padding-bottom: 68px;
  }
}

/* ---------- Refinamientos tipográficos ---------- */
h1,
h2,
h3 {
  text-wrap: balance;
}

.hero__stat .num,
.stat-cell .num,
.badge-exp .num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Servicios: sticky scroll reveal (escritorio, lo activa JS) ----------
   Los servicios se desplazan con la página (el activo iluminado, el resto
   atenuado) mientras una tarjeta fija a la derecha cambia de contenido. */
.services-visual {
  display: none;
}

@media (min-width: 1100px) {
  .services-layout--reveal {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .services-layout--reveal > aside:not(.services-visual) {
    display: none;
  }

  .services-layout--reveal .service-block {
    opacity: 0.22;
    transition: opacity 0.55s var(--ease-out);
  }

  .services-layout--reveal .service-block.is-current {
    opacity: 1;
  }

  .services-visual {
    display: block;
    position: sticky;
    top: 7.5rem;
    height: min(calc(100vh - 12rem), 540px);
  }

  .services-visual__card {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
    border: 1px solid rgba(195, 161, 95, 0.32);
    padding: 2.5rem 2.4rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.985);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out),
      visibility 0.55s;
  }

  .services-visual__card.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .services-visual__ghost {
    position: absolute;
    top: -2.2rem;
    right: 0.6rem;
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(233, 238, 242, 0.05);
    user-select: none;
    pointer-events: none;
  }

  .services-visual__icon {
    width: 76px;
    height: 76px;
    border: 1px solid var(--gold-soft);
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(8, 21, 33, 0.4);
  }

  .services-visual__icon svg {
    width: 34px;
    height: 34px;
  }

  .services-visual__count {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .services-visual__foot h3 {
    color: var(--white);
    font-size: 2rem;
    margin: 0.6rem 0 1.1rem;
  }

  .services-visual__rule {
    display: block;
    width: 64px;
    height: 2px;
    background: var(--gold);
  }
}

/* ---------- HOVER FOOTER (experimental) ----------
   Para revertir: en js/main.js poner ENABLE_HOVER_FOOTER = false.
   Este bloque de CSS puede quedarse; sin el JS no se muestra nada. */
.hover-footer {
  display: none;
}

@media (min-width: 900px) and (hover: hover) {
  .hover-footer {
    display: block;
    padding-top: 2.5rem;
    margin-bottom: -1rem;
  }

  .hover-footer svg {
    width: 100%;
    height: auto;
    display: block;
    cursor: default;
  }

  .hover-footer text {
    font-family: var(--font-display);
    font-size: 118px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .hover-footer .hf-base {
    fill: none;
    stroke: rgba(233, 238, 242, 0.09);
    stroke-width: 1;
  }

  .hover-footer .hf-reveal {
    fill: none;
    stroke: url(#hfGold);
    stroke-width: 1.1;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .preloader {
    display: none;
  }
}
