/* ============================================
   EPITA - TEMA INSTITUCIONAL v3.0
   Escuela Profesional de Ingeniería
   Topográfica y Agrimensura - UNA Puno
   Paleta: Azul institucional + Dorado + Verde CTA
   ============================================ */

/* --- Variables CSS --- */
:root {
  /* Paleta institucional */
  --color-primary:       #0B2E59;   /* Azul oscuro institucional */
  --color-primary-mid:   #124A8A;   /* Azul medio */
  --color-primary-light: #1A5FAD;   /* Azul claro */
  --color-gold:          #D9A404;   /* Dorado del logo */
  --color-gold-light:    #F0BC1A;   /* Dorado claro para hover */
  --color-gold-bg:       rgba(217,164,4,0.08); /* Fondo gold suave */
  --color-cta:           #129B5E;   /* Verde CTA / Admisión */
  --color-cta-dark:      #0D7A49;   /* Verde oscuro hover */

  /* Neutros */
  --color-dark:          #0F172A;   /* Texto principal */
  --color-gray-700:      #475569;   /* Texto secundario */
  --color-gray-500:      #94A3B8;   /* Texto terciario */
  --color-gray-300:      #CBD5E1;   /* Bordes */
  --color-gray-200:      #E2E8F0;   /* Bordes suaves */
  --color-gray-100:      #F1F5F9;   /* Fondo sección */
  --color-surface:       #F8FAFC;   /* Fondo claro base */
  --color-white:         #FFFFFF;

  /* Topbar */
  --topbar-bg:           #070F1E;

  /* Footer */
  --footer-bg:           #060D1A;

  /* Tipografía */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radios */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --radius-full: 999px;

  /* Sombras con tono azul */
  --shadow-xs:  0 1px 3px rgba(11,46,89,0.06), 0 1px 2px rgba(11,46,89,0.04);
  --shadow-sm:  0 2px 8px rgba(11,46,89,0.08), 0 1px 4px rgba(11,46,89,0.05);
  --shadow-md:  0 8px 24px rgba(11,46,89,0.12), 0 4px 8px rgba(11,46,89,0.06);
  --shadow-lg:  0 20px 48px rgba(11,46,89,0.16), 0 8px 16px rgba(11,46,89,0.08);
  --shadow-xl:  0 32px 64px rgba(11,46,89,0.20);
  --shadow-gold: 0 8px 24px rgba(217,164,4,0.30);

  /* Transición */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.28s var(--ease);

  /* Layout */
  --nav-height:    80px;
  --topbar-height: 36px;
  --max-width:     1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Etiqueta de sección */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-mid);
  background: rgba(18,74,138,0.07);
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(18,74,138,0.12);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-gray-700);
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Verde CTA — Admisión / acciones principales */
.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
  box-shadow: 0 4px 12px rgba(18,155,94,0.25);
}
.btn-primary:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18,155,94,0.38);
}

/* Azul — acciones secundarias */
.btn-blue {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-blue:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Dorado — acciones de énfasis */
.btn-gold {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Contorno blanco — sobre fondos oscuros */
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
}

/* Blanco sólido — sobre fondos de color */
.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--topbar-bg);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(217,164,4,0.2);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-left a {
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}
.topbar-left a:hover { color: var(--color-white); }

.topbar-left a svg { color: var(--color-gold); opacity: 0.85; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-right .social-link {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  transition: var(--transition);
}
.topbar-right .social-link:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-gold);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

/* Línea gold en la base del header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(217,164,4,0.3) 60%, transparent 100%);
  opacity: 0.6;
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo / Marca */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-brand img,
.navbar-brand .custom-logo-link,
.navbar-brand .custom-logo-link img,
.navbar-brand .custom-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Fallback si no hay logo cargado */
.brand-fallback {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 36px;
  background: var(--color-gray-200);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.brand-text .brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-text .brand-sub-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.brand-text .brand-faculty {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gray-700);
  white-space: nowrap;
}

.brand-text .brand-sep {
  font-size: 0.6rem;
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1;
}

.brand-text .brand-uni {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
}

/* Menú principal */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  border-radius: var(--radius-xs);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(11,46,89,0.05);
}
.nav-link:hover::after { transform: scaleX(0.6); }

