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

:root {
  --rojo: #5F0F0C;
  --rojo-acento: #bb120e;
  --azul: #151A48;
  --azul-medio: #1e2560;
  --gris-claro: #F5F5F5;
  --gris-texto: #555555;
  --blanco: #ffffff;
  --rojo-suave: rgba(95,15,12,0.08);
  --azul-suave: rgba(21,26,72,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--blanco);
  color: var(--azul);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(95,15,12,0.12);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rojo);
  text-decoration: none;
}
.nav-logo span { color: var(--azul); font-weight: 300; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--azul); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rojo); }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blanco);
  background: var(--rojo);
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--rojo-acento); }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  gap: 5px; padding: 4px;
  flex-shrink: 0;
  z-index: 201;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--azul);
  transition: transform 0.3s, opacity 0.2s, width 0.3s;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── OVERLAY ─── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 298;
}
.nav-overlay.active { display: block; }

/* ─── SIDEBAR MÓVIL ─── */
.nav-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 82vw);
  background: #151A48;
  z-index: 299;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.45);
  overflow-y: auto;
}
.nav-sidebar.open {
  transform: translateX(0);
}

/* Cabecera del sidebar */
.nav-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav-sidebar-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rojo-acento);
}
.nav-sidebar-brand span { color: rgba(255,255,255,0.5); font-weight: 300; }
.nav-sidebar-close {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-sidebar-close:hover { color: var(--rojo-acento); }
.nav-sidebar-close svg {
  width: 22px; height: 22px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round;
}

/* Links del sidebar */
.nav-sidebar-links {
  list-style: none;
  flex: 1;
}
.nav-sidebar-links li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-sidebar-links a {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-sidebar-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

/* CTA del sidebar */
.nav-sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav-sidebar-cta {
  display: block; text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffffff; background: var(--rojo);
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-sidebar-cta:hover { background: var(--rojo-acento); }

@keyframes sidebarSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}
.hero-left {
  background:
    linear-gradient(135deg, rgba(21,26,72,0.80) 0%, rgba(21,26,72,0.70) 60%, rgba(95,15,12,0.50) 100%),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 7rem 6% 7rem 8%;
  position: relative;
  overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute; top: -60px; left: -60px;
  width: 320px; height: 320px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-left::after {
  content: '';
  position: absolute; bottom: 40px; right: -80px;
  width: 240px; height: 240px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 300; line-height: 1.12;
  color: var(--blanco);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.6); }
.hero-title strong { font-weight: 600; color: var(--blanco); }
.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  border-left: 2px solid var(--rojo);
  padding-left: 1.2rem;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blanco);
  background: var(--rojo);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--rojo-acento); }
.btn-secondary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: var(--blanco); }

.hero-right {
  background: var(--gris-claro);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 7rem 8% 7rem 6%;
  position: relative;
}
.hero-credentials { display: flex; flex-direction: column; gap: 2.5rem; width: 100%; }
.credential-block { display: flex; align-items: flex-start; gap: 1.2rem; }
.credential-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--rojo);
  display: flex; align-items: center; justify-content: center;
}
.credential-icon svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 1.5; }
.credential-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 0.3rem;
}
.credential-text { font-size: 0.92rem; font-weight: 400; color: var(--azul); line-height: 1.5; }
.credential-text strong { font-weight: 600; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(21,26,72,0.1);
  margin-top: 3rem; width: 100%;
}
.stat-box { background: var(--blanco); padding: 1.5rem; text-align: center; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 300; line-height: 1;
  color: var(--rojo); margin-bottom: 0.3rem;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris-texto);
}

/* ─── HERO SOCIAL BAR ─── */
#hero {
  grid-template-rows: 1fr auto;
}
.hero-social {
  grid-column: 1 / -1;
  background: var(--azul);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; padding: 1.1rem 8%;
  flex-wrap: wrap;
}
.social-link {
  display: flex; align-items: center; gap: 0.65rem;
  color: rgba(255,255,255);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s;
}
.social-link:hover { color: var(--rojo-acento); }
.social-link svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  flex-shrink: 0; transition: stroke 0.2s;
}

