/* =========================================================
   DPE LEGAL — Sistema de diseño
   Colores y tipografía según Brand Guide oficial
   ========================================================= */

/* ---------- Fuente Gotham (WOFF2 con fallback a TTF/OTF) ---------- */
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamLight.woff2') format('woff2'),
       url('../assets/fonts/GothamLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBook.woff2') format('woff2'),
       url('../assets/fonts/GothamBook.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBookItalic.woff2') format('woff2'),
       url('../assets/fonts/GothamBookItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamMedium.woff2') format('woff2'),
       url('../assets/fonts/GothamMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/GothamBold.woff2') format('woff2'),
       url('../assets/fonts/GothamBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../assets/fonts/Gotham-Black.woff2') format('woff2'),
       url('../assets/fonts/Gotham-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables del Brand Guide ---------- */
:root {
  /* Primary */
  --color-primary: #225464;        /* azul petróleo principal */
  --color-primary-dark: #1a3f4d;
  --color-primary-light: #2d6c80;
  --color-teal: #2c9e9e;           /* teal medio */
  --color-teal-light: #55c3c3;     /* teal claro */

  /* Acento cálido — dorado champagne (warmth a la paleta) */
  --color-gold: #d4a960;
  --color-gold-light: #e8c587;
  --color-gold-warm: #c89556;
  --color-gold-dark: #a67e3e;

  /* Neutros */
  --color-black: #0a0a0a;
  --color-gray-900: #1a1a1a;
  --color-gray-700: #4a4a4a;
  --color-gray-500: #6d6e70;
  --color-gray-300: #c4c4c4;
  --color-gray-100: #f4f6f7;
  --color-white: #ffffff;
  --color-cream: #faf9f6;

  /* Tipografía */
  --font-sans: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Tamaños fluidos (clamp para responsive automático) */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.85rem, 1.5rem + 1.5vw, 2.5rem);
  --fs-3xl: clamp(2.4rem, 1.8rem + 2.5vw, 3.5rem);
  --fs-4xl: clamp(3rem, 2.2rem + 3.5vw, 5rem);
  --fs-5xl: clamp(3.5rem, 2.5rem + 4.5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-13: 3.25rem;
  --space-14: 3.5rem;
  --space-15: 3.75rem;
  --space-16: 4rem;
  --space-18: 4.5rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 880px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(34, 84, 100, 0.06);
  --shadow-md: 0 4px 12px rgba(34, 84, 100, 0.08);
  --shadow-lg: 0 12px 32px rgba(34, 84, 100, 0.12);
  --shadow-xl: 0 24px 64px rgba(34, 84, 100, 0.18);

  /* Transiciones */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-gray-900);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

h1 { font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); font-weight: 500; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-2xl); font-weight: 500; }
h4 { font-size: var(--fs-xl); font-weight: 500; }
h5 { font-size: var(--fs-lg); font-weight: 500; }
h6 { font-size: var(--fs-base); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

p { font-size: var(--fs-base); line-height: 1.75; color: var(--color-gray-700); }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-gray-700);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: var(--space-32) 0; }

.section-heading {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-heading p {
  max-width: 600px;
  margin: var(--space-4) auto 0;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-white * { color: inherit; }
.bg-dark { background: var(--color-primary); color: var(--color-white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark p { color: var(--color-white); }
.bg-light { background: var(--color-gray-100); }
.bg-cream { background: var(--color-cream); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.95rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-teal);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition-base);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   HEADER NIVEL DIOS — glassmorphism, mega menú, scroll progress,
   hide-on-scroll, hover splits, modo transparente sobre hero
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-teal), var(--color-primary));
  transform-origin: left center;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(85, 195, 195, 0.6);
}

/* Header base */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  /* Variables que cambian con el estado */
  --header-h: 92px;
  --header-bg: transparent;
  --header-border: rgba(255,255,255,0);
  --header-text: var(--color-white);
  --header-text-hover: var(--color-teal-light);
  --header-shadow: none;
  --logo-filter: brightness(0) invert(1);

  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  transition:
    transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
  will-change: transform;
}

/* Estado scrolleado: glassmorphism blanco */
.site-header.scrolled {
  --header-h: 72px;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(34, 84, 100, 0.08);
  --header-text: var(--color-primary);
  --header-text-hover: var(--color-teal);
  --header-shadow: 0 8px 32px rgba(34, 84, 100, 0.08);
  --logo-filter: none;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Páginas sin hero: header siempre claro */
body[data-hero="false"] .site-header {
  --header-h: 72px;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(34, 84, 100, 0.08);
  --header-text: var(--color-primary);
  --header-text-hover: var(--color-teal);
  --header-shadow: 0 1px 0 rgba(34, 84, 100, 0.04);
  --logo-filter: none;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Hide on scroll down */
.site-header.hidden {
  transform: translateY(-100%);
}

/* Nav container */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-8);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-brand:hover { transform: scale(1.02); }
.nav-brand img {
  height: 64px;
  width: auto;
  filter: var(--logo-filter);
  transition:
    height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    filter 0.4s ease;
}
.site-header.scrolled .nav-brand img,
body[data-hero="false"] .site-header .nav-brand img {
  height: 60px;
}

@media (max-width: 880px) {
  .nav-brand img { height: 52px; }
  .site-header.scrolled .nav-brand img { height: 48px; }
}

/* Menú principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--header-text);
  transition: color 0.3s ease;
  overflow: hidden;
}

/* Efecto split de texto en hover */
.nav-link-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.nav-link-text::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--header-text-hover);
  transition: top 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  white-space: nowrap;
}
.nav-link-text > span {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-link:hover .nav-link-text > span { transform: translateY(-100%); }
.nav-link:hover .nav-link-text::before { top: 0; }

/* Underline indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.45rem;
  left: 1.1rem;
  right: 1.1rem;
  height: 1.5px;
  background: var(--header-text-hover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-link:hover::after,
.nav-link.active::after,
.nav-has-mega:hover > .nav-link::after { transform: scaleX(1); }

/* Chevron rotativo */
.nav-chevron {
  width: 10px;
  height: 6px;
  margin-left: 2px;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-has-mega:hover .nav-chevron,
.nav-has-mega.open .nav-chevron { transform: rotate(180deg); }

/* CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  background-size: 200% 200%;
  background-position: 0% 0%;
  border-radius: 999px;
  transition:
    background-position 0.5s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(34, 84, 100, 0.18);
}
.nav-cta::after { display: none; }
.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-cta:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 158, 158, 0.4);
  color: var(--color-white);
}
.nav-cta:hover svg { transform: translateX(4px); }

/* =========================================================
   MEGA MENU
   ========================================================= */
.mega-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  left: auto;
  transform: translateY(8px);
  width: min(880px, calc(100vw - 48px));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0.4s;
}

.nav-has-mega:hover .mega-menu,
.nav-has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 16px;
  box-shadow:
    0 24px 80px -16px rgba(34, 84, 100, 0.25),
    0 8px 24px -8px rgba(34, 84, 100, 0.1);
  z-index: 0;
}
.mega-menu-bg::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 70px; /* apunta al centro aprox del item "Áreas de Práctica" */
  left: auto;
  transform: rotate(45deg);
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(34, 84, 100, 0.08);
  border-left: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 3px 0 0 0;
}

.mega-menu-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 32px;
}

.mega-menu-aside {
  padding-right: 28px;
  border-right: 1px solid rgba(34, 84, 100, 0.08);
}
.mega-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}
.mega-menu-aside h3 {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.mega-menu-aside p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin-bottom: 20px;
}
.mega-aside-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  padding: 10px 16px;
  background: rgba(44, 158, 158, 0.08);
  border-radius: 999px;
  transition: all 0.3s ease;
}
.mega-aside-cta:hover {
  background: var(--color-teal);
  color: var(--color-white);
  transform: translateX(4px);
}
.mega-arrow { transition: transform 0.3s ease; }
.mega-aside-cta:hover .mega-arrow { transform: translateX(2px); }

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding-left: 28px;
}

.mega-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  transition:
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.mega-item:hover {
  background: linear-gradient(135deg, rgba(44, 158, 158, 0.06), rgba(34, 84, 100, 0.04));
}

.mega-item-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  font-feature-settings: 'tnum';
  width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mega-item-body { min-width: 0; }
.mega-item-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.mega-item-body em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--color-gray-700);
}

.mega-item-arrow {
  font-size: 1rem;
  color: var(--color-gray-300);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mega-item:hover .mega-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-teal);
}

/* =========================================================
   MOBILE TOGGLE
   ========================================================= */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.nav-toggle:hover { background: rgba(34, 84, 100, 0.05); }
.nav-toggle-line {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--header-text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    top 0.4s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.4s cubic-bezier(0.76, 0, 0.24, 1) 0.1s,
    opacity 0.2s ease,
    background 0.3s ease;
}
.nav-toggle-line:nth-child(1) { top: 32%; }
.nav-toggle-line:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-line:nth-child(3) { top: 68%; }

.nav-toggle.open .nav-toggle-line:nth-child(1) {
  top: 50%; transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle.open .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-line:nth-child(3) {
  top: 50%; transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav-link { padding: 0.7rem 0.85rem; font-size: 0.88rem; }
  .mega-menu { width: min(720px, calc(100vw - 48px)); }
  .mega-menu-content { grid-template-columns: 1fr; gap: 24px; }
  .mega-menu-aside {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(34, 84, 100, 0.08);
  }
  .mega-menu-grid { padding-left: 0; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; z-index: 130; }

  /* Toggle se vuelve blanco cuando el menú está abierto */
  .nav-toggle.open .nav-toggle-line { background: var(--color-white); }

  /* Ocultar el logo del header cuando el menú móvil está abierto */
  body.nav-mobile-open .nav-brand { opacity: 0; pointer-events: none; }

  /* ============== MOBILE MENU REDISEÑADO ============== */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 125;
    background: #0d2933;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
    visibility: hidden;
  }

  /* Decoración: orb teal sutil arriba */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -25%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 158, 158, 0.18), transparent 65%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
  }
  /* Decoración: orb gold sutil abajo */
  .nav-menu::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -25%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 169, 96, 0.10), transparent 65%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Logo embedded en el menu (sustituye al del header) */
  .nav-menu::part(logo) { display: none; } /* placeholder */

  /* Lista de items — scrollable, ocupa el espacio disponible */
  .nav-list {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 88px 24px 8px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  /* Scrollbar discreto */
  .nav-list::-webkit-scrollbar { width: 0; display: none; }
  .nav-list { scrollbar-width: none; }

  .nav-item {
    opacity: 0;
    transform: translateX(30px);
    transition:
      opacity 0.4s ease,
      transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    position: relative;
  }
  .nav-menu.open .nav-item { opacity: 1; transform: translateX(0); }
  .nav-menu.open .nav-item:nth-child(1) { transition-delay: 0.10s; }
  .nav-menu.open .nav-item:nth-child(2) { transition-delay: 0.16s; }
  .nav-menu.open .nav-item:nth-child(3) { transition-delay: 0.22s; }
  .nav-menu.open .nav-item:nth-child(4) { transition-delay: 0.28s; }
  .nav-menu.open .nav-item:nth-child(5) { transition-delay: 0.34s; }
  .nav-menu.open .nav-item:nth-child(6) { transition-delay: 0.40s; }
  .nav-menu.open .nav-cta-wrap { transition-delay: 0.48s; }

  /* Link mobile estilo editorial: número + texto */
  .nav-link {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-white) !important;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    position: relative;
    transition: padding-left 0.3s ease, color 0.3s ease;
  }
  .nav-link::before {
    content: counter(nav-counter, decimal-leading-zero);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--color-teal-light);
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    min-width: 22px;
  }
  .nav-list { counter-reset: nav-counter; }
  .nav-item { counter-increment: nav-counter; }
  .nav-link:hover {
    color: var(--color-teal-light) !important;
    padding-left: 6px;
  }
  .nav-link:hover::before {
    color: var(--color-white);
    opacity: 1;
  }
  .nav-link-text > span { color: inherit; }
  .nav-link-text::before { display: none; }
  .nav-link::after { display: none; }
  /* En mobile NO hacer el efecto "roll" del hover/tap — deja el texto visible */
  .nav-link:hover .nav-link-text > span,
  .nav-link:focus .nav-link-text > span,
  .nav-link:active .nav-link-text > span {
    transform: none !important;
  }

  /* Chevron del mega-menu */
  .nav-link-mega .nav-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--color-teal-light);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .nav-has-mega.open .nav-link-mega .nav-chevron {
    transform: rotate(180deg);
  }

  /* ============ MEGA MENU EN MOBILE (acordeón) ============ */
  .nav-has-mega .mega-menu {
    position: static;
    width: 100%;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    transition: max-height 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .nav-has-mega.open .mega-menu { max-height: 460px; }

  .mega-menu-bg { display: none; }
  .mega-menu-content {
    display: block;
    padding: 4px 0 8px 36px;
    gap: 0;
    background: transparent;
  }
  /* Ocultar el aside del mega-menu en mobile (es decorativo) */
  .mega-menu-aside { display: none; }

  .mega-menu-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  .mega-item {
    padding: 8px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mega-item:last-child { border-bottom: none; }
  .mega-item:hover { background: rgba(255, 255, 255, 0.03); padding-left: 4px; }
  .mega-item-num {
    font-size: 0.65rem;
    color: var(--color-teal-light);
    opacity: 0.7;
    min-width: 20px;
  }
  .mega-item-body strong {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    line-height: 1.2;
  }
  .mega-item-body em {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-style: normal;
    display: block;
    line-height: 1.3;
    margin-top: 1px;
  }
  .mega-item-arrow {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin-left: auto;
    font-size: 0.85rem;
  }

  /* CTA fijo al fondo del menú (siempre visible, no se va con el scroll) */
  .nav-cta-wrap {
    flex: 0 0 auto;
    padding: 16px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: linear-gradient(180deg, rgba(13, 41, 51, 0) 0%, #0d2933 30%);
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.4s ease,
      transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    position: relative;
    z-index: 2;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: var(--color-teal);
    color: var(--color-white) !important;
    border-radius: 10px;
  }
  .nav-cta:hover {
    background: var(--color-teal-light);
    color: var(--color-primary) !important;
  }
}

/* =========================================================
   HERO NIVEL DIOS — mesh gradient, parallax, split text,
   magnetic CTAs, counter, scroll indicator
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
  background: #0d2933;
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;

  /* Mouse position vars — actualizadas por JS */
  --mx: 50%;
  --my: 50%;
  --mxn: 0;
  --myn: 0;
}

/* ----- Capa -2: Imagen de fondo (rotator de slides) ----- */
.hero-bg-rotator {
  position: absolute;
  inset: 0;
  z-index: -5;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  filter: brightness(0.7) saturate(0.95) contrast(1.05);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-bg-slide.active {
  opacity: 1;
  animation: heroImgZoom 30s ease-in-out infinite alternate;
}
@keyframes heroImgZoom {
  to { transform: scale(1.12); }
}

/* Fallback para compatibilidad con .hero-bg-image legado */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -5;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  filter: brightness(0.7) saturate(0.95) contrast(1.05);
  transform: scale(1.05);
  animation: heroImgZoom 30s ease-in-out infinite alternate;
}

/* ----- Capa -1: Overlay cinemático — oscuro del lado del texto, imagen visible al lado ----- */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    /* Gradient lateral fuerte: oscuro a la izquierda, transparente a la derecha */
    linear-gradient(90deg,
      rgba(13, 41, 51, 0.81) 0%,
      rgba(13, 41, 51, 0.75) 30%,
      rgba(13, 41, 51, 0.45) 60%,
      rgba(13, 41, 51, 0.10) 100%),
    /* Vignette suave abajo y arriba para profundidad */
    linear-gradient(180deg,
      rgba(13, 41, 51, 0.20) 0%,
      transparent 30%,
      transparent 70%,
      rgba(13, 41, 51, 0.30) 100%),
    /* Toque dorado arriba derecha */
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(212, 169, 96, 0.03), transparent 60%);
}