.nav-link.active {
  color: var(--color-primary);
  background: rgba(11,46,89,0.05);
}
.nav-link.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  border: 1px solid var(--color-gray-200);
  border-top: 2px solid var(--color-gold);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  padding-left: 16px;
}

.dropdown-item .item-icon {
  width: 30px;
  height: 30px;
  background: var(--color-gold-bg);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: var(--transition);
}

.dropdown-item:hover .item-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

/* CTA Navbar */
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height) - var(--topbar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fondo con degradado institucional */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #070F1E 0%, var(--color-primary) 45%, var(--color-primary-mid) 100%);
}

/* Patrón de curvas de nivel topográfico */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Resplandor dorado en la derecha */
.hero-bg::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(217,164,4,0.08) 0%, transparent 65%);
}

/* Shape wave al final */
.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  pointer-events: none;
}
.hero-shape svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 100px;
}

/* Texto del hero */
.hero-text { color: var(--color-white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,164,4,0.12);
  border: 1px solid rgba(217,164,4,0.35);
  color: var(--color-gold-light);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse-dot 2.5s infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(217,164,4,0.4); }
  50% { opacity: 0.7; transform: scale(1.4); box-shadow: 0 0 0 4px rgba(217,164,4,0); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

/* Palabra resaltada con dorado + subrayado */
.hero-title .highlight {
  color: var(--color-gold-light);
  display: inline-block;
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(217,164,4,0.3) 100%);
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 34px;
  max-width: 490px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mini-stats dentro del hero */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-stat-item + .hero-stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-item:first-child { padding-left: 0; }

.hero-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.hero-stat-number span { color: var(--color-gold); font-size: 1.2rem; }

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 5px;
  line-height: 1.3;
}

/* Panel de tarjetas del hero (derecha) */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tarjeta de glass con borde dorado sutil */
.hero-card {
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--color-white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Línea dorada izquierda en la tarjeta */
.hero-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
  border-radius: 0 2px 2px 0;
}

.hero-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(217,164,4,0.25);
  transform: translateX(-4px);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(217,164,4,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--color-gold-light);
}

.hero-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

.hero-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================================
   SECCIÓN DE MÉTRICAS / STATS
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, #060D1A 0%, #0B2E59 60%, #124A8A 100%);
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Patrón topográfico sutil */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* Resplandor dorado derecha */
.stats-section::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -50%;
  width: 40%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(217,164,4,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 52px 28px;
  position: relative;
  transition: background 0.25s;
}

.stat-item:hover { background: rgba(255,255,255,0.04); }

/* Separador vertical */
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* Línea dorada superior al hover */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.stat-item:hover::before { transform: scaleX(1); }

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(217,164,4,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-gold);
  border: 1px solid rgba(217,164,4,0.22);
  transition: var(--transition);
}
.stat-item:hover .stat-icon {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: transparent;
  transform: scale(1.08);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}
.stat-number .suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
  vertical-align: top;
  margin-top: 4px;
  display: inline-block;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ============================================
   SERVICIOS RÁPIDOS
   ============================================ */
.services-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #0B2E59 0%, #124A8A 60%, #1A5FAD 100%);
  position: relative;
  overflow: hidden;
}

/* Patrón */
.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  left: -5%;
  bottom: -30%;
  width: 40%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(217,164,4,0.08) 0%, transparent 65%);
  pointer-events: none;
}

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