/* ─── SECCIÓN GENÉRICA ─── */
section { padding: 1rem 1%; }
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.79rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300; line-height: 1.2;
  color: var(--azul); margin-bottom: 1.5rem;
}
.section-sub { font-size: 1rem; line-height: 1.7; color: var(--gris-texto); max-width: 520px; }

/* ─── DIFERENCIADOR ─── */
#diferenciador {
  background: var(--blanco);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; padding: 6rem 8%;
}
.dif-visual { position: relative; height: 420px; }
.dif-square-bg {
  position: absolute; width: 340px; height: 340px;
  background: var(--azul); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.dif-square-accent {
  position: absolute; width: 220px; height: 220px;
  background: var(--rojo); top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(15deg); opacity: 0.32;
}
.dif-center-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 2; width: 280px;
}
.dif-center-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.19rem; font-style: italic;
  color: rgba(255,255,255,0.75); line-height: 1.6;
}
.dif-center-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rojo-acento); margin-bottom: 1rem; font-style: normal;
}
.dif-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azul); border: 1px solid rgba(21,26,72,0.25); padding: 0.4rem 0.9rem;
}

/* ─── SERVICIOS ─── */
#servicios { background: var(--gris-claro); }
.servicios-header { margin-bottom: 3.5rem; }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.servicio-card {
  background: var(--blanco); padding: 2.2rem 1.8rem;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s; cursor: default;
}
.servicio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rojo);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(21,26,72,0.1); }
.servicio-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; line-height: 1;
  color: rgba(21,26,72,0.2); margin-bottom: 1rem;
}
.servicio-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--azul); margin-bottom: 0.8rem;
}
.servicio-desc { font-size: 0.88rem; line-height: 1.65; color: var(--gris-texto); }
.servicio-tag {
  display: inline-block; margin-top: 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rojo); border-bottom: 1px solid var(--rojo); padding-bottom: 1px;
}

/* ─── VALORES ─── */
#valores { background: var(--azul); padding: 6rem 8%; }
#valores .section-title { color: var(--blanco); }
#valores .section-eyebrow { color: rgba(255,255,255,0.5); }
.valores-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(255,255,255,0.08); margin-top: 3rem;
}
.valor-item { background: var(--azul); padding: 2.5rem 2rem; transition: background 0.2s; }
.valor-item:hover { background: var(--azul-medio); }
.valor-nombre {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 0.8rem;
}
.valor-desc { font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.55); }

/* ─── PERFIL ─── */
#perfil { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; background: var(--blanco); }
.perfil-visual { position: relative; overflow: hidden; min-height: 600px; }
.perfil-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.perfil-visual-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(21,26,72,0.95) 0%, rgba(21,26,72,0.5) 55%, transparent 100%);
  padding: 2.5rem 2rem 2rem;
}
.perfil-nombre { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--blanco); line-height: 1.3; margin-bottom: 0.4rem; }
.perfil-cargo { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; }
.perfil-cert { display: flex; flex-direction: column; gap: 0.5rem; }
.cert-item { font-size: 0.78rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.6rem; }
.cert-dot { width: 4px; height: 4px; background: var(--rojo-acento); flex-shrink: 0; }
.perfil-content { padding: 6rem 8%; display: flex; flex-direction: column; justify-content: center; }
.perfil-bio { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 300; line-height: 1.75; color: var(--azul); margin-bottom: 2rem; }
.perfil-bio em { color: var(--rojo); font-style: italic; }
.perfil-formacion { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.formacion-item { border-left: 2px solid var(--rojo); padding-left: 1rem; }
.formacion-titulo { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--azul); margin-bottom: 0.2rem; }
.formacion-sub { font-size: 0.8rem; color: var(--gris-texto); line-height: 1.4; }