@media (max-width: 880px) {
  /* En móvil el texto ocupa toda la pantalla, el overlay debe ser uniforme */
  .hero-bg-overlay {
    background:
      linear-gradient(180deg,
        rgba(13, 41, 51, 0.82) 0%,
        rgba(13, 41, 51, 0.75) 50%,
        rgba(13, 41, 51, 0.85) 100%),
      radial-gradient(ellipse 60% 40% at 70% 20%, rgba(212, 169, 96, 0.05), transparent 60%);
  }
}

/* ----- Capa 0: Mesh gradient animado (blobs flotando) ----- */
.hero-bg-mesh {
  position: absolute;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  filter: blur(80px) saturate(1.2);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-blob-1 {
  width: 50vmax; height: 50vmax;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.9), transparent 65%);
  animation: blobFloat1 22s ease-in-out infinite;
}
.hero-blob-2 {
  width: 45vmax; height: 45vmax;
  top: 30%; right: -15%;
  background: radial-gradient(circle, rgba(85, 195, 195, 0.7), transparent 65%);
  animation: blobFloat2 28s ease-in-out infinite;
}
.hero-blob-3 {
  width: 40vmax; height: 40vmax;
  bottom: -15%; left: 30%;
  background: radial-gradient(circle, rgba(34, 84, 100, 0.95), transparent 70%);
  animation: blobFloat3 32s ease-in-out infinite;
}
.hero-blob-4 {
  width: 38vmax; height: 38vmax;
  top: 35%; left: 35%;
  background: radial-gradient(circle, rgba(212, 169, 96, 0.55), transparent 60%);
  animation: blobFloat4 26s ease-in-out infinite;
}
@keyframes blobFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-10vw, 6vh) scale(1.08); }
  66% { transform: translate(6vw, -8vh) scale(0.95); }
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12vw, 8vh) scale(1.1); }
  66% { transform: translate(-4vw, 12vh) scale(0.92); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, -6vh) scale(1.15); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(8vw, -10vh) scale(1.05); }
  80% { transform: translate(-6vw, -4vh) scale(0.95); }
}

/* ----- Capa 1: Grid sutil con parallax ----- */
.hero-bg-grid {
  position: absolute;
  inset: -5%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
  transform: translate3d(calc(var(--mxn) * -10px), calc(var(--myn) * -10px), 0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 100%);
  pointer-events: none;
}

/* ----- Capa 2: Spotlight que sigue el mouse ----- */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(85, 195, 195, 0.12),
    transparent 50%
  );
  transition: background 0.3s ease-out;
}

/* ----- Capa 3: Noise overlay (textura sutil) ----- */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----- Capa 4: Orbs decorativos SVG ----- */
.hero-orbits {
  position: absolute;
  top: 50%;
  right: -200px;
  width: 720px;
  height: 720px;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}
.hero-orbits circle {
  fill: none;
  stroke: rgba(85, 195, 195, 0.2);
  stroke-width: 1;
  transform-origin: center;
  animation: orbitSpin 60s linear infinite;
}
.hero-orbits circle:nth-child(2) { animation-duration: 90s; animation-direction: reverse; stroke: rgba(85, 195, 195, 0.12); }
.hero-orbits circle:nth-child(3) { animation-duration: 120s; stroke: rgba(85, 195, 195, 0.08); }
.hero-orbits .orbit-dot {
  fill: var(--color-teal-light);
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(85, 195, 195, 0.8));
  animation: orbitSpin 30s linear infinite;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 880px) {
  .hero-orbits { display: none; }
}

/* ----- Contenido del hero ----- */
.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

/* Eyebrow con dot pulsante */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: var(--space-8);
  padding: 8px 18px 8px 14px;
  background: rgba(85, 195, 195, 0.08);
  border: 1px solid rgba(85, 195, 195, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-teal-light);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 12px var(--color-teal-light);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(85, 195, 195, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(85, 195, 195, 0); transform: scale(1.1); }
}

/* Título con split reveal */
.hero-title {
  color: var(--color-white);
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.45);
}

/* Rotator de títulos — usa grid para que los títulos se apilen y el contenedor tome la altura del más alto */
.hero-title-rotator {
  display: grid;
  margin-bottom: var(--space-6);
}
.hero-title-rotator .hero-title {
  grid-area: 1 / 1;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-title-rotator .hero-title.active {
  opacity: 1;
  pointer-events: auto;
}
/* Reset de la animación al cambiar de slide */
.hero-title-rotator .hero-title:not(.active) .hero-title-line > span {
  transform: translateY(110%);
  opacity: 0;
  animation: none;
}

/* Dots indicator del rotator */
.hero-rotator-dots {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.9s forwards;
}
.hero-dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.45); }
.hero-dot.active {
  width: 56px;
  background: rgba(255, 255, 255, 0.15);
}
.hero-dot.active::after {
  transform: scaleX(1);
  /* Cuando está activo, el fill se llena en el tiempo de rotación */
  transition: transform var(--rotate-duration, 7s) linear;
}
.hero-title-line {
  display: block;
  overflow: hidden;
  position: relative;
}
.hero-title-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform;
}
.hero-title-line.in > span {
  animation: heroLineReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title-line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title-line:nth-child(2) > span { animation-delay: 0.5s; }
.hero-title-line:nth-child(3) > span { animation-delay: 0.65s; }

@keyframes heroLineReveal {
  0%   { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* La palabra mágica: "conocimiento legal" — gradient teal→dorado→teal con underline animado */
.hero-word-magic {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(110deg,
    #55c3c3 0%,
    #2c9e9e 25%,
    #e8c587 50%,
    #2c9e9e 75%,
    #55c3c3 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 7s linear infinite;
  padding-right: 0.05em;
}
.hero-word-magic::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, var(--color-teal-light) 25%, var(--color-gold-light) 50%, var(--color-teal) 75%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: drawUnderline 1.4s cubic-bezier(0.65, 0, 0.35, 1) 1.4s forwards;
}
@keyframes shimmerText {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes drawUnderline {
  to { transform: scaleX(1); }
}

/* Lead text */
.hero-lead {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Actions */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

/* Magnetic button — transformación via CSS var actualizada por JS */
.btn-magnetic {
  --bx: 0px;
  --by: 0px;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-magnetic:hover {
  transform: translate(var(--bx), calc(var(--by) - 3px));
}

/* CTA primario del hero — gradient con shine */
.btn-hero-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  color: var(--color-primary);
  font-weight: 700;
  border: none;
  box-shadow:
    0 8px 32px rgba(44, 158, 158, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-hero-primary:hover {
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  color: var(--color-primary);
  box-shadow:
    0 16px 48px rgba(44, 158, 158, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-hero-primary:hover::before { left: 100%; }

/* Stats / meta — ahora en flow normal, dentro del container */
.hero-meta {
  position: relative;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  display: flex;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 720px;

  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.hero-meta-item {
  position: relative;
  flex: 1;
}
.hero-meta-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(var(--space-4), 2vw, var(--space-8)));
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
}
.hero-meta-item strong {
  display: block;
  font-size: clamp(1.8rem, 1.3rem + 1vw, 2.4rem);
  font-weight: 300;
  color: var(--color-teal-light);
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-8);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  opacity: 0;
  animation: heroFadeUp 1s ease 1.7s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(85, 195, 195, 0.6), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--color-teal-light));
  animation: scrollDown 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollDown {
  0%   { top: -20px; }
  100% { top: 100%; }
}

@media (max-width: 880px) {
  .hero-scroll { display: none; }
  /* Cifras del hero en 3 columnas en mobile — ahorra espacio vertical para que se vean las fotos */
  .hero-meta {
    position: static;
    transform: none;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
  }
  .hero-meta-item {
    flex: none;
    text-align: left;
  }
  .hero-meta-item:not(:first-child)::before { display: none; }
  .hero-meta-item strong {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }
  /* Texto del meta más pequeño y compacto para no romper en 3 col */
  .hero-meta {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob, .hero-orbits circle, .hero-eyebrow::before,
  .hero-word-magic, .hero-scroll-line::after { animation: none !important; }
  .hero-title-line > span,
  .hero-eyebrow, .hero-lead, .hero-actions, .hero-meta, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ---------- Page Hero (interior pages) ---------- */
/* ---------- Page Hero (premium version) ---------- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  z-index: -5;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -4;
}

.page-hero .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 41, 51, 0.77) 0%, rgba(13, 41, 51, 0.65) 50%, rgba(13, 41, 51, 0.40) 100%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(212, 169, 96, 0.08), transparent 60%);
  z-index: -3;
}

.page-hero .hero-bg-mesh {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.page-hero .hero-blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.5;
}

.page-hero .hero-blob-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(44, 158, 158, 0.4), transparent 70%);
  top: 10%;
  left: 10%;
  animation: blobFloat1 22s ease-in-out infinite;
}

.page-hero .hero-blob-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(85, 195, 195, 0.3), transparent 70%);
  top: 50%;
  right: 15%;
  animation: blobFloat2 28s ease-in-out infinite;
}

.page-hero .hero-blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(34, 84, 100, 0.35), transparent 70%);
  bottom: 10%;
  left: 30%;
  animation: blobFloat3 26s ease-in-out infinite;
}

.page-hero .hero-blob-4 {
  width: 220px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(212, 169, 96, 0.2), transparent 70%);
  bottom: 20%;
  right: 10%;
  animation: blobFloat4 24s ease-in-out infinite;
}

.page-hero .hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 195, 195, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 195, 195, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: var(--mx, 0px) var(--my, 0px);
  z-index: -2;
  opacity: 0.5;
}

.page-hero .hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 500px at var(--mx, 50%) var(--my, 50%), rgba(85, 195, 195, 0.15), transparent 60%);
  z-index: -1;
  mix-blend-mode: screen;
}

.page-hero .hero-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" seed="1" /></filter><rect width="100" height="100" fill="rgba(255,255,255,0.05)" filter="url(%23noise)" /></svg>');
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content > * {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  color: var(--color-teal-light);
  margin-bottom: var(--space-6);
}

.page-hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-8);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
  line-height: 1.2;
  font-weight: 300;
}

.page-hero-title .hero-title-line {
  display: block;
  overflow: hidden;
}

.page-hero-title .hero-title-line span {
  display: block;
  animation: heroLineReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.page-hero-title .hero-title-line:nth-child(1) span {
  animation-delay: 0.15s;
}

.page-hero-title .hero-title-line:nth-child(2) span {
  animation-delay: 0.3s;
}

.page-hero-title .hero-title-line:nth-child(3) span {
  animation-delay: 0.45s;
}

.page-hero-title .hero-word-magic {
  position: relative;
  background: linear-gradient(90deg, var(--color-teal-light) 0%, var(--color-gold) 50%, var(--color-teal-light) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s ease-in-out infinite;
}

.page-hero-lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 650px;
  font-size: var(--fs-lg);
  line-height: 1.6;
  animation: revealFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
  position: relative;
  z-index: 3;
  /* Mejora rendering en iOS Safari */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  will-change: opacity;
}

@keyframes revealFadeIn {
  0% { opacity: 0; transform: translateY(10px) translateZ(0); }
  100% { opacity: 1; transform: translateY(0) translateZ(0); }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

.hero-scroll-line {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.6);
  animation: scroll-line 1.5s ease-in-out infinite;
}

/* =========================================================
   SECTION: VISIÓN INTERNACIONAL — Editorial premium layout
   ========================================================= */
.section-vision {
  position: relative;
  padding: var(--space-16) 0 var(--space-24);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Decoración de fondo sutil */
.vision-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.vision-deco-orb {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 38vmax;
  height: 38vmax;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.10), transparent 65%);
  border-radius: 50%;
  filter: blur(50px);
  animation: blobFloat2 28s ease-in-out infinite;
}
.vision-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 84, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 84, 100, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black, transparent);
}

.section-vision > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.vision-header {
  max-width: 820px;
  margin-bottom: var(--space-12);
}
.vision-header .firm-eyebrow {
  color: var(--color-teal);
  margin-bottom: var(--space-4);
}
/* El título usa las clases globales .firm-title y .firm-title-em para consistencia */

/* ---------- Feature: texto + imagen 1.1/0.9 ---------- */
.vision-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-14);
  align-items: center;
  margin-bottom: var(--space-16);
}

.vision-feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.vision-lead {
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0;
  position: relative;
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-teal);
}
.vision-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-gray-700);
  margin: 0;
  max-width: 540px;
}