.services-header {
  text-align: center;
  margin-bottom: 52px;
}
.services-header .section-desc { margin: 0 auto; color: rgba(255,255,255,0.7); }
.services-header .section-title { color: var(--color-white); }
.services-header .section-label {
  background: rgba(217,164,4,0.14);
  border-color: rgba(217,164,4,0.3);
  color: var(--color-gold-light);
}
.services-header .section-label::before { background: var(--color-gold-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Línea gold en la base al hover */
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(217,164,4,0.35);
  border-bottom-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.service-card:hover .service-icon {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(217,164,4,0.12);
  color: var(--color-gold-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(217,164,4,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-white);
}

.service-card p {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.service-link svg { transition: transform 0.2s; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
.about-section {
  padding: 96px 0;
  background: var(--color-white);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(18,74,138,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual { position: relative; }

.about-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.about-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  gap: 12px;
  font-size: 0.8rem;
}
.about-image-placeholder svg { opacity: 0.35; }

.about-accent-card {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 210px;
  border: 1px solid var(--color-gray-200);
  border-left: 3px solid var(--color-gold);
}

.about-accent-card .big-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-accent-card .big-number span { color: var(--color-gold); }

.about-accent-card .card-text {
  font-size: 0.78rem;
  color: var(--color-gray-700);
  font-weight: 500;
  line-height: 1.45;
}

/* Tabs Misión/Visión */
.mv-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--color-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  width: fit-content;
  border: 1px solid var(--color-gray-200);
}

.mv-tab {
  padding: 9px 22px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-gray-500);
  transition: var(--transition);
}
.mv-tab.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-gray-200);
}

.mv-content {
  display: none;
  font-size: 0.975rem;
  color: var(--color-gray-700);
  line-height: 1.8;
  background: var(--color-surface);
  padding: 22px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  border-left: 3px solid var(--color-primary-mid);
  margin-bottom: 28px;
}
.mv-content.active { display: block; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(217,164,4,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   DOCUMENTOS
   ============================================ */
.docs-section {
  padding: 80px 0;
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  position: relative;
  overflow: hidden;
}

/* Patrón topográfico de curvas de nivel */
.docs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Resplandor dorado */
.docs-section::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -30%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(217,164,4,0.09) 0%, transparent 65%);
  pointer-events: none;
}

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

.docs-header {
  text-align: center;
  margin-bottom: 48px;
}
.docs-header .section-label {
  background: rgba(217,164,4,0.15);
  border-color: rgba(217,164,4,0.3);
  color: var(--color-gold-light);
}
.docs-header .section-label::before { background: var(--color-gold-light); }
.docs-header .section-title { color: var(--color-white); }
.docs-header p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.doc-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  color: var(--color-white);
  transition: var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.doc-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-5px);
  border-color: rgba(217,164,4,0.3);
}
.doc-card:hover::before { opacity: 1; }

.doc-icon {
  width: 52px;
  height: 52px;
  background: rgba(217,164,4,0.15);
  border: 1px solid rgba(217,164,4,0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-gold-light);
  transition: var(--transition);
}
.doc-card:hover .doc-icon {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: transparent;
}

.doc-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 7px;
  line-height: 1.35;
}

.doc-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.doc-card .doc-arrow {
  margin-top: 16px;
  color: var(--color-gold);
  transition: transform 0.2s;
  display: flex;
  justify-content: center;
}
.doc-card:hover .doc-arrow { transform: translateX(4px); }

/* ============================================
   NOTICIAS
   ============================================ */
.news-section {
  padding: 96px 0;
  background: var(--color-white);
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(18,74,138,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-gray-200);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.news-image img { width: 100%; height: 100%; object-fit: cover; }

.news-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25);
}

.news-image .news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.news-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--color-gray-500);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.news-meta span { display: flex; align-items: center; gap: 4px; }

.news-card h3 {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 10px;
  line-height: 1.45;
  flex: 1;
}
.news-card.featured h3 { font-size: 1.3rem; }

.news-card p {
  font-size: 0.855rem;
  color: var(--color-gray-700);
  line-height: 1.65;
  margin-bottom: 18px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-mid);
  margin-top: auto;
}
.news-read-more svg { transition: transform 0.2s; }
.news-card:hover .news-read-more svg { transform: translateX(4px); }

.news-sidebar { display: flex; flex-direction: column; gap: 18px; }

.news-card.small { flex-direction: row; }
.news-card.small .news-image {
  width: 96px; min-width: 96px;
  aspect-ratio: 1; border-radius: 0;
}
.news-card.small .news-body { padding: 14px; }
.news-card.small h3 { font-size: 0.85rem; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-section {
  padding: 84px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0D3568 100%);
  position: relative;
  overflow: hidden;
}

/* Patrón topográfico */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Resplandor dorado */
.cta-section::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(217,164,4,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.cta-content .section-label {
  background: rgba(217,164,4,0.12);
  border-color: rgba(217,164,4,0.3);
  color: var(--color-gold-light);
}
.cta-content .section-label::before { background: var(--color-gold-light); }

.cta-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 14px;
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.65);
}

/* Franja dorada top del footer */
.footer-top-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(217,164,4,0.4) 60%, transparent 100%);
}