/* ─── PROCESO ─── */
#proceso { background: var(--blanco); }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 3.5rem; position: relative; }
.proceso-steps::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(21,26,72,0.12); }
.paso { padding: 0 1.5rem; text-align: center; position: relative; }
.paso-num { width: 56px; height: 56px; background: var(--azul); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; position: relative; z-index: 1; }
.paso:nth-child(1) .paso-num { background: var(--azul); }
.paso:nth-child(2) .paso-num { background: rgba(21,26,72,0.7); }
.paso:nth-child(3) .paso-num { background: rgba(21,26,72,0.45); }
.paso:nth-child(4) .paso-num { background: var(--rojo); }
.paso-num span { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; color: var(--blanco); }
.paso-titulo { font-family: 'Barlow Condensed', sans-serif; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--azul); margin-bottom: 0.6rem; }
.paso-desc { font-size: 0.85rem; line-height: 1.6; color: var(--gris-texto); }

/* ─── CTA CENTRAL ─── */
#cta-central { background: var(--rojo); padding: 5rem 8%; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; line-height: 1.2; color: var(--blanco); margin-bottom: 0.8rem; }
.cta-text p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 480px; }
.btn-blanco { font-family: 'Barlow Condensed', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rojo); background: var(--blanco); padding: 1rem 2.5rem; text-decoration: none; flex-shrink: 0; transition: opacity 0.2s; display: inline-block; }
.btn-blanco:hover { opacity: 0.88; }

/* ─── CONTACTO ─── */
#contacto { background: var(--gris-claro); display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contacto-info { padding: 6rem 6% 6rem 8%; }
.contacto-datos { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.dato { display: flex; align-items: center; gap: 1rem; }
.dato-icono { width: 38px; height: 38px; flex-shrink: 0; background: var(--azul); display: flex; align-items: center; justify-content: center; }
.dato-icono svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 1.5; }
.dato-val { font-size: 0.92rem; color: var(--azul); }
.dato-val a { color: var(--azul); text-decoration: none; }
.dato-val a:hover { color: var(--rojo); }
.contacto-form { background: var(--azul); padding: 6rem 8% 6rem 6%; }
.contacto-form .section-eyebrow { color: rgba(255,255,255,0.5); }
.contacto-form .section-title { color: var(--blanco); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--blanco); font-family: 'Barlow', sans-serif; font-size: 0.92rem; padding: 0.75rem 1rem; outline: none; transition: border-color 0.2s; appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--rojo-acento); }
.form-group select option { background: var(--azul); color: var(--blanco); }
.form-group textarea { resize: none; height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.5rem; width: 100%; font-family: 'Barlow Condensed', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blanco); background: var(--rojo); border: none; cursor: pointer; padding: 1rem; transition: background 0.2s; }
.form-submit:hover { background: var(--rojo-acento); }

/* ─── FOOTER ─── */
footer { background:#080808; border-top: 1px solid rgba(95,15,12,0.4); padding: 2.5rem 8%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blanco); }
.footer-brand span { color: var(--rojo-acento); font-weight: 300; }
.footer-tagline { font-family: 'Cormorant Garamond', serif; font-size: 16.5px; font-style: italic; color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.8); display: flex; flex-direction: column; gap: 0.35rem; }
.footer-powered { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-style: italic; color: #e906ce; text-decoration: none; transition: color 0.2s; }
.footer-powered:hover { color: var(--blanco); }

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.7s 0.1s both; }
.hero-title { animation: fadeUp 0.7s 0.25s both; }
.hero-quote { animation: fadeUp 0.7s 0.4s both; }
.hero-ctas { animation: fadeUp 0.7s 0.55s both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .hero-left { padding: 5rem 6%; }
  .hero-right { padding: 4rem 6%; }
  .hero-social { gap: 2rem; justify-content: flex-start; padding: 1rem 6%; }
  #diferenciador { grid-template-columns: 1fr; }
  .dif-visual { height: 280px; }
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  #perfil { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .proceso-steps::before { display: none; }
  #contacto { grid-template-columns: 1fr; }
  /* Nav responsive */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr; }
  .perfil-formacion { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr; }
  #cta-central { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0d1420;
  border-top: 2px solid var(--rojo);
  padding: 1.4rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