/* Stats inline */
.vision-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(34, 84, 100, 0.1);
}
.vision-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vision-stat-num {
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vision-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-700);
}
.vision-stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(34, 84, 100, 0.2), transparent);
}

/* ---------- Visual: imagen con tag + frame ---------- */
.vision-feature-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  max-height: 460px;
}
.vision-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(34, 84, 100, 0.35),
    0 12px 24px -8px rgba(34, 84, 100, 0.18);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vision-feature-visual:hover .vision-image-wrap {
  transform: translate(-6px, -6px);
}
.vision-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.vision-feature-visual:hover .vision-image {
  transform: scale(1.05);
}
.vision-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(13, 41, 51, 0.65) 100%),
    linear-gradient(135deg, rgba(44, 158, 158, 0.12), transparent 50%);
}
.vision-image-tag {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  z-index: 1;
}
.vision-image-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(44, 158, 158, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(44, 158, 158, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(44, 158, 158, 0.05); }
}

/* Frame decorativo detrás de la imagen */
.vision-image-frame {
  position: absolute;
  inset: 0;
  transform: translate(20px, 20px);
  border: 2px solid var(--color-teal);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.7;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vision-feature-visual:hover .vision-image-frame {
  transform: translate(26px, 26px);
}

/* ---------- Pillars: 4 columnas editoriales ---------- */
.vision-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(34, 84, 100, 0.1);
}
.vision-pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.vision-pillar:hover {
  transform: translateY(-6px);
}

.vision-pillar-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.vision-pillar-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal) 0%, rgba(44, 158, 158, 0.2) 100%);
  transition: background 0.4s ease;
}
.vision-pillar:hover .vision-pillar-line {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-teal) 100%);
}
.vision-pillar-num {
  font-size: 2.2rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 158, 158, 0.5);
  font-feature-settings: 'tnum';
  transition: all 0.4s ease;
}
.vision-pillar:hover .vision-pillar-num {
  -webkit-text-stroke-color: var(--color-teal);
  color: rgba(44, 158, 158, 0.08);
}
.vision-pillar-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin: 0;
  transition: color 0.4s ease;
}
.vision-pillar:hover .vision-pillar-title {
  color: var(--color-teal);
}
.vision-pillar-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-gray-700);
  margin: 0;
}

/* Stagger reveal */
.vision-pillars .vision-pillar:nth-child(1) { transition-delay: 0s; }
.vision-pillars .vision-pillar:nth-child(2) { transition-delay: 0.08s; }
.vision-pillars .vision-pillar:nth-child(3) { transition-delay: 0.16s; }
.vision-pillars .vision-pillar:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .vision-feature {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }
  .vision-feature-visual {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 5 / 4;
  }
  .vision-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }
}

@media (max-width: 768px) {
  .section-vision { padding: var(--space-20) 0; }
  .vision-header { margin-bottom: var(--space-14); }
  .vision-feature { margin-bottom: var(--space-16); gap: var(--space-10); }
  .vision-lead { font-size: 1.1rem; padding-left: var(--space-5); }
  .vision-stats {
    flex-wrap: wrap;
    gap: var(--space-5) var(--space-8);
  }
  .vision-stat-divider { display: none; }
  .vision-feature-visual { aspect-ratio: 4 / 3; }
  .vision-image-frame { transform: translate(12px, 12px); }
  .vision-feature-visual:hover .vision-image-frame { transform: translate(16px, 16px); }
  .vision-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-5);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
  border: 1px solid rgba(34, 84, 100, 0.08);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-teal);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  font-size: 1.5rem;
}

.card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.card-link::after {
  content: '→';
  transition: transform var(--transition-base);
}
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Áreas de práctica destacadas (home) ---------- */
.practice-areas-section {
  background: var(--color-cream);
  position: relative;
}

.practice-card {
  background: var(--color-white);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(34, 84, 100, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.practice-card:hover::before { transform: scaleX(1); }

.practice-card-number {
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--color-teal-light);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  font-feature-settings: 'tnum';
}

.practice-card h3 {
  font-size: var(--fs-xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.practice-card p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

/* ---------- Stats Strip ---------- */
.stats {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-16) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}
.stat-number {
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--color-teal-light);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Bio Card (socios) ---------- */
.bio {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
  padding: var(--space-12) 0;
  border-bottom: 1px solid rgba(34, 84, 100, 0.1);
}
.bio:last-child { border-bottom: none; }
.bio-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.bio-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(85, 195, 195, 0.25), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
}
.bio-photo span { position: relative; z-index: 1; }

.bio-body h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2);
}
.bio-role {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-teal-light);
}
.bio-body p { margin-bottom: var(--space-4); }

@media (max-width: 768px) {
  .bio { grid-template-columns: 1fr; gap: var(--space-6); }
  .bio-photo { max-width: 280px; }
}

/* ---------- Services list (áreas detalle) ---------- */
.service-block {
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(34, 84, 100, 0.1);
}
.service-block:first-child { border-top: none; }

.service-block h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
}
.service-block-num {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.1em;
  font-feature-settings: 'tnum';
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-4);
}
.service-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--color-gray-700);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--color-teal-light);
  border-radius: 50%;
}
.service-list strong { color: var(--color-primary); font-weight: 500; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(85, 195, 195, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(85, 195, 195, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--color-white); margin-bottom: var(--space-6); }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto var(--space-8); font-size: var(--fs-lg); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-12); }
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.contact-info-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}
.contact-info-item h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.contact-info-item p, .contact-info-item a {
  font-size: var(--fs-sm);
  color: var(--color-gray-700);
  line-height: 1.6;
}
.contact-info-item a:hover { color: var(--color-teal); }

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast);
  font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin: var(--space-6) 0;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-teal);
}
.form-consent label {
  font-size: var(--fs-xs);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-gray-700);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-gray-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-6);
  opacity: 0.95;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-sm);
  max-width: 320px;
}

.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer-list li { margin-bottom: var(--space-3); }
.footer-list a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
}
.footer-list a:hover { color: var(--color-teal-light); }

/* Sedes en el footer — bloque compacto con dirección */
.footer-sede {
  margin-bottom: var(--space-5);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}
.footer-sede strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: var(--space-1);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom a:hover { color: var(--color-teal-light); }

/* ---------- WhatsApp floating ---------- */
/* =========================================================
   MEETING HUB — Floating button + panel
   Position: above WhatsApp float
   ========================================================= */
.meet-hub {
  position: fixed;
  bottom: 96px; /* WhatsApp es 60px + 24px bottom + 12px gap */
  right: 24px;
  z-index: 91; /* sobre el whatsapp */
}

/* === Botón flotante === */
.meet-hub-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 84, 100, 0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}
.meet-hub-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(44, 158, 158, 0.55);
}
.meet-hub-btn:active { transform: scale(0.95); }

.meet-hub-btn-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meet-hub-btn-icon svg { width: 100%; height: 100%; }
.meet-hub-btn-icon--close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 22px;
  height: 22px;
}
.meet-hub.is-open .meet-hub-btn-icon--open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}
.meet-hub.is-open .meet-hub-btn-icon--close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Pulse anillo */
.meet-hub-btn-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-teal-light);
  opacity: 0;
  animation: meetHubPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.meet-hub.is-open .meet-hub-btn-pulse { animation: none; opacity: 0; }
@keyframes meetHubPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* === Panel desplegable === */
.meet-hub-panel {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 18px;
  box-shadow:
    0 24px 64px -16px rgba(34, 84, 100, 0.3),
    0 8px 24px -8px rgba(34, 84, 100, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.35s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.4s;
  overflow: hidden;
}
.meet-hub.is-open .meet-hub-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.meet-hub-panel-header {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(44, 158, 158, 0.06), transparent);
  border-bottom: 1px solid rgba(34, 84, 100, 0.06);
}
.meet-hub-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}
.meet-hub-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.2);
  animation: meetHubDot 2s ease-in-out infinite;
}
@keyframes meetHubDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(44, 158, 158, 0.05); }
}
.meet-hub-panel-header h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.meet-hub-panel-header p {
  font-size: 0.82rem;
  color: var(--color-gray-700);
  line-height: 1.5;
  margin: 0;
}

/* === Rooms list === */
.meet-hub-rooms {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meet-hub-room {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.meet-hub-room:hover {
  background: rgba(44, 158, 158, 0.06);
  transform: translateX(2px);
}
.meet-hub-room:hover .meet-hub-room-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Sala principal — destacada */
.meet-hub-room--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: var(--color-white);
}
.meet-hub-room--primary:hover {
  background: linear-gradient(135deg, var(--color-teal), var(--color-primary));
  transform: translateX(2px);
}
.meet-hub-room--primary .meet-hub-room-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}
.meet-hub-room--primary .meet-hub-room-meta { color: rgba(255, 255, 255, 0.78); }
.meet-hub-room--primary .meet-hub-room-arrow { color: var(--color-white); }

/* Iconos de sala */
.meet-hub-room-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 84, 100, 0.06);
  color: var(--color-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.meet-hub-room-icon svg { width: 22px; height: 22px; }
.meet-hub-room--zoom .meet-hub-room-icon:not(.meet-hub-room--primary .meet-hub-room-icon) {
  background: rgba(45, 140, 255, 0.1);
  color: #2d8cff;
}
.meet-hub-room--meet .meet-hub-room-icon {
  background: rgba(0, 130, 95, 0.08);
  color: #00825f;
}

.meet-hub-room-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.meet-hub-room-body strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.meet-hub-room-meta {
  font-size: 0.7rem;
  color: var(--color-gray-700);
  font-weight: 400;
}

.meet-hub-room-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-teal);
  opacity: 0.4;
  transform: translateX(-4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.meet-hub-room-arrow svg { width: 100%; height: 100%; }

/* Divider entre principal y auxiliares */
.meet-hub-divider {
  position: relative;
  text-align: center;
  margin: 8px 0 4px;
  padding: 6px 0;
}
.meet-hub-divider::before,
.meet-hub-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(34, 84, 100, 0.1);
}
.meet-hub-divider::before { left: 14px; }
.meet-hub-divider::after { right: 14px; }
.meet-hub-divider span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  background: rgba(255, 255, 255, 0.98);
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