.footer-top { padding: 68px 0 44px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand .brand-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand .brand-logo .fn {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}
.footer-brand .brand-logo .fn small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.footer-brand p {
  font-size: 0.855rem;
  line-height: 1.75;
  max-width: 295px;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.55);
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Línea gold bajo el título de columna */
.footer-col h4::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 8px;
  opacity: 0.7;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-links a::before {
  content: '';
  width: 3px; height: 3px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  gap: 11px;
  margin-bottom: 14px;
  font-size: 0.855rem;
}
.footer-contact-icon {
  width: 30px; height: 30px;
  background: rgba(217,164,4,0.1);
  border: 1px solid rgba(217,164,4,0.15);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-item span,
.footer-contact-item a {
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}
.footer-contact-item a:hover { color: var(--color-gold); }

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.79rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  font-size: 0.79rem;
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--color-gold); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ============================================
   BOTÓN WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-btn {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: white; }

.whatsapp-tooltip {
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 94px;
  right: 28px;
  z-index: 9998;
  width: 42px; height: 42px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--color-primary-mid);
  transform: translateY(-2px);
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   HERO — Imagen de fondo real
   ============================================ */
.hero-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ligera reducción de saturación para que el overlay institucional domine */
  filter: saturate(0.65) brightness(0.85);
}

/* Overlay: fuerte en la zona del texto, más sutil hacia la derecha */
.hero-img-bg + .hero-bg {
  background:
    linear-gradient(115deg,
      rgba(7,15,30,0.93)  0%,
      rgba(11,46,89,0.85) 35%,
      rgba(11,46,89,0.60) 65%,
      rgba(18,74,138,0.30) 100%);
}

/* Sin patrón adicional — la imagen GIS ya tiene suficiente detalle */
.hero-img-bg + .hero-bg::before { display: none; }

/* ============================================
   ¿POR QUÉ EPITA? — Features section
   ============================================ */
.why-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #EBF2FB 0%, #F4F8FE 100%);
  position: relative;
}

/* Grid diagonal sutil */
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,74,138,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,74,138,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.why-header .section-desc { margin: 0 auto; }

.why-grid { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  transition: var(--transition);
  overflow: hidden;
  text-align: center;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover .why-icon { background: rgba(255,255,255,0.15); color: var(--color-gold-light); border-color: rgba(255,255,255,0.2); }
.why-card:hover h3 { color: var(--color-white); }
.why-card:hover p { color: rgba(255,255,255,0.75); }
.why-card:hover .why-number { color: rgba(255,255,255,0.1); }

.why-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(11,46,89,0.05);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.35s;
  pointer-events: none;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--color-gold-bg);
  border: 1px solid rgba(217,164,4,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: color 0.35s;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  transition: color 0.35s;
}

/* ============================================
   DOCENTES DESTACADOS
   ============================================ */
.teachers-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #F4F8FE 0%, #EBF2FB 100%);
  position: relative;
}

.teachers-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 50%, rgba(217,164,4,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.teachers-header {
  text-align: center;
  margin-bottom: 52px;
}
.teachers-header .section-desc { margin: 0 auto; }

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-gray-200);
  transition: var(--transition);
  text-align: center;
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.teacher-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
}
.teacher-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.teacher-card:hover .teacher-photo img { transform: scale(1.04); }

/* Badge sobre la foto */
.teacher-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(11,46,89,0.85), transparent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.teacher-body {
  padding: 22px 24px 26px;
}
.teacher-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 5px;
}
.teacher-body .teacher-degree {
  font-size: 0.8rem;
  color: var(--color-primary-mid);
  font-weight: 600;
  margin-bottom: 10px;
}
.teacher-body p {
  font-size: 0.845rem;
  color: var(--color-gray-700);
  line-height: 1.6;
}

/* ============================================
   GALERÍA FOTOGRÁFICA
   ============================================ */