#cookie-banner p {
  font-size: 0.88rem; color: rgba(255,255,255,0.82);
  line-height: 1.6; max-width: 640px; margin: 0;
}
#cookie-banner p a { color: var(--rojo-acento); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--rojo); color: var(--blanco);
  border: 2px solid var(--rojo); padding: 0.55rem 1.4rem; cursor: pointer;
  transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--rojo-acento); border-color: var(--rojo-acento); }
.cookie-btn-reject {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,0.75);
  border: 2px solid rgba(255,255,255,0.3); padding: 0.55rem 1.4rem; cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.7); color: var(--blanco); }

/* ─── PÁGINAS INTERNAS (privacidad / cookies) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #0d1028 100%);
  padding: 9rem 8% 4rem;
  border-bottom: 2px solid var(--rojo);
}
.page-hero .section-eyebrow { color: rgba(255,255,255,0.5); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 300; color: var(--blanco); line-height: 1.2; margin-top: 0.5rem; }
.page-content { max-width: 860px; margin: 0 auto; padding: 4rem 8%; }
.page-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rojo); margin: 2.5rem 0 0.8rem; border-bottom: 1px solid rgba(95,15,12,0.15); padding-bottom: 0.4rem; }
.page-content p, .page-content li { font-size: 0.95rem; line-height: 1.8; color: var(--gris-texto); margin-bottom: 0.8rem; }
.page-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.page-content strong { color: var(--azul); }
.page-content a { color: var(--rojo); }
.page-updated { font-size: 0.8rem; color: rgba(85,85,85,0.6); font-style: italic; margin-top: 3rem; border-top: 1px solid rgba(21,26,72,0.1); padding-top: 1rem; }

/* ─── 404 ─── */
.error-404 {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--azul) 0%, #0d1028 100%);
  padding: 2rem 8%;
}
.error-404-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 18vw, 14rem); font-weight: 300; line-height: 1;
  color: rgba(255,255,255,0.08); letter-spacing: -0.04em;
  position: absolute;
}
.error-404-content { position: relative; z-index: 1; }
.error-404-content .section-eyebrow { color: var(--rojo-acento); }
.error-404-content h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--blanco); margin: 0.5rem 0 1.2rem; }
.error-404-content p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 460px; margin: 0 auto 2rem; line-height: 1.7; }

/* ─── BLOG INDEX ─── */
.blog-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #0d1028 100%);
  padding: 9rem 8% 4rem;
  border-bottom: 2px solid var(--rojo);
}
.blog-hero .section-eyebrow { color: rgba(255,255,255,0.5); }
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,4vw,3.2rem); font-weight: 300;
  color: var(--blanco); line-height: 1.2; margin-top: 0.5rem;
}
.blog-hero p {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  max-width: 520px; margin-top: 0.8rem; line-height: 1.7;
}
.blog-grid-section { padding: 5rem 8%; background: var(--gris-claro); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--blanco);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(21,26,72,0.1); }
.blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rojo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; object-position: center top;
  display: block;
}
.blog-card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 0.7rem;
  display: flex; gap: 1rem; align-items: center;
}
.blog-card-meta span { color: var(--gris-texto); font-weight: 400; letter-spacing: 0.05em; }
.blog-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400; line-height: 1.3;
  color: var(--azul); margin-bottom: 0.7rem;
}
.blog-card p {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--gris-texto); flex: 1;
}
.blog-card-link {
  display: inline-block; margin-top: 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rojo);
  border-bottom: 1px solid var(--rojo);
  padding-bottom: 1px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.blog-card-link:hover { color: var(--rojo-acento); border-color: var(--rojo-acento); }