/* Footer */
.meet-hub-footer {
  padding: 12px 22px 18px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-gray-500);
  border-top: 1px solid rgba(34, 84, 100, 0.05);
  line-height: 1.4;
}

/* === Mobile === */
@media (max-width: 480px) {
  .meet-hub {
    bottom: 84px;
    right: 20px;
  }
  .meet-hub-btn { width: 52px; height: 52px; }
  .meet-hub-btn-icon { width: 24px; height: 24px; }
  .meet-hub-btn-icon--close { width: 20px; height: 20px; }
  .meet-hub-panel {
    width: calc(100vw - 40px);
    max-width: 340px;
  }
  .meet-hub-panel-header { padding: 18px 18px 14px; }
  .meet-hub-panel-header h3 { font-size: 1.05rem; }
  .meet-hub-panel-header p { font-size: 0.78rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .meet-hub-btn-pulse,
  .meet-hub-panel-dot { animation: none !important; }
  .meet-hub-panel,
  .meet-hub-btn-icon,
  .meet-hub-room { transition-duration: 0.001ms !important; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-teal);
  margin: var(--space-6) 0;
}
.divider-center { margin: var(--space-6) auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* =========================================================
   ========== HOME — SECCIONES NIVEL 1000/100 ==========
   ========================================================= */

/* Eyebrow uniforme premium (usado en todas las secciones) */
.firm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-6);
}
.firm-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--color-teal);
  display: block;
}
.firm-eyebrow-light {
  color: var(--color-teal-light);
}
.firm-eyebrow-light .firm-eyebrow-line {
  background: var(--color-teal-light);
}

/* Word magic — variantes para texto oscuro y dorado */
.firm-title-em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, #2c9e9e 0%, #225464 30%, #c89556 65%, #2c9e9e 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 8s linear infinite;
  position: relative;
  display: inline-block;
}
.firm-title-em-gold {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, var(--color-gold-light), var(--color-gold), var(--color-teal-light), var(--color-gold-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 7s linear infinite;
}

/* =========================================================
   1. LA FIRMA — manifesto asimétrico
   ========================================================= */
.section-firm {
  position: relative;
  padding: var(--space-32) 0 var(--space-20);
  background: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}

.firm-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.firm-deco-year {
  position: absolute;
  top: 8%;
  right: -2%;
  font-size: clamp(12rem, 22vw, 28rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 84, 100, 0.06);
  text-stroke: 1.5px rgba(34, 84, 100, 0.06);
  user-select: none;
}
.firm-deco-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(34, 84, 100, 0.05);
}

.firm-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: start;
}
@media (max-width: 960px) {
  .firm-grid { grid-template-columns: 1fr; gap: var(--space-16); }
}

.firm-text { padding-top: var(--space-8); }

.firm-title {
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.firm-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--color-gray-700);
  margin-bottom: var(--space-5);
  font-weight: 400;
}
.firm-text > p:not(.firm-lead) {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
}

.firm-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-10) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(34, 84, 100, 0.1);
  border-bottom: 1px solid rgba(34, 84, 100, 0.1);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pillar-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-teal);
  font-feature-settings: 'tnum';
}
.pillar-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.3;
}

.firm-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px 16px 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1.5px solid var(--color-primary);
  transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  position: relative;
}
.firm-cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.firm-cta-arrow {
  display: inline-flex;
  width: 28px;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.firm-cta-arrow svg { width: 100%; height: auto; }
.firm-cta:hover { color: var(--color-teal); border-bottom-color: transparent; }
.firm-cta:hover::after { transform: scaleX(1); }
.firm-cta:hover .firm-cta-arrow { transform: translateX(8px); }

/* Visual derecho — card grande con imagen + badge flotante */
.firm-visual {
  position: relative;
  padding-bottom: 60px;
}

.firm-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(34, 84, 100, 0.35);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.firm-card:hover { transform: translateY(-6px); }

.firm-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) saturate(0.95) contrast(1.05);
  transform: scale(1.05);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.firm-card:hover .firm-card-img { transform: scale(1.1); }

/* Abstract visual — Desafío + Oportunidad */
.firm-card-abstract {
  background:
    /* Fondo base gradiente profundo */
    linear-gradient(135deg, #1a3d4a 0%, #0d2933 100%),

    /* Capa 1: Líneas convergentes (desafío - pico agudo) */
    linear-gradient(125deg, transparent 30%, rgba(44, 158, 158, 0.35) 45%, transparent 60%),
    linear-gradient(55deg, transparent 30%, rgba(44, 158, 158, 0.35) 45%, transparent 60%),

    /* Capa 2: Expansión (oportunidad - luz que se abre) */
    linear-gradient(90deg, transparent 20%, rgba(212, 169, 96, 0.2) 35%, rgba(212, 169, 96, 0.3) 50%, rgba(212, 169, 96, 0.2) 65%, transparent 80%),

    /* Capa 3: Punto de fuga (convergencia que se abre) */
    radial-gradient(ellipse 40% 80% at 50% 40%, rgba(85, 195, 195, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(212, 169, 96, 0.15) 0%, transparent 60%);

  background-size:
    100% 100%,
    200% 200%,
    200% 200%,
    100% 100%,
    100% 100%,
    100% 100%;

  background-position:
    0 0,
    -25% 0%,
    25% 0%,
    0 0,
    0 0,
    0 0;

  animation: abstractFlow 14s ease-in-out infinite;
  position: relative;
}

.firm-card-abstract::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Brillo/destello sutil superior */
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 20%,
      transparent 50%
    ),
    /* Grid de líneas finas (estructura/orden = desafío) */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(85, 195, 195, 0.06) 79px,
      rgba(85, 195, 195, 0.06) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(85, 195, 195, 0.06) 79px,
      rgba(85, 195, 195, 0.06) 80px
    );
  pointer-events: none;
}

@keyframes abstractFlow {
  0% {
    background-position:
      0 0,
      -25% 0%,
      25% 0%,
      0 0,
      0 0,
      0 0;
  }
  50% {
    background-position:
      0 0,
      0% 5%,
      0% -5%,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 0,
      -25% 0%,
      25% 0%,
      0 0,
      0 0,
      0 0;
  }
}

/* Area card background patterns */
@keyframes bgPatternFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(22px); }
}

@keyframes bgPatternZoom {
  0%, 100% { background-size: 100% 100%; }
  50% { background-size: 104% 104%; }
}

@keyframes bgPatternPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

@keyframes bgPatternCubes {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bgPatternWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes bgPatternRadial {
  0%, 100% { background-size: 50px 50px; }
  50% { background-size: 75px 75px; }
}

@keyframes revealBlurIn {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes scroll-line {
  0%, 100% { height: 24px; opacity: 1; }
  50% { height: 8px; opacity: 0.3; }
}

.firm-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 41, 51, 0.0) 0%, rgba(13, 41, 51, 0.3) 50%, rgba(13, 41, 51, 0.65) 100%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(212, 169, 96, 0.0), transparent 60%);
}

.firm-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  color: var(--color-white);
}

.firm-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: var(--space-6);
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(85, 195, 195, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.firm-card-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--color-teal-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-teal-light);
  animation: pulseDot 2s ease-in-out infinite;
}

.firm-card-quote {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-white);
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;
}
.firm-card-quote em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, var(--color-teal-light), var(--color-gold-light), var(--color-teal-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 9s linear infinite;
}

.firm-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.firm-card-signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.firm-card-signature strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
}
.firm-card-signature span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}
.firm-card-mark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-teal-light);
  opacity: 0.6;
}

.firm-badge {
  position: absolute;
  bottom: 0;
  left: -40px;
  background: var(--color-white);
  padding: var(--space-6) var(--space-8);
  border-radius: 16px;
  box-shadow: 0 16px 48px -8px rgba(34, 84, 100, 0.2);
  border: 1px solid rgba(34, 84, 100, 0.06);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-width: 320px;
}
.firm-badge-num {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.firm-badge-num sup {
  font-size: 1.4rem;
  font-weight: 500;
  vertical-align: super;
  margin-left: -4px;
}
.firm-badge-text {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--color-gray-700);
  font-weight: 500;
}
@media (max-width: 960px) {
  .firm-badge { left: 0; }
}
@media (max-width: 600px) {
  .firm-badge { position: relative; left: 0; bottom: 0; margin-top: -40px; margin-left: 20px; }
}

/* =========================================================
   2. ÁREAS DE PRÁCTICA — editorial showcase
   ========================================================= */
.section-areas {
  position: relative;
  padding: var(--space-32) 0;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
  overflow: hidden;
}
.areas-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(212, 169, 96, 0.05), transparent 60%),
    radial-gradient(ellipse 30% 30% at 10% 90%, rgba(44, 158, 158, 0.06), transparent 60%);
}

.areas-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: end;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .areas-header { grid-template-columns: 1fr; gap: var(--space-6); }
}

.areas-heading {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}

.areas-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-teal);
}

/* =========================================================
   ÁREAS DE PRÁCTICA — Expandable Grid with Click-to-Expand
   ========================================================= */

.areas-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  grid-auto-flow: dense;
}

/* --------- Area Item Base --------- */
.area-item {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-8);
  border: 1px solid rgba(34, 84, 100, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* When expanded, take full width */
.area-item[aria-expanded="true"] {
  grid-column: 1 / -1;
}

/* Drag down the previous item when an even item is expanded */
.area-item.drag-down {
  grid-column: 1 / -1;
}

.area-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid rgba(34, 84, 100, 0.1);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.area-item:hover::before {
  border-color: rgba(44, 158, 158, 0.3);
}

/* --------- Header (always visible) --------- */
.area-item-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-8) var(--space-8);
  position: relative;
  z-index: 1;
  transition: padding 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.area-item-num {
  position: relative;
  font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
  min-width: 60px;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.area-item[data-area="tributario"] .area-item-num { color: var(--color-teal); }
.area-item[data-area="empresarial"] .area-item-num { color: #1e5a6b; }
.area-item[data-area="propiedad-intelectual"] .area-item-num { color: #6b46c1; }
.area-item[data-area="inmobiliario"] .area-item-num { color: #c97a44; }
.area-item[data-area="patrimonial"] .area-item-num { color: #4a8b6b; }
.area-item[data-area="laboral"] .area-item-num { color: #556b7a; }

.area-item:hover .area-item-num {
  transform: scale(1.1);
  text-shadow: 0 0 20px currentColor;
}

.area-item-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.area-item h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.005em;
}

.area-item-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gray-700);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  flex-shrink: 0;
}

/* Icon rotation on expand */
.area-item[aria-expanded="true"] .area-item-icon {
  transform: rotate(180deg);
}

/* --------- Content (expandable) --------- */
.area-item-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 var(--space-8);
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.area-item[aria-expanded="true"] .area-item-content {
  max-height: 600px;
  opacity: 1;
  padding: var(--space-6) var(--space-8) var(--space-8) var(--space-8);
}

.area-item-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}

.area-item-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.area-item-services h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.area-item-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.area-item-services li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-gray-700);
}

.area-item-services li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-teal);
  opacity: 0.6;
  font-size: 0.85rem;
}

.area-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  margin-top: var(--space-3);
}

.area-item-link:hover {
  gap: 14px;
  color: var(--color-primary);
}

/* --------- Tablet: 2-column grid --------- */
@media (max-width: 1200px) {
  .areas-grid {
    gap: var(--space-6);
  }
}

/* --------- Mobile: 1-column stack --------- */
@media (max-width: 880px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .area-item-header {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    padding: var(--space-6);
  }

  .area-item-num {
    font-size: clamp(1.8rem, 1.5rem + 2vw, 2.4rem);
  }

  .area-item h3 {
    font-size: 1rem;
  }

  .area-item-content {
    padding: 0 var(--space-6);
  }

  .area-item[aria-expanded="true"] .area-item-content {
    padding: var(--space-5) var(--space-6) var(--space-6) var(--space-6);
  }
}

/* =========================================================
   3. STATS — cinematic
   ========================================================= */
.section-stats {
  position: relative;
  padding: var(--space-24) 0;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}
.stats-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.stats-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 80% at center, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at center, black, transparent);
}
.stats-deco-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(44, 158, 158, 0.3), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 169, 96, 0.15), transparent 50%);
  filter: blur(60px);
  opacity: 0.6;
}