.gallery-section {
  padding: 88px 0;
  background: linear-gradient(160deg, #060D1A 0%, #0B2E59 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

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

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-header .section-label {
  background: rgba(217,164,4,0.14);
  border-color: rgba(217,164,4,0.28);
  color: var(--color-gold-light);
}
.gallery-header .section-label::before { background: var(--color-gold-light); }
.gallery-header .section-title { color: var(--color-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}

/* Primera foto: más grande, ocupa 2 filas */
.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-primary);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,46,89,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-overlay span {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox simple */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7,15,30,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
}
.gallery-lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  color: rgba(255,255,255,0.7);
  background: none; border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.gallery-lightbox-close:hover { color: var(--color-gold); }

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials-section {
  padding: 88px 0;
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

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

.testimonials-header {
  text-align: center;
  margin-bottom: 52px;
}
.testimonials-header .section-label {
  background: rgba(217,164,4,0.15);
  border-color: rgba(217,164,4,0.3);
  color: var(--color-gold-light);
}
.testimonials-header .section-label::before { background: var(--color-gold-light); }
.testimonials-header .section-title { color: var(--color-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(217,164,4,0.3);
  transform: translateY(-4px);
}

/* Comillas decorativas */
.testimonial-quote {
  font-size: 5rem;
  line-height: 0.6;
  color: var(--color-gold);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}

.testimonial-text {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.testimonial-stars span {
  color: var(--color-gold);
  font-size: 0.9rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(217,164,4,0.4);
  flex-shrink: 0;
  background: var(--color-primary-mid);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.testimonial-info .t-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
}
.testimonial-info .t-role {
  font-size: 0.78rem;
  color: var(--color-gold-light);
  display: block;
  margin-top: 2px;
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */
.contact-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #EBF2FB 0%, #F4F8FE 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,74,138,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,74,138,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { padding-top: 8px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon-wrap {
  width: 46px; height: 46px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11,46,89,0.25);
}

.contact-item-body .ci-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  display: block;
  margin-bottom: 3px;
}
.contact-item-body .ci-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  line-height: 1.4;
}
.contact-item-body .ci-value a {
  color: var(--color-dark);
  transition: color 0.2s;
}
.contact-item-body .ci-value a:hover { color: var(--color-primary); }

/* Mapa placeholder */
.contact-map-embed {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}

.contact-map-embed iframe {
  width: 100%;
  height: 200px;
  display: block;
  border: none;
  filter: contrast(1.05) saturate(0.9);
}

.contact-map {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-100);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
  gap: 8px;
  position: relative;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Formulario */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  border-top: 3px solid var(--color-gold);
}

.contact-form-wrap h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.contact-form-wrap > p {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-mid);
  box-shadow: 0 0 0 3px rgba(18,74,138,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  justify-content: center;
  margin-top: 6px;
}

.form-success {
  display: none;
  background: rgba(18,155,94,0.08);
  border: 1px solid rgba(18,155,94,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--color-cta-dark);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ============================================
   PÁGINAS INTERNAS
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%);
  padding: 64px 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(217,164,4,0.4);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  color: var(--color-white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-gold-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

.page-content { padding: 64px 0; }

.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 44px;
  align-items: start;
}

.widget {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-gray-200);
  margin-bottom: 20px;
}
.widget h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gray-200);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-700);
}
.post-content h2 { font-size: 1.45rem; color: var(--color-dark); margin: 28px 0 14px; }
.post-content h3 { font-size: 1.15rem; color: var(--color-dark); margin: 22px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 22px; }
.post-content li { margin-bottom: 7px; }
.post-content blockquote {
  border-left: 3px solid var(--color-primary-mid);
  padding: 14px 22px;
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
  font-style: italic;
  color: var(--color-gray-700);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: span 1; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-content { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { max-width: 460px; margin: 0 auto; }
  .docs-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(2n+1) + .stat-item { border-left: 1px solid var(--color-gray-200); }
  .stat-item:nth-child(3) { border-top: 1px solid var(--color-gray-200); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--color-gray-200); }
  .page-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 66px; --topbar-height: 32px; }
  .topbar { display: none; }
  .navbar-nav, .navbar-cta { display: none; }
  .nav-toggle { display: flex; }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-white);
    padding: 12px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    gap: 2px;
    border-top: 2px solid var(--color-gold);
  }
  .navbar-nav.open .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    background: var(--color-surface);
    border-top: none;
    margin: 4px 0 4px 12px;
    padding: 4px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-accent-card { position: static; margin-top: 16px; }
  .hero-badge { display: none; }
  .hero-content { padding: 56px 0 72px; }
}

@media (max-width: 520px) {
  .services-grid,
  .docs-grid,
  .stats-grid,
  .why-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-item { border-left: none !important; border-top: 1px solid var(--color-gray-200); }
  .stats-grid .stat-item:first-child { border-top: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-item { border-left: none !important; padding: 0; }
  .hero-title { font-size: 2rem; }
}