/* ─── ARTÍCULO INDIVIDUAL ─── */
.article-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #0d1028 100%);
  padding: 9rem 8% 4rem;
  border-bottom: 2px solid var(--rojo);
}
.article-hero .section-eyebrow { color: rgba(255,255,255,0.5); }
.article-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,4vw,3rem); font-weight: 300;
  color: var(--blanco); line-height: 1.2; margin-top: 0.5rem;
}
.article-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,0.65); margin-top: 0.6rem;
}
.article-meta {
  display: flex; gap: 1.5rem; align-items: center;
  margin-top: 1.4rem; flex-wrap: wrap;
}
.article-meta span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.article-meta strong { color: rgba(255,255,255,0.75); font-weight: 600; }

/* Layout artículo */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 8%;
  align-items: start;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 400; line-height: 1.25;
  color: var(--azul); margin: 2.5rem 0 0.8rem;
  border-bottom: 1px solid rgba(95,15,12,0.15);
  padding-bottom: 0.4rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rojo); margin: 2rem 0 0.6rem;
}
.article-body p {
  font-size: 0.97rem; line-height: 1.85;
  color: var(--gris-texto); margin-bottom: 1rem;
}
.article-body ul {
  padding-left: 1.2rem; margin-bottom: 1.2rem;
}
.article-body li {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--gris-texto); margin-bottom: 0.5rem;
}
.article-body strong { color: var(--azul); }
.article-body blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-style: italic;
  color: var(--azul); line-height: 1.6;
  border-left: 3px solid var(--rojo);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--rojo-suave);
}
.article-body .article-conclusion {
  margin-top: 3rem; padding: 2rem;
  background: var(--azul-suave);
  border-left: 3px solid var(--azul);
}
.article-body .article-conclusion h2 {
  border-bottom: none; padding-bottom: 0;
  margin-top: 0;
}

/* Columna imagen */
.article-aside { position: sticky; top: 96px; }
.article-img-wrap {
  cursor: zoom-in;
  display: block;
  border: 1px solid rgba(21,26,72,0.1);
  box-shadow: 0 8px 32px rgba(21,26,72,0.1);
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.article-img-wrap:hover { box-shadow: 0 12px 40px rgba(21,26,72,0.18); }
.article-img-wrap img { width: 100%; display: block; }
.article-img-caption {
  font-size: 0.78rem; color: var(--gris-texto);
  font-style: italic; margin-top: 0.6rem;
  text-align: center; line-height: 1.4;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 8px 64px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 2rem; line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #ffffff; }

/* Article share / volver */
.article-footer-bar {
  background: var(--gris-claro);
  padding: 2rem 8%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(21,26,72,0.1);
}
.article-back {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--azul); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--rojo); }
.article-tags {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.article-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azul); border: 1px solid rgba(21,26,72,0.25);
  padding: 0.3rem 0.7rem;
}

/* Responsive blog */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem; padding: 3rem 6%;
  }
  .article-aside {
    position: static;
    order: 1;
  }
  .article-body { order: 0; }
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── ARTÍCULO SIN IMAGEN (layout centrado) ─── */
.article-layout-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 8%;
}

/* Kicker / eyebrow pill dentro del artículo */
.article-kicker {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rojo);
  border: 1px solid rgba(95,15,12,0.3);
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.4rem;
}

/* Párrafo lead / intro destacado */
.article-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300;
  line-height: 1.8; color: var(--azul);
  margin-bottom: 1.5rem;
  border-left: 3px solid rgba(95,15,12,0.2);
  padding-left: 1.2rem;
}

/* Lista tipo pregunta (box bordeado) */
.article-question-box {
  border: 1px solid rgba(21,26,72,0.15);
  background: var(--azul-suave);
  padding: 1.4rem 1.6rem 1.4rem 2.2rem;
  margin: 1.2rem 0 1.5rem;
}
.article-question-box li {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--gris-texto); margin-bottom: 0.4rem;
  font-style: italic;
}