.stats-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: var(--space-16);
}
.stats-h {
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-white);
  margin: 0;
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat-cell {
  position: relative;
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.4s ease;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255, 255, 255, 0.03); }

.stat-cell::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-teal-light), transparent);
}

@media (max-width: 720px) {
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
}

.stat-cell-num {
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-teal-light);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}
.stat-cell-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  max-width: 180px;
  line-height: 1.4;
}

/* =========================================================
   4. POR QUÉ ELEGIRNOS — manifesto
   ========================================================= */
.section-why {
  position: relative;
  padding: var(--space-32) 0;
  background: var(--color-white);
  overflow: hidden;
}

.why-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-12);
  align-items: end;
  margin-bottom: var(--space-16);
  max-width: 1100px;
}
@media (max-width: 800px) {
  .why-header { grid-template-columns: 1fr; gap: var(--space-4); }
}

.why-heading {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}
.why-header > .reveal:last-child p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-gold);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  position: relative;
  padding: var(--space-10) var(--space-8);
  border-radius: 16px;
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.08);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -20px rgba(34, 84, 100, 0.18);
  border-color: rgba(44, 158, 158, 0.3);
}
.why-card:hover::before { transform: scaleX(1); }

.why-card-num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 5rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34, 84, 100, 0.1);
  text-stroke: 1px rgba(34, 84, 100, 0.1);
  font-feature-settings: 'tnum';
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.why-card:hover .why-card-num {
  -webkit-text-stroke-color: rgba(44, 158, 158, 0.18);
  text-stroke-color: rgba(44, 158, 158, 0.18);
  transform: translate(2px, -2px);
}

.why-card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, rgba(44, 158, 158, 0.08), rgba(85, 195, 195, 0.04));
  border-radius: 12px;
  transition: all 0.4s ease;
}
.why-card-icon svg { width: 28px; height: 28px; }
.why-card:hover .why-card-icon {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: var(--color-white);
  transform: scale(1.08);
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.005em;
  position: relative;
}

.why-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
  position: relative;
}

/* =========================================================
   5. CTA FINAL — climax
   ========================================================= */
.section-cta-final {
  position: relative;
  padding: var(--space-32) 0;
  background: #0d2933;
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}
.cta-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-deco-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.cta-deco-orb-1 {
  width: 50vmax;
  height: 50vmax;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.7), transparent 60%);
  animation: blobFloat1 24s ease-in-out infinite;
}
.cta-deco-orb-2 {
  width: 40vmax;
  height: 40vmax;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(212, 169, 96, 0.45), transparent 60%);
  animation: blobFloat2 30s ease-in-out infinite;
}
.cta-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 70% at center, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, black, transparent);
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cta-final-title {
  font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.cta-final-lead {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-16);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.cta-final-channels {
  display: flex;
  gap: var(--space-10);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.cta-channel svg { width: 18px; height: 18px; color: var(--color-teal-light); }
a.cta-channel:hover { color: var(--color-white); }
a.cta-channel:hover svg { color: var(--color-gold-light); }

/* Reveal stagger para grids */
.areas-grid .reveal:nth-child(1) { transition-delay: 0s; }
.areas-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.areas-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.areas-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.areas-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.areas-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.areas-grid .reveal:nth-child(7) { transition-delay: 0.48s; }

.why-grid .reveal:nth-child(1) { transition-delay: 0s; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.stats-row .reveal:nth-child(1) { transition-delay: 0s; }
.stats-row .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-row .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-row .reveal:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   LA FIRMA — CTA Contact Enhancements
   ========================================================= */

/* CTA Deco Blob (alternative to orb pattern) */
.cta-deco-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(85, 195, 195, 0.2), transparent 70%);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

/* CTA Final Contact Section */
.cta-final-contact {
  display: flex;
  gap: var(--space-10);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-12);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.contact-method strong {
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  font-weight: 700;
}

.contact-method a,
.contact-method span {
  font-size: var(--fs-base);
  color: var(--color-white);
}

.contact-method a {
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-method a:hover {
  color: var(--color-teal-light);
  border-bottom-color: var(--color-teal-light);
}

/* Responsive */
@media (max-width: 768px) {
  .cta-final-actions {
    flex-direction: column;
    gap: var(--space-4);
  }

  .cta-final-actions .btn {
    width: 100%;
  }

  .cta-final-contact {
    flex-direction: column;
    gap: var(--space-6);
  }
}

/* =========================================================
   SOCIOS — Partners editorial premium layout
   ========================================================= */
.section-partners {
  position: relative;
  padding: var(--space-20) 0 var(--space-24);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Decoración de fondo */
.partners-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.partners-deco-orb {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.10), transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blobFloat1 32s ease-in-out infinite;
}
.partners-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 84, 100, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 84, 100, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.section-partners > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.partners-header {
  max-width: 880px;
  margin: 0 auto var(--space-16);
  text-align: center;
}
.partners-header .firm-eyebrow {
  color: var(--color-teal);
  margin-bottom: var(--space-4);
  justify-content: center;
}
.partners-header .firm-title {
  margin-bottom: var(--space-6);
}
.partners-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-gray-700);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Partners Grid — Stack vertical de fichas horizontales ---------- */
.partners-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Partner Card — Layout horizontal ---------- */
.partner-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) 1.4fr;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34, 84, 100, 0.08);
  box-shadow:
    0 1px 2px rgba(34, 84, 100, 0.04),
    0 24px 50px -28px rgba(34, 84, 100, 0.22);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
}
.partner-card:hover {
  box-shadow:
    0 2px 4px rgba(34, 84, 100, 0.04),
    0 36px 70px -28px rgba(34, 84, 100, 0.28);
  border-color: rgba(44, 158, 158, 0.18);
}

/* ---------- Cover: foto editorial (lado izq) ---------- */
.partner-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-gray-100);
  min-height: 540px;
}
.partner-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.partner-card:hover .partner-cover-img {
  transform: scale(1.03);
}
.partner-cover-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(13, 41, 51, 0.20) 80%, rgba(13, 41, 51, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Tag de rol en parte inferior */
.partner-cover-tag {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  z-index: 3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}
.partner-cover-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.20);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ---------- Info (lado derecho) ---------- */
.partner-info {
  padding: var(--space-12) var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Meta: 01 — SOCIO DE DPE LEGAL */
.partner-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-feature-settings: 'tnum';
  margin-bottom: var(--space-1);
}
.partner-meta-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-teal);
  padding: 3px 8px;
  background: rgba(44, 158, 158, 0.10);
  border-radius: 3px;
  line-height: 1;
}
.partner-meta-divider {
  flex-shrink: 0;
  width: 16px;
  height: 1px;
  background: rgba(34, 84, 100, 0.18);
}
.partner-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-700);
}

/* Nombre: inline con shimmer en apellido principal */
.partner-name {
  font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(34, 84, 100, 0.1);
}
.partner-name-em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, #2c9e9e 0%, #225464 30%, #c89556 65%, #2c9e9e 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 8s linear infinite;
  display: inline-block;
}

/* Essay */
.partner-essay {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.partner-essay p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--color-gray-700);
  margin: 0;
  hyphens: auto;
}
.partner-essay p:first-child {
  font-size: 1.02rem;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.65;
}
.partner-essay p:first-child::first-letter {
  font-size: 3em;
  font-weight: 300;
  float: left;
  line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
  color: var(--color-teal);
  letter-spacing: -0.02em;
}
.partner-essay em {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
}

/* Stagger reveal */
.partners-grid .partner-card:nth-child(1) { transition-delay: 0s; }
.partners-grid .partner-card:nth-child(2) { transition-delay: 0.12s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .partner-card {
    grid-template-columns: 1fr;
  }
  .partner-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .partner-info {
    padding: var(--space-10);
  }
}

@media (max-width: 768px) {
  .section-partners {
    padding: var(--space-16) 0 var(--space-20);
  }
  .partners-header {
    margin-bottom: var(--space-12);
  }
  .partners-grid {
    gap: var(--space-12);
  }
  .partner-info {
    padding: var(--space-8) var(--space-6) var(--space-9);
    gap: var(--space-4);
  }
  .partner-cover {
    aspect-ratio: 4 / 3;
  }
  .partner-cover-tag {
    left: var(--space-4);
    bottom: var(--space-4);
    padding: 7px 12px;
    font-size: 0.66rem;
  }
  .partner-name-last {
    font-size: 1.9rem;
  }
  .partner-essay p:first-child::first-letter {
    font-size: 2.6em;
  }
}

/* =========================================================
   ÁREAS DE PRÁCTICA — Layout editorial premium (Tributario)
   ========================================================= */

/* ---------- INTRO: título + bio asimétrico ---------- */
.section-practice-intro {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  background: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}
.practice-intro-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.practice-intro-orb {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.08), transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blobFloat2 30s ease-in-out infinite;
}
.practice-intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 84, 100, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 84, 100, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, black, transparent);
}
.section-practice-intro > .container {
  position: relative;
  z-index: 1;
}

.practice-intro-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-14);
  align-items: center;
}

.practice-intro-head .firm-eyebrow {
  color: var(--color-teal);
  margin-bottom: var(--space-5);
}
.practice-intro-head .firm-title {
  margin: 0;
}

.practice-intro-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-2);
}
.practice-intro-lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-primary);
  margin: 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-teal);
}
.practice-intro-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-gray-700);
  margin: 0;
}

/* ---------- SERVICIOS: grid editorial de cards ---------- */
.section-practice-services {
  position: relative;
  padding: var(--space-20) 0 var(--space-32);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
}

.practice-services-header {
  max-width: 820px;
  margin: 0 auto var(--space-16);
  text-align: center;
}
.practice-services-header .firm-eyebrow {
  color: var(--color-teal);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.practice-services-header .firm-title {
  margin: 0 0 var(--space-6);
}
.practice-services-sub {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0;
  max-width: 680px;
  margin: 0 auto;
}

.practice-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  grid-auto-rows: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Card de servicio individual */
.practice-service {
  position: relative;
  padding: var(--space-10) var(--space-11) var(--space-10);
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(34, 84, 100, 0.08);
  box-shadow:
    0 1px 2px rgba(34, 84, 100, 0.03),
    0 14px 32px -20px rgba(34, 84, 100, 0.18);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  isolation: isolate;
  overflow: hidden;
}
.practice-service::before {
  /* Borde superior accent */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-primary));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.practice-service::after {
  /* Glow sutil al hover */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(44, 158, 158, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.practice-service:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(34, 84, 100, 0.04),
    0 24px 48px -20px rgba(34, 84, 100, 0.25);
  border-color: rgba(44, 158, 158, 0.18);
}
.practice-service:hover::before {
  width: 80%;
}
.practice-service:hover::after {
  opacity: 1;
}

/* Head: número + línea decorativa */
.practice-service-head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.practice-service-num {
  font-size: 2.2rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-teal);
  font-feature-settings: 'tnum';
  transition: all 0.4s ease;
}
.practice-service:hover .practice-service-num {
  color: rgba(44, 158, 158, 0.10);
  -webkit-text-stroke-color: var(--color-primary);
}
.practice-service-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(44, 158, 158, 0.4), rgba(44, 158, 158, 0.05));
  transition: background 0.4s ease;
}
.practice-service:hover .practice-service-line {
  background: linear-gradient(90deg, var(--color-primary), rgba(44, 158, 158, 0.1));
}

/* Título del servicio */
.practice-service-title {
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin: 0;
  transition: color 0.4s ease;
}
.practice-service:hover .practice-service-title {
  color: var(--color-teal);
}

/* Descripción intro de la card */
.practice-service-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-gray-700);
  margin: var(--space-2) 0 var(--space-4);
  font-style: italic;
  border-left: 2px solid rgba(44, 158, 158, 0.3);
  padding-left: var(--space-4);
}

/* Lista de items */
.practice-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.practice-service-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-gray-700);
}
.practice-service-list li::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--color-teal);
  transition: all 0.4s ease;
}
.practice-service:hover .practice-service-list li::before {
  background: var(--color-teal);
  border-color: var(--color-primary);
  transform: scale(1.15);
}
.practice-service-list li strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Stagger reveal */
.practice-services-grid .practice-service:nth-child(1) { transition-delay: 0s; }
.practice-services-grid .practice-service:nth-child(2) { transition-delay: 0.06s; }
.practice-services-grid .practice-service:nth-child(3) { transition-delay: 0.12s; }
.practice-services-grid .practice-service:nth-child(4) { transition-delay: 0.18s; }
.practice-services-grid .practice-service:nth-child(5) { transition-delay: 0.06s; }
.practice-services-grid .practice-service:nth-child(6) { transition-delay: 0.12s; }
.practice-services-grid .practice-service:nth-child(7) { transition-delay: 0.18s; }
.practice-services-grid .practice-service:nth-child(8) { transition-delay: 0.06s; }
.practice-services-grid .practice-service:nth-child(9) { transition-delay: 0.12s; }
.practice-services-grid .practice-service:nth-child(10) { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .practice-intro-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .practice-services-grid {
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .section-practice-intro {
    padding: var(--space-16) 0 var(--space-14);
  }
  .section-practice-services {
    padding: var(--space-16) 0 var(--space-20);
  }
  .practice-services-header {
    margin-bottom: var(--space-12);
  }
  .practice-services-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: var(--space-7);
  }
  .practice-service {
    padding: var(--space-8) var(--space-7) var(--space-7);
    height: auto;
  }
  .practice-service-num {
    font-size: 1.8rem;
  }
  .practice-intro-lead {
    padding-left: var(--space-5);
    font-size: 1.05rem;
  }
}

/* =========================================================
   MEGA MENU — Hint (reemplaza el botón "Ver todas las áreas")
   ========================================================= */
.mega-aside-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.mega-aside-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.22);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* Trigger del mega-menu como botón (sin href) */
a.nav-link-mega[role="button"] {
  cursor: pointer;
}

/* =========================================================
   CLIENTES — Página de logos y sectores
   ========================================================= */

/* Intro section */
.section-clients-intro {
  position: relative;
  padding: var(--space-20) 0 var(--space-8);
  background: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}
.section-clients-intro > .container {
  position: relative;
  z-index: 1;
}
.clients-intro-content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.clients-intro-content .firm-eyebrow {
  color: var(--color-teal);
  justify-content: center;
  margin-bottom: var(--space-5);
}
.clients-intro-content .firm-title {
  margin: 0 0 var(--space-6);
}
.clients-intro-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0;
}

/* Logos section */
.section-clients-logos {
  padding: var(--space-4) 0 var(--space-20);
  background: var(--color-white);
}
.clients-logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-2);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Cada logo (todos iluminados a color) */
.client-logo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.06);
  border-radius: 8px;
  padding: var(--space-3);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}
.client-logo:hover {
  transform: scale(1.12);
  border-color: rgba(44, 158, 158, 0.3);
  box-shadow: 0 14px 32px -10px rgba(34, 84, 100, 0.22);
  z-index: 2;
}
.client-logo img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-logo:hover img {
  transform: scale(1.03);
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.client-logo span {
  /* Placeholder text (cuando no hay imagen) */
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-700);
  text-align: center;
}

/* Confidentiality note */
.clients-confidentiality {
  margin: var(--space-12) auto 0;
  max-width: 600px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-gray-700);
  font-style: italic;
  padding: 0 var(--space-6);
}

/* Sectors section */
.section-clients-sectors {
  position: relative;
  padding: var(--space-20) 0 var(--space-28);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.clients-sectors-header {
  max-width: 820px;
  text-align: center;
  margin: 0 auto var(--space-16);
}
.clients-sectors-header .firm-eyebrow {
  color: var(--color-teal);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.clients-sectors-header .firm-title {
  margin: 0;
}

.clients-sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.client-sector {
  position: relative;
  padding: var(--space-7) var(--space-6);
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-sector:hover {
  transform: translateY(-4px);
  border-color: rgba(44, 158, 158, 0.22);
  box-shadow: 0 12px 28px -14px rgba(34, 84, 100, 0.18);
}
.client-sector-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-teal);
  font-feature-settings: 'tnum';
}
.client-sector-name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* Responsive Clientes */
@media (max-width: 1200px) {
  .clients-logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .section-clients-intro {
    padding: var(--space-16) 0 var(--space-8);
  }
  .section-clients-logos {
    padding: var(--space-4) 0 var(--space-16);
  }
  .clients-logos-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-2);
  }
}

/* =========================================================
   OFFICES SECTION — Premium Cards
   ========================================================= */

.section-offices {
  padding: var(--space-20) 0 var(--space-24);
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.offices-header {
  max-width: 700px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.offices-header .firm-eyebrow {
  justify-content: center;
  margin-bottom: var(--space-4);
}

.offices-header h2 {
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0;
}

.offices-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-16), 7vw, var(--space-24));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Office Card */
.office-card {
  position: relative;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.08);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.office-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 56px rgba(34, 84, 100, 0.14);
  border-color: rgba(44, 158, 158, 0.25);
}

.office-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.office-card-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Gradient principal: la curva empieza arriba para cubrir el tag */
    linear-gradient(180deg,
      rgba(13, 41, 51, 0) 0%,
      rgba(13, 41, 51, 0.10) 15%,
      rgba(13, 41, 51, 0.45) 35%,
      rgba(13, 41, 51, 0.75) 55%,
      rgba(13, 41, 51, 0.90) 75%,
      rgba(13, 41, 51, 0.97) 100%),
    /* Tinte sutil global teal para unificar con la marca */
    linear-gradient(135deg, rgba(44, 158, 158, 0.10), transparent 60%);
  z-index: 2;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.office-card:hover .office-card-overlay {
  background:
    linear-gradient(180deg,
      rgba(13, 41, 51, 0) 0%,
      rgba(13, 41, 51, 0.08) 15%,
      rgba(13, 41, 51, 0.40) 35%,
      rgba(13, 41, 51, 0.70) 55%,
      rgba(13, 41, 51, 0.87) 75%,
      rgba(13, 41, 51, 0.95) 100%),
    linear-gradient(135deg, rgba(44, 158, 158, 0.14), transparent 60%);
}

.office-card-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-5);
}

.office-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.office-card-tag-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 50%;
}

.office-card-city {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 12px rgba(13, 41, 51, 0.4);
}

.office-card-region {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

.office-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  max-width: 100%;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 6px rgba(13, 41, 51, 0.35);
}

.office-card-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.office-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.office-contact-item strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  display: block;
  margin-bottom: 4px;
}

.office-contact-item a,
.office-contact-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  line-height: 1.6;
}