/* Grid de beneficios (5 cards) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.benefit-card {
  border: 1px solid rgba(21,26,72,0.12);
  border-top: 3px solid var(--rojo);
  padding: 1.4rem 1.2rem;
  background: var(--blanco);
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefit-card:hover {
  box-shadow: 0 8px 24px rgba(21,26,72,0.08);
  transform: translateY(-3px);
}
.benefit-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rojo); margin: 0 0 0.6rem;
}
.benefit-card p {
  font-size: 0.70rem; line-height: 1.6;
  text-align: justify;
  color: var(--gris-texto); margin: 0;
}

/* CTA box interno (fondo azul corporativo) */
.article-cta-box {
  background: var(--azul);
  padding: 2.5rem;
  margin-top: 3rem;
}
.article-cta-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300; line-height: 1.3;
  color: var(--blanco);
  border: none; padding: 0; margin: 0 0 0.8rem;
}
.article-cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem; margin-bottom: 0;
}
.article-cta-btn {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blanco); background: var(--rojo);
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
}
.article-cta-btn:hover { background: var(--rojo-acento); }

/* ─── NOTA EDITORIAL / AVISO (fondo ámbar) ─── */
.article-notice {
  margin: 1.8rem 0 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid #f59e0b;
  border-left: 5px solid #f59e0b;
  border-radius: 4px;
  background: #fffbeb;
}
.article-notice p {
  margin-bottom: 0;
  font-size: 0.93rem; line-height: 1.7;
  color: #78350f;
}
.article-notice strong { color: #92400e; }

/* ─── GRID RESUMEN (3 columnas) ─── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 2rem;
}
.summary-card {
  padding: 1.4rem;
  border: 1px solid rgba(21,26,72,0.12);
  border-top: 3px solid var(--rojo);
  background: var(--blanco);
  box-shadow: 0 4px 20px rgba(21,26,72,0.06);
}
.summary-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rojo); margin: 0 0 0.6rem;
}
.summary-card p {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--gris-texto); margin: 0;
}

/* ─── TABLA COMPARATIVA CON SCROLL HORIZONTAL ─── */
.article-table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0 2.2rem;
  border: 1px solid rgba(21,26,72,0.12);
}
.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  background: var(--blanco);
}
.article-table-wrap th,
.article-table-wrap td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(21,26,72,0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem; line-height: 1.6;
  color: var(--gris-texto);
}
.article-table-wrap th {
  background: var(--azul-suave);
  color: var(--azul);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.article-table-wrap tr:last-child td { border-bottom: 0; }
.article-table-wrap td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--azul);
}

/* ─── LISTA DE FASES NUMERADA (CSS counter) ─── */
.phase-list {
  counter-reset: phase;
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.phase-list > li {
  counter-increment: phase;
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.2rem;
  border: 1px solid rgba(21,26,72,0.12);
  background: var(--gris-claro);
  margin: 0;
}
.phase-list > li::before {
  content: counter(phase);
  position: absolute;
  top: 1.35rem; left: 1.35rem;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--blanco);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  text-align: center; line-height: 1.8rem;
}
.phase-list > li h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azul); margin: 0 0 0.5rem;
}
.phase-list > li p {
  font-size: 0.93rem; line-height: 1.7;
  color: var(--gris-texto); margin: 0;
}

/* ─── CAJA DE FUENTES Y REFERENCIAS ─── */
.article-sources {
  margin-top: 2.8rem;
  padding: 1.5rem 1.8rem;
  border: 1px solid rgba(21,26,72,0.12);
  background: var(--gris-claro);
}
.article-sources h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--azul); margin: 0 0 1rem;
  border: none; padding: 0;
}
.article-sources ol {
  padding-left: 1.4rem;
  margin: 0;
}
.article-sources li {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--gris-texto); margin-bottom: 0.4rem;
}
.article-sources a {
  color: var(--azul);
  text-decoration: underline;
  text-decoration-color: rgba(21,26,72,0.3);
  transition: color 0.2s;
}
.article-sources a:hover { color: var(--rojo); }

/* Responsive summary-grid y tabla */
@media (max-width: 760px) {
  .summary-grid { grid-template-columns: 1fr; }
}