.office-contact-address {
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.office-contact-item a:hover {
  color: var(--color-teal-light);
  transform: translateX(4px);
}

/* Staggered reveals */
.office-card:nth-child(1) {
  animation-delay: 0s;
}

.office-card:nth-child(2) {
  animation-delay: 0.15s;
}

/* Responsive offices */
@media (max-width: 960px) {
  .offices-cards-grid {
    gap: var(--space-6);
  }

  .office-card {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .section-offices {
    padding: var(--space-16) 0 var(--space-20);
  }

  .offices-header h2 {
    font-size: 2rem;
  }
}

/* =========================================================
   MOBILE AUDIT — Refinamientos integrales para version mobile
   Optimizado para 320px - 768px
   Filosofía: menos aire, mejor jerarquía, touch-friendly
   ========================================================= */

/* ---------- TABLET MEDIA (max 880px) ---------- */
@media (max-width: 880px) {
  /* Container con padding lateral más cómodo */
  .container,
  .container-narrow {
    padding: 0 var(--space-5);
  }

  /* Secciones globales — reducir paddings excesivos */
  .section { padding: var(--space-16) 0; }
  .section-sm { padding: var(--space-12) 0; }
  .section-lg { padding: var(--space-20) 0; }
  .section-heading { margin-bottom: var(--space-10); }

  /* Tipografía global ajustada */
  h1 { letter-spacing: -0.015em; }
  h2 { letter-spacing: -0.01em; }
}

/* ---------- MOBILE GENERAL (max 768px) ---------- */
@media (max-width: 768px) {

  /* === CONTAINER y SECCIONES === */
  .container,
  .container-narrow {
    padding: 0 var(--space-4);
  }

  .section { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-10) 0; }
  .section-lg { padding: var(--space-16) 0; }
  .section-heading { margin-bottom: var(--space-8); }

  /* === BOTONES — touch-friendly === */
  .btn {
    padding: 0.85rem 1.4rem;
    font-size: 0.8rem;
    min-height: 44px;
  }

  /* === HERO HOME — distribución arriba+abajo para que se vea la foto === */
  .hero {
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-8);
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: stretch;
  }
  /* Hacer que el container y hero-content crezcan para distribuir el contenido */
  .hero > .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 6px 14px 6px 12px;
    margin-bottom: var(--space-4);
    letter-spacing: 0.22em;
  }
  /* Title 5% más pequeño en mobile */
  .hero-title {
    font-size: clamp(2.28rem, 1.14rem + 3.42vw, 4.56rem);
    margin-bottom: var(--space-3);
  }
  .hero-title-rotator { margin-bottom: var(--space-4); }
  .hero-rotator-dots { margin-bottom: 0; }

  /* El lead empuja todo el bloque inferior hacia el fondo
     → deja espacio en el medio donde se ve la foto del hero */
  .hero-lead {
    margin-top: auto;
    padding-top: var(--space-8);
  }

  /* CTAs en 2 columnas — lado a lado en mobile */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    min-height: 44px;
  }

  /* === PAGE HERO (interior pages) === */
  .page-hero {
    padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-14);
    min-height: 56vh;
  }
  .page-hero-content { padding: 0; }
  .page-hero-title { margin-bottom: var(--space-4); }
  .page-hero-lead {
    font-size: 1rem;
    line-height: 1.55;
  }
  .page-hero .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-4);
  }
  /* Scroll indicator más pequeño y discreto */
  .hero-scroll {
    bottom: var(--space-6);
    font-size: 0.65rem;
  }
  .hero-scroll-line { height: 36px; }

  /* === FIRM SECTION — aire moderado desde el hero (25% del space-32) === */
  .section-firm {
    padding: var(--space-8) 0 var(--space-6);
  }
  /* Reducir 50% el aire entre el CTA "Conozca más" y la card de propósito */
  .firm-grid { gap: var(--space-8); }
  .firm-deco-year {
    font-size: clamp(8rem, 28vw, 14rem);
    top: 2%;
    right: -8%;
  }
  .firm-text { padding-top: 0; }
  .firm-title { margin-bottom: var(--space-5); }
  .firm-eyebrow { margin-bottom: var(--space-3); }
  .firm-text > p:not(.firm-lead) {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: var(--space-5);
  }
  /* Pillars 01/02/03 ocultos en mobile — no aportan valor visual y compiten con el texto */
  .firm-pillars { display: none; }

  .firm-cta {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    padding: 12px 0;
  }

  /* === FIRM CARD — compacta, sin aspect-ratio vertical en mobile === */
  /* Quitamos padding-bottom del visual (era para el badge superpuesto) */
  .firm-visual { padding-bottom: 0; }
  .firm-card {
    /* Cambiamos de 4/5 (vertical) a 3/2 (wide) — mucho más compacta */
    aspect-ratio: 3/2;
    border-radius: 14px;
  }
  .firm-card-content { padding: var(--space-4); }
  .firm-card-tag {
    font-size: 0.55rem;
    padding: 4px 9px;
    gap: 6px;
    margin-bottom: var(--space-3);
    letter-spacing: 0.15em;
  }
  .firm-card-tag-dot { width: 5px; height: 5px; }
  .firm-card-quote {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: var(--space-3);
  }
  .firm-card-mark { font-size: 0.75rem; }
  .firm-card-signature strong { font-size: 0.8rem; letter-spacing: 0.03em; }
  .firm-card-signature span { font-size: 0.65rem; }
  .firm-card-foot { padding-top: var(--space-2); }

  /* === FIRM BADGE — superpuesto en esquina superior derecha (sobre el cielo) === */
  .firm-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    left: auto;
    bottom: auto;
    margin: 0;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
    max-width: 180px;
    width: auto;
    align-items: center;
    z-index: 5;
    box-shadow: 0 8px 24px -4px rgba(34, 84, 100, 0.25);
  }
  .firm-badge-num {
    font-size: 1.7rem;
    line-height: 1;
  }
  .firm-badge-num sup { font-size: 0.85rem; }
  .firm-badge-text {
    font-size: 0.58rem;
    line-height: 1.25;
    letter-spacing: 0;
  }

  /* === SECTION AREAS — más aire desde la card de arriba, tipografía -5% === */
  /* Padding-bottom amplio para que la card 6 tenga aire antes del fin de sección */
  .section-areas { padding: var(--space-16) 0 var(--space-20); }
  .areas-header { margin-bottom: var(--space-12); }
  /* Heading "Especialización en cada frente" — 5% más pequeño */
  .areas-heading {
    font-size: clamp(1.9rem, 1.14rem + 2.28vw, 3.23rem);
  }
  /* Subtítulo "Seis disciplinas..." — 5% más pequeño */
  .areas-intro {
    font-size: 1rem;
    padding-left: var(--space-4);
  }
  /* Más aire entre el subtítulo y la primera card */
  .areas-grid {
    gap: var(--space-4);
    margin-top: var(--space-3);
  }
  /* Eliminar gap interno del area-item cuando está colapsado — eso es lo que generaba
     el aire fantasma debajo del texto. Solo aplica gap al expandirse */
  .area-item { gap: 0; }
  .area-item[aria-expanded="true"] { gap: var(--space-6); }
  /* Cards de áreas: padding cómodo y simétrico arriba/abajo */
  .area-item-header {
    padding: var(--space-6);
    gap: var(--space-4);
  }
  .area-item-num {
    font-size: clamp(1.62rem, 1.35rem + 1.8vw, 2.16rem);
  }
  .area-item h3 {
    font-size: 0.99rem;
  }

  /* === SECTION STATS — 4 columnas con aire balanceado arriba/abajo === */
  .section-stats { padding: var(--space-12) 0 var(--space-16); }
  /* Reducimos el espacio entre el título y el row */
  .stats-heading { margin-bottom: var(--space-6); }
  .stats-row {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0;
  }
  /* Más padding vertical en cada celda → reparte el aire arriba y abajo del row */
  .stat-cell {
    padding: var(--space-7) var(--space-3);
    border-right: 1px solid rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
    text-align: left;
  }
  .stat-cell:last-child { border-right: none !important; }
  .stat-cell-num {
    font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.7rem);
    margin-bottom: var(--space-2);
  }
  .stat-cell-label {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    max-width: 100%;
  }

  /* === SECTION WHY === */
  .section-why { padding: var(--space-14) 0; }
  .why-grid { gap: var(--space-4); }
  .why-card {
    padding: var(--space-6);
  }
  .why-card h3 { font-size: 1.05rem; }
  .why-card p { font-size: 0.9rem; line-height: 1.6; }
  .why-card-num { font-size: 0.7rem; }
  .why-card-icon { width: 44px; height: 44px; margin-bottom: var(--space-4); }
  .why-card-icon svg { width: 22px; height: 22px; }

  /* === CTA STRIP === */
  .cta-strip { padding: var(--space-14) 0; }
  .cta-strip h2 { font-size: 1.7rem; }
  .cta-strip p { font-size: 1rem; margin-bottom: var(--space-6); }

  /* === CTA FINAL — balance vertical de toda la sección === */
  .section-cta-final { padding: var(--space-16) 0 var(--space-14); }
  .cta-final-content { display: flex; flex-direction: column; align-items: center; }
  .cta-final-title {
    margin-bottom: var(--space-5);
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  }
  .cta-final-lead {
    font-size: 0.95rem;
    margin-bottom: var(--space-8);
    line-height: 1.55;
  }
  /* CTAs en 2 columnas — lado a lado */
  .cta-final-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--space-8);
    flex-wrap: nowrap;
  }
  .cta-final-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-height: 44px;
  }
  /* Channels en una sola fila — email, whatsapp, ubicación */
  .cta-final-channels {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-3);
    justify-content: center;
    padding-top: var(--space-6);
    width: 100%;
  }
  .cta-channel {
    font-size: 0.6rem;
    gap: 5px;
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 0;
  }
  .cta-channel svg { width: 12px; height: 12px; flex-shrink: 0; }
  /* También aplicar el grid para la-firma (.cta-final-contact) */
  .cta-final-contact {
    padding-top: var(--space-6);
    gap: var(--space-4);
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .contact-method {
    flex: 1;
    text-align: center;
  }
  .contact-method strong {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
  .contact-method a,
  .contact-method span { font-size: 0.7rem; }

  /* === VISION SECTION (Alcance Global) — feel editorial similar a desktop === */
  .section-vision { padding: var(--space-14) 0; }
  .vision-header { margin-bottom: var(--space-10); }
  .vision-feature {
    margin-bottom: var(--space-12);
    gap: var(--space-8);
  }
  .vision-feature-visual {
    max-width: 100%;
    aspect-ratio: 5 / 4;
  }
  .vision-image-frame { transform: translate(10px, 10px); }
  .vision-lead { font-size: 1.05rem; padding-left: var(--space-4); }
  .vision-text { font-size: 0.95rem; line-height: 1.7; }
  .vision-stats {
    gap: var(--space-6);
    padding-top: var(--space-6);
  }
  .vision-stat-num { font-size: 1.9rem; }
  .vision-stat-label { font-size: 0.7rem; letter-spacing: 0.1em; }

  /* Pillars en 2 columnas (como tablet) — mantiene ritmo editorial */
  .vision-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-5);
    padding-top: var(--space-8);
  }
  .vision-pillar { padding: var(--space-1) 0; gap: var(--space-3); }
  .vision-pillar-top { gap: var(--space-2); }
  .vision-pillar-num { font-size: 1.6rem; }
  .vision-pillar-title { font-size: 0.95rem; line-height: 1.25; }
  .vision-pillar-text { font-size: 0.8rem; line-height: 1.5; }

  /* === OFFICES SECTION — Cards lado a lado en mobile, proporcionales === */
  .section-offices { padding: var(--space-12) 0 var(--space-14); }
  .offices-header { margin-bottom: var(--space-10); }
  .offices-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: 0;
  }
  .office-card {
    height: 360px;
    border-radius: 12px;
  }
  /* Padding cómodo proporcional al desktop (que usa space-12) */
  .office-card-content {
    padding: var(--space-5) var(--space-4);
    gap: var(--space-3);
  }
  .office-card-tag {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }
  .office-card-tag-dot { width: 5px; height: 5px; }
  .office-card-city {
    font-size: 1.35rem;
    margin-bottom: var(--space-1);
  }
  .office-card-text {
    font-size: 0.72rem;
    line-height: 1.45;
    margin-bottom: var(--space-3);
  }
  .office-card-contact {
    gap: var(--space-2);
    padding-top: var(--space-3);
  }
  .office-contact-item strong {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }
  .office-contact-item a,
  .office-contact-item span,
  .office-contact-address {
    font-size: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0;
  }

  /* === SOCIOS / PARTNERS === */
  .section-partners { padding: var(--space-14) 0; }
  .partners-header { margin-bottom: var(--space-10); }
  .partner-info {
    padding: var(--space-6) var(--space-5) var(--space-7);
    gap: var(--space-3);
  }

  /* === PRACTICE PAGES (áreas detalle) === */
  .section-practice-intro { padding: var(--space-14) 0 var(--space-10); }
  .section-practice-services { padding: var(--space-12) 0 var(--space-16); }
  .practice-services-header { margin-bottom: var(--space-10); }
  /* En mobile las cards van en 1 columna — desactivar altura uniforme
     para que cada card tome su altura natural según contenido */
  .practice-services-grid {
    grid-auto-rows: auto;
    gap: var(--space-7);
  }
  .practice-service {
    padding: var(--space-6) var(--space-5);
    height: auto;
  }

  /* === CLIENTES === */
  .section-clients-intro { padding: var(--space-12) 0 var(--space-6); }
  .section-clients-logos { padding: var(--space-3) 0 var(--space-12); }
  .clients-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .clients-confidentiality {
    font-size: 0.78rem;
    margin-top: var(--space-8);
  }

  /* === CONTACTO === */
  .contact-grid { gap: var(--space-10); }
  .contact-info-item {
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }
  .contact-info-item-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .contact-info-item h4 {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .contact-info-item p,
  .contact-info-item a { font-size: 0.88rem; }

  /* === FORMS === */
  .form-field { margin-bottom: var(--space-4); }
  .form-field label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    padding: 0.85rem 0.95rem;
    font-size: 16px; /* Previene zoom en iOS */
    min-height: 48px;
  }
  .form-field textarea { min-height: 120px; }
  .form-row { gap: var(--space-3); }
  .form-consent { margin: var(--space-5) 0; }

  /* === FOOTER ===
     Layout mobile:
       Fila 1: Brand (logo + descripción) — full width
       Fila 2: La Firma | Áreas de práctica — 2 columnas
       Fila 3: Contacto — full width, centrado */
  .site-footer { padding: var(--space-12) 0 var(--space-6); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
    margin-bottom: var(--space-10);
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: var(--space-2);
  }
  /* Contacto (último div del grid) ocupa toda la fila y se centra */
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand img {
    height: 48px;
    margin-bottom: var(--space-4);
  }
  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.55;
  }
  .footer-heading {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-3);
  }
  .footer-list li { margin-bottom: var(--space-2); }
  .footer-list a { font-size: 0.85rem; }
  .footer-bottom {
    padding-top: var(--space-6);
    font-size: 0.75rem;
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* === WhatsApp Float — más pequeño === */
  /* === CARDS GENÉRICAS === */
  .card { padding: var(--space-6); }
  .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-4);
    font-size: 1.2rem;
  }

  /* === BIO (socios detalle) === */
  .bio-photo { max-width: 220px; }

  /* === REDUCCIÓN DE DECORACIONES === */
  .vision-deco-orb,
  .partners-deco-orb,
  .practice-intro-orb {
    width: 60vmax;
    height: 60vmax;
  }
  .cta-deco-blob {
    width: 300px;
    height: 300px;
  }
}

/* ---------- MOBILE PEQUEÑO (max 480px) ---------- */
@media (max-width: 480px) {

  .container,
  .container-narrow {
    padding: 0 var(--space-4);
  }

  /* Section paddings aún más reducidos */
  .section { padding: var(--space-10) 0; }
  .section-sm { padding: var(--space-8) 0; }
  .section-lg { padding: var(--space-12) 0; }

  /* Botones full-width donde aplique */
  .hero-actions .btn,
  .cta-final-actions .btn {
    width: 100%;
  }

  /* === HERO === */
  .hero-eyebrow {
    font-size: 0.65rem;
    padding: 5px 12px;
    margin-bottom: var(--space-5);
  }

  /* === PAGE HERO === */
  .page-hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-12);
    min-height: 48vh;
  }
  .page-hero-lead {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* === FIRM === */
  /* En iPhone (≤480px) mantener consistente con el breakpoint 768px */
  .section-firm { padding: var(--space-8) 0 var(--space-6); }
  .firm-deco-year { font-size: 8rem; }
  /* En mobile pequeño la card aún más wide */
  .firm-card { aspect-ratio: 16/9; }
  .firm-card-content { padding: var(--space-3); }
  .firm-card-quote { font-size: 0.85rem; line-height: 1.25; margin-bottom: var(--space-2); }
  .firm-card-tag { font-size: 0.5rem; padding: 3px 8px; margin-bottom: var(--space-2); }
  .firm-card-signature strong { font-size: 0.7rem; }
  .firm-card-signature span { font-size: 0.6rem; }
  .firm-card-mark { font-size: 0.65rem; }
  .firm-badge {
    top: var(--space-2);
    right: var(--space-2);
    padding: var(--space-2);
    gap: 6px;
    max-width: 150px;
  }
  .firm-badge-num { font-size: 1.4rem; }
  .firm-badge-num sup { font-size: 0.7rem; }
  .firm-badge-text { font-size: 0.5rem; line-height: 1.2; }

  /* === OFFICES — mobile pequeño === */
  .offices-cards-grid { gap: var(--space-2); }
  .office-card { height: 320px; border-radius: 10px; }
  .office-card-content { padding: var(--space-4) var(--space-3); gap: var(--space-2); }
  .office-card-tag { font-size: 0.5rem; }
  .office-card-city { font-size: 1.15rem; }
  .office-card-text { font-size: 0.65rem; line-height: 1.4; margin-bottom: var(--space-2); }
  .office-card-contact { padding-top: var(--space-2); gap: var(--space-1); }
  .office-contact-item strong { font-size: 0.5rem; }
  .office-contact-item a,
  .office-contact-item span,
  .office-contact-address { font-size: 0.62rem; line-height: 1.35; }

  /* === CTA FINAL === */
  .section-cta-final { padding: var(--space-12) 0; }
  .cta-final-lead { font-size: 0.88rem; }
  .contact-method a,
  .contact-method span { font-size: 0.88rem; }

  /* === CLIENTES grid más estrecho === */
  .clients-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* === FOOTER — mantener 2 columnas también en iPhone === */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-5);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* === STATS === */
  .stats-row { grid-template-columns: 1fr; gap: var(--space-5); }
  .stat-number { font-size: 2.4rem; }

  /* === Service block === */
  .service-block { padding: var(--space-6) 0; }

  /* === Vision === */
  .vision-feature-visual { aspect-ratio: 4 / 3; }
  .vision-image-frame { transform: translate(8px, 8px); }

  /* === Page hero title tamaño optimizado === */
  .page-hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.1;
  }
}

/* ---------- MOBILE EXTRA PEQUEÑO (max 360px) ---------- */
@media (max-width: 360px) {
  .container,
  .container-narrow { padding: 0 var(--space-3); }

  .page-hero-title { font-size: 1.85rem; }
  .firm-title { font-size: 1.7rem; }
  .firm-badge-num { font-size: 1.8rem; }
  .firm-badge-text { font-size: 0.65rem; }
  .office-card { height: 300px; }
  .office-card-content { padding: var(--space-3) var(--space-2); }
  .office-card-city { font-size: 1.05rem; }
  .office-card-text { font-size: 0.6rem; }
  .office-contact-item a,
  .office-contact-item span,
  .office-contact-address { font-size: 0.58rem; }

  /* Hero scroll oculto en pantallas muy pequeñas */
  .hero-scroll { display: none; }
}

/* ---------- TOUCH-FRIENDLY — Cualquier mobile ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Touch targets mínimos */
  .nav-link,
  .nav-cta,
  .btn,
  .footer-list a,
  .firm-cta {
    min-height: 44px;
  }

  /* Desactivar hover-only effects que no sirven en touch */
  .firm-card:hover { transform: none; }
  .office-card:hover { transform: none; }
  .vision-pillar:hover { transform: none; }
  .why-card:hover { transform: none; }
}

/* =========================================================
   LANGUAGE TOGGLE — ES / EN
   ========================================================= */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin-right: var(--space-3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
/* Cuando el header está sobre fondo claro (scrolled) */
.site-header.scrolled .lang-toggle,
body[data-hero="false"] .lang-toggle {
  background: rgba(34, 84, 100, 0.06);
  border-color: rgba(34, 84, 100, 0.12);
}

.lang-toggle button {
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  line-height: 1;
  min-width: 28px;
}
.site-header.scrolled .lang-toggle button,
body[data-hero="false"] .lang-toggle button {
  color: var(--color-gray-700);
}

.lang-toggle button:hover {
  color: var(--color-white);
}
.site-header.scrolled .lang-toggle button:hover,
body[data-hero="false"] .lang-toggle button:hover {
  color: var(--color-primary);
}

.lang-toggle button.is-active {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: var(--color-white) !important;
  box-shadow: 0 2px 8px rgba(44, 158, 158, 0.3);
}

/* Mobile: integrado en el menu */
@media (max-width: 880px) {
  /* Ocultar en la barra del header en mobile (lo metemos en el menu) */
  .site-header .nav-cta-wrap .lang-toggle {
    display: none;
  }
  /* Toggle ARRIBA del menú mobile (antes de la lista) */
  .lang-toggle-mobile {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin: 80px 24px 0;
    width: fit-content;
    align-self: flex-start;
    position: relative;
    z-index: 2;
  }
  .lang-toggle-mobile button {
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    min-width: 36px;
  }
  .lang-toggle-mobile button.is-active {
    background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(44, 158, 158, 0.35);
  }

  /* === LANG DROPDOWN MOBILE === (variante con banderas) */
  .lang-dropdown {
    display: none;
  }

/* =========================================================
   LANG DROPDOWN — desktop (banderitas + chevron)
   ========================================================= */
}

/* nav-cta-wrap como flex container en desktop (asegura alineación del dropdown + Hablemos) */
@media (min-width: 881px) {
  .site-header .nav-cta-wrap {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
  }
}

.lang-dropdown {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}
.site-header.scrolled .lang-dropdown-toggle,
body[data-hero="false"] .lang-dropdown-toggle {
  background: rgba(34, 84, 100, 0.06);
  border-color: rgba(34, 84, 100, 0.12);
}
.lang-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}
.site-header.scrolled .lang-dropdown-toggle:hover,
body[data-hero="false"] .lang-dropdown-toggle:hover {
  background: rgba(34, 84, 100, 0.12);
}
.lang-flag {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}
.lang-chevron {
  width: 9px;
  height: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-header.scrolled .lang-chevron,
body[data-hero="false"] .lang-chevron {
  color: var(--color-gray-700);
}
.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(34, 84, 100, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0.25s;
  pointer-events: none;
  z-index: 100;
}
.lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-primary);
  text-align: left;
  font-weight: 500;
  transition: background 0.2s ease;
}
.lang-dropdown-menu button:hover {
  background: rgba(44, 158, 158, 0.08);
}
.lang-dropdown-menu button.is-active {
  background: rgba(44, 158, 158, 0.12);
  font-weight: 700;
}
.lang-dropdown-menu .lang-flag {
  font-size: 1.05rem;
}

/* Mobile: ocultar dropdown, mostrar el mobile toggle */
@media (max-width: 880px) {
  .lang-dropdown { display: none !important; }
  /* Cuando el toggle está arriba, ajustar el padding-top de nav-list */
  .nav-list {
    padding-top: 24px !important;
  }

  /* CTA "Hablemos" dentro del menú mobile (después de los items) */
  .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: var(--space-8) 24px 0;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
    background-size: 200% 200%;
    background-position: 0% 0%;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(44, 158, 158, 0.35);
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    text-decoration: none;
    opacity: 0;
    transform: translateX(30px);
    position: relative;
    z-index: 1;
    align-self: flex-start;
    width: calc(100% - 48px);
    max-width: 320px;
  }
  .nav-menu.open .nav-cta-mobile {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
  }
  .nav-cta-mobile svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  }
  .nav-cta-mobile:hover {
    background-position: 100% 100%;
    box-shadow: 0 12px 32px rgba(44, 158, 158, 0.5);
    color: var(--color-white);
  }
  .nav-cta-mobile:hover svg { transform: translateX(4px); }
}

/* En desktop, ocultar el mobile-only toggle y el CTA mobile */
@media (min-width: 881px) {
  .lang-toggle-mobile,
  .nav-cta-mobile { display: none !important; }
}

/* =========================================================
   CONTACTO — Premium design
   ========================================================= */
.section-contact {
  position: relative;
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-cream) 100%);
  overflow: hidden;
  isolation: isolate;
}

.contact-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-deco-orb {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(44, 158, 158, 0.10), transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blobFloat1 30s ease-in-out infinite;
}
.contact-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 84, 100, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 84, 100, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.section-contact > .container {
  position: relative;
  z-index: 1;
}

/* Layout asimétrico */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-12), 5vw, var(--space-20));
  align-items: start;
}

/* ---------- Lado izquierdo: Info ---------- */
.contact-info-side .firm-title {
  margin-bottom: var(--space-6);
}
.contact-info-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin-bottom: var(--space-10);
  max-width: 460px;
}

/* Canales de contacto en cards */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.contact-channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-teal), var(--color-primary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-channel-card:hover {
  transform: translateX(6px);
  border-color: rgba(44, 158, 158, 0.25);
  box-shadow: 0 12px 32px -12px rgba(34, 84, 100, 0.18);
}
.contact-channel-card:hover::before { transform: scaleY(1); }

.contact-channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(44, 158, 158, 0.1), rgba(85, 195, 195, 0.05));
  border-radius: 12px;
  color: var(--color-teal);
  transition: all 0.4s ease;
}
.contact-channel-icon svg { width: 22px; height: 22px; }
.contact-channel-card:hover .contact-channel-icon {
  background: linear-gradient(135deg, var(--color-teal), var(--color-primary));
  color: var(--color-white);
  transform: scale(1.05);
}
/* WhatsApp variant */
.contact-channel-wa .contact-channel-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.04));
  color: #25d366;
}
.contact-channel-wa:hover .contact-channel-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--color-white);
}

.contact-channel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.contact-channel-body strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.contact-channel-body span {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  font-weight: 500;
}
.contact-channel-arrow {
  font-size: 1.1rem;
  color: var(--color-teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-channel-card:hover .contact-channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Sedes */
.contact-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(34, 84, 100, 0.08);
}

.contact-sedes {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}
.sede-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid rgba(34, 84, 100, 0.08);
  border-left: 3px solid var(--color-teal);
  border-radius: 0 12px 12px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sede-card:hover {
  border-left-color: var(--color-primary);
  box-shadow: 0 8px 24px -8px rgba(34, 84, 100, 0.15);
}
.sede-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-2);
}
.sede-card-tag-dot {
  width: 5px;
  height: 5px;
  background: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(44, 158, 158, 0.15);
}
.sede-card-city {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.sede-card-address {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0;
}

/* Horario */
.contact-schedule {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(44, 158, 158, 0.06), rgba(85, 195, 195, 0.02));
  border-radius: 12px;
  border: 1px solid rgba(44, 158, 158, 0.1);
}
.contact-schedule-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}
.contact-schedule-dot {
  width: 8px;
  height: 8px;
  background: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(44, 158, 158, 0.2);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.contact-schedule p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-primary);
  margin: 0;
  font-weight: 500;
}

/* ---------- Lado derecho: Form ---------- */
.contact-form-side {
  position: sticky;
  top: 120px;
}

.contact-form-card {
  padding: clamp(var(--space-8), 3vw, var(--space-12));
  background: var(--color-white);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(34, 84, 100, 0.04),
    0 24px 48px -16px rgba(34, 84, 100, 0.18);
  border: 1px solid rgba(34, 84, 100, 0.06);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-primary), var(--color-teal));
  background-size: 200% 100%;
  animation: shimmerText 8s linear infinite;
}

.contact-form-title {
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: var(--space-4) 0 var(--space-4);
}

.contact-form-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
}

/* Form refinements */
.contact-form .form-field input,
.contact-form .form-field textarea,
.contact-form .form-field select {
  background: rgba(244, 246, 247, 0.5);
  border-color: rgba(34, 84, 100, 0.1);
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus,
.contact-form .form-field select:focus {
  background: var(--color-white);
  border-color: var(--color-teal);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-top: var(--space-4);
}

/* ============ Anti-bot CAPTCHA (math) ============ */
.form-captcha {
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, rgba(44, 158, 158, 0.04), rgba(85, 195, 195, 0.02));
  border: 1px solid rgba(44, 158, 158, 0.15);
  border-radius: 10px;
}
.form-captcha label {
  display: block;
  margin-bottom: var(--space-3);
}
.form-captcha-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.form-captcha-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.form-captcha-question {
  font-size: 1.15rem;
  font-weight: 500;
  font-feature-settings: 'tnum';
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-white);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(34, 84, 100, 0.1);
  user-select: none;
  min-width: 110px;
  text-align: center;
}
#captcha-input {
  width: 80px !important;
  padding: 0.7rem 0.8rem !important;
  font-size: 1.05rem !important;
  text-align: center;
  font-feature-settings: 'tnum';
  font-weight: 500;
  min-height: 44px;
  border-radius: 8px;
}
#captcha-input.is-valid {
  border-color: rgba(37, 211, 102, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12) !important;
}
#captcha-input.is-invalid {
  border-color: rgba(220, 38, 38, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10) !important;
}
.form-captcha-status {
  font-size: 1.4rem;
  font-weight: 700;
  width: 24px;
  display: inline-block;
  text-align: center;
}

/* Form result message */
.form-result {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}
.form-result.form-result-loading,
.form-result.form-result-success,
.form-result.form-result-error {
  display: block;
}
.form-result-loading {
  background: rgba(44, 158, 158, 0.08);
  border: 1px solid rgba(44, 158, 158, 0.2);
  color: var(--color-primary);
}
.form-result-success {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #128c7e;
}
.form-result-error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}
.form-result a { text-decoration: underline; }

/* ---------- Responsive contacto ---------- */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .contact-form-side {
    position: static;
  }
}

@media (max-width: 768px) {
  .section-contact {
    padding: var(--space-14) 0 var(--space-16);
  }
  .contact-layout {
    gap: var(--space-10);
  }
  .contact-info-intro {
    font-size: 0.95rem;
    margin-bottom: var(--space-8);
  }
  .contact-channels {
    gap: var(--space-3);
    margin-bottom: var(--space-10);
  }
  .contact-channel-card {
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
  }
  .contact-channel-icon {
    width: 42px;
    height: 42px;
  }
  .contact-channel-icon svg { width: 20px; height: 20px; }
  .contact-channel-body strong { font-size: 0.65rem; letter-spacing: 0.15em; }
  .contact-channel-body span { font-size: 0.88rem; }

  .contact-sedes {
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }
  .sede-card { padding: var(--space-5); }
  .sede-card-city { font-size: 1.3rem; }
  .sede-card-address { font-size: 0.85rem; }

  .contact-schedule { padding: var(--space-5); }
  .contact-schedule p { font-size: 0.9rem; }

  .contact-form-card {
    padding: var(--space-7) var(--space-5);
    border-radius: 16px;
  }
  .contact-form-title {
    font-size: 1.4rem;
    margin: var(--space-3) 0;
  }
  .contact-form-intro {
    font-size: 0.9rem;
    margin-bottom: var(--space-6);
  }
  .contact-submit {
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
  }
}


