/* 
   ==========================================================================
   UNADECA Landing Page - Estilos Modernos e Interactivos (Vanilla CSS)
   Desarrollado para Google Ads y Campañas de Publicidad de Conversión
   ========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- variables del sistema de diseño --- */
:root {
  --primary: #002e62;
  --primary-rgb: 0, 46, 98;
  --primary-light: #053974;
  --secondary: #fdc82c;
  --secondary-rgb: 253, 200, 44;
  --accent: #46a6ff;
  --royal: #2b3fd0;
  --medium: #0170C7;
  --dark: #0f172a;
  --dark-rgb: 15, 23, 42;
  --light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  
  /* Glassmorphism system */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 10px 40px -10px rgba(0, 46, 98, 0.12);
  
  --glass-dark-bg: rgba(15, 23, 42, 0.75);
  --glass-dark-border: rgba(255, 255, 255, 0.08);
  --glass-dark-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  
  /* Layout tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- custom scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
  border: 2px solid var(--light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- utilidades --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 20%, var(--royal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-secondary-color {
  color: var(--secondary);
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .py-section {
    padding: 64px 0;
  }
}

/* --- botones premium --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
  border-radius: inherit;
  z-index: 1;
}

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

.btn span {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 46, 98, 0.15);
}

.btn-primary:hover {
  background: var(--royal);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 63, 208, 0.25);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(253, 200, 44, 0.25);
}

.btn-secondary:hover {
  background: #fbc010;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 200, 44, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- header & navbar --- */
.header-wrapper {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* Social top bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: transform 0.3s ease, height 0.3s ease;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links a {
  opacity: 0.85;
}

.social-links a:hover {
  color: var(--secondary);
  opacity: 1;
  transform: translateY(-1px);
}

.top-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.top-nav-links a {
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

/* Main Navbar */
.navbar-main {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.navbar-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: var(--radius-full);
}

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

.navbar-main .btn-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
}

/* Scroll state navbar */
.header-wrapper.scrolled .top-bar {
  transform: translateY(-100%);
  height: 0;
  padding: 0;
  overflow: hidden;
}

.header-wrapper.scrolled .navbar-main {
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px -10px rgba(0, 46, 98, 0.15);
}

.header-wrapper.scrolled .logo img {
  height: 40px;
}

/* Responsividad Navbar */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
    box-shadow: -10px 10px 30px rgba(0, 46, 98, 0.1);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* --- hero section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  background: radial-gradient(circle at top right, rgba(70, 166, 255, 0.15), transparent 45%),
              radial-gradient(circle at bottom left, rgba(43, 63, 208, 0.08), transparent 45%),
              linear-gradient(to bottom, #ffffff, #f1f5f9);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(1, 112, 199, 0.05), rgba(43, 63, 208, 0.03));
  border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
  top: -10%;
  right: -5%;
  z-index: 0;
  animation: morphingBlob 20s infinite alternate linear;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 112, 199, 0.08);
  color: var(--medium);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--secondary);
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h2 span {
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  list-style: none;
}

.hero-benefits li {
  display: flex;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-benefits i {
  color: #10b981;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Formulario Lead Capture - Google Ads */
.hero-form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px -15px rgba(0, 46, 98, 0.18);
  position: relative;
  transition: transform 0.3s ease;
}

.hero-form-card:hover {
  transform: translateY(-4px);
}

.hero-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.hero-form-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
  display: block;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.captcha-group {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

@media (max-width: 380px) {
  .captcha-group .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--medium);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 112, 199, 0.15);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
  font-size: 0.95rem;
  background: transparent;
  padding: 0 4px;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--medium);
  background: var(--white);
  padding: 0 6px;
  border-radius: var(--radius-sm);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-group-select::after {
  content: '\F12C'; /* Bootstrap icons arrow-down */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Validaciones dinámicas modernas */
.form-input:user-valid {
  border-color: #10b981;
}

.form-input:user-invalid {
  border-color: #ef4444;
}

.hero-form-card .btn-submit {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
}

.form-policy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  display: block;
}

@media (max-width: 992px) {
  .hero {
    padding-top: calc(var(--header-height) + 30px);
    min-height: auto;
    padding-bottom: 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero h2 {
    font-size: 2.75rem;
  }
  
  .hero-form-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- estadisticas --- */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px -10px rgba(0, 46, 98, 0.3);
}

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

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--white);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* --- explorador de carreras --- */
.careers {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Filtros de Carrera */
.career-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--light);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.filter-btn:hover {
  background: rgba(1, 112, 199, 0.08);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 46, 98, 0.15);
}

/* Carrusel de carreras */
.careers-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 60px;
  margin-top: 20px;
}

.careers-carousel-container {
  overflow: hidden;
  width: 100%;
}

.careers-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  padding: 15px 0; /* Espacio para que la sombra del hover no se corte */
}

.careers-carousel-track .career-card {
  flex: 0 0 calc((100% - (2 * 24px)) / 3);
  box-sizing: border-box;
}

/* Controles del Carrusel (Glassmorphism Premium) */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-control:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 46, 98, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

/* Paginación (Puntos) */
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.pagination-dot:hover {
  background: var(--text-muted);
}

.pagination-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* Animaciones de filtrado */
@keyframes carouselFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.careers-carousel-track .career-card.filtered-in {
  animation: carouselFadeInUp 0.4s ease forwards;
}

/* Adaptabilidad Responsiva del Carrusel */
@media (max-width: 992px) {
  .careers-carousel-track .career-card {
    flex: 0 0 calc((100% - (1 * 24px)) / 2); /* 2 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .careers-carousel-wrapper {
    padding: 0 20px;
  }
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .carousel-control.prev {
    left: -10px;
  }
  .carousel-control.next {
    right: -10px;
  }
}

@media (max-width: 576px) {
  .careers-carousel-track .career-card {
    flex: 0 0 100%; /* 1 columna en móviles */
  }
  .careers-carousel-wrapper {
    padding: 0 10px;
  }
  .carousel-control {
    display: none !important; /* Ocultar flechas en móvil */
  }
}

.career-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.career-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 46, 98, 0.12);
  border-color: rgba(1, 112, 199, 0.15);
}

.career-img-container {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.career-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.career-card:hover .career-img-container img {
  transform: scale(1.08);
}

.career-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.career-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.career-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.career-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.career-card .btn-info-trigger {
  width: 100%;
  background: var(--light);
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.career-card:hover .btn-info-trigger {
  background: var(--primary);
  color: var(--white);
}

/* Modales Nativos con Dialog API */
.career-modal {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 40px;
  max-width: 650px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  position: relative;
  outline: none;
}

.career-modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header .category {
  color: var(--medium);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 2rem;
  color: var(--primary);
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.detail-block span {
  display: block;
}

.detail-block .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-block .val {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.modal-body {
  margin-bottom: 32px;
}

.modal-body h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-body ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-body li {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-body li i {
  color: var(--medium);
}

.modal-cta {
  display: flex;
  gap: 16px;
}

.modal-cta .btn {
  flex: 1;
}

@media (max-width: 576px) {
  .career-modal {
    padding: 30px 20px;
  }
  
  .modal-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .modal-body ul {
    grid-template-columns: 1fr;
  }
  
  .modal-cta {
    flex-direction: column;
  }
}

/* --- motivos section --- */
.reasons {
  background: radial-gradient(circle at bottom right, rgba(253, 200, 44, 0.08), transparent 35%),
              linear-gradient(to bottom, #f8fafc, #ffffff);
}

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

.reason-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.reason-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 46, 98, 0.1);
  border-color: rgba(1, 112, 199, 0.15);
}

.reason-card::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(1, 112, 199, 0.05), transparent);
  border-radius: 50%;
  top: -20px;
  left: -20px;
  transition: var(--transition);
}

.reason-card:hover::before {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, rgba(253, 200, 44, 0.15), transparent);
}

.reason-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(1, 112, 199, 0.15);
  transition: var(--transition);
  position: relative;
}

.reason-card:hover .reason-number {
  color: var(--secondary);
  transform: scale(1.1) translateX(4px);
}

.reason-card h3 {
  font-size: 1.35rem;
  position: relative;
}

.reason-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature reason span (full width middle container) */
.reasons-full {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  align-items: center;
  box-shadow: 0 20px 45px -15px rgba(0, 46, 98, 0.25);
  margin-top: 32px;
}

.reasons-full h3 {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.reasons-full h3 span {
  color: var(--secondary);
}

.reasons-full p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.reasons-full-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.reasons-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  
  .reasons-full {
    grid-column: auto;
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  
  .reasons-full-image {
    height: 240px;
  }
}

/* --- vida estudiantil & video --- */
.student-life {
  background-color: var(--light);
}

.video-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.video-player-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.video-player-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.video-player-preview:hover img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 46, 98, 0.75), rgba(43, 63, 208, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-play {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(253, 200, 44, 0.6);
  animation: pulseButton 2s infinite;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.video-player-preview:hover .btn-play {
  transform: scale(1.1);
  background: var(--white);
}

@keyframes pulseButton {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 200, 44, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(253, 200, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 200, 44, 0);
  }
}

.video-info-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.video-info-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Carrusel de Galería Campus */
.campus-gallery {
  margin-top: 64px;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 46, 98, 0.8), transparent);
  color: var(--white);
  padding: 24px 16px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 992px) {
  .video-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-track {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 200px;
  }
}

/* Lightbox Modal para video */
.video-lightbox {
  max-width: 900px;
  width: 90%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.video-lightbox .modal-close {
  top: -48px;
  right: 0;
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.video-lightbox .modal-close:hover {
  background: rgba(255,255,255,0.4);
}

.video-ratio {
  aspect-ratio: 16/9;
  background: #000;
}

.video-ratio iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- financiamiento --- */
.financing {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.financing::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 200, 44, 0.1) 0%, transparent 60%);
  top: -100px;
  left: -100px;
}

.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.financing-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.financing-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.financing-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.financing-feature-item {
  display: flex;
  gap: 16px;
}

.financing-feature-item i {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-top: 3px;
}

.financing-feature-item h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.financing-feature-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Calculadora interactiva sutil de becas */
.financing-calculator {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-dark-shadow);
}

.financing-calculator h3 {
  color: var(--white);
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.calc-group {
  margin-bottom: 20px;
}

.calc-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.calc-select, .calc-range {
  width: 100%;
}

.calc-select {
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  outline: none;
}

.calc-select option {
  background: var(--dark);
  color: var(--white);
}

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-range {
  flex-grow: 1;
  accent-color: var(--secondary);
}

.range-val {
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--secondary);
  min-width: 45px;
  text-align: right;
}

.calc-result-box {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 32px;
  border: 1px dashed rgba(255,255,255,0.15);
}

.calc-result-box .result-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 600;
}

.calc-result-box .result-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin: 6px 0;
}

.calc-result-box .result-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 992px) {
  .financing-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- red mundial section --- */
.world-network {
  background-color: var(--white);
}

.network-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.network-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.network-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.network-logo-container {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

.network-logo-container img {
  height: 60px;
}

.network-map-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.network-map-svg {
  width: 100%;
  max-width: 650px;
  height: auto;
}

.map-point {
  fill: var(--royal);
  stroke: var(--white);
  stroke-width: 1.5;
  r: 4;
  transition: var(--transition);
  cursor: pointer;
}

.map-point:hover {
  fill: var(--secondary);
  r: 7;
  filter: drop-shadow(0 0 8px var(--secondary));
}

.map-tooltip {
  position: absolute;
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 10;
}

.map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

@media (max-width: 992px) {
  .network-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- faq section --- */
.faq {
  background-color: var(--light);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(1, 112, 199, 0.15);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.faq-question:hover .faq-icon {
  background: var(--primary);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Active State Accordion */
.faq-item.active {
  box-shadow: 0 10px 25px -10px rgba(0, 46, 98, 0.08);
  border-color: rgba(1, 112, 199, 0.2);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--secondary);
  color: var(--primary);
}

/* --- footer --- */
.footer {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  color: var(--white);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  height: 56px;
  margin-bottom: 24px;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-social-btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.footer-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-item i {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info-item a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- elementos flotantes --- */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 999;
  animation: waPulse 2s infinite;
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  background: #20ba5a;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.scroll-top {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(0,46,98,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Modal de éxito Formulario */
.success-modal {
  max-width: 450px;
  padding: 48px 32px;
  text-align: center;
}

.success-modal i {
  font-size: 4.5rem;
  color: #10b981;
  margin-bottom: 24px;
  display: block;
}

.success-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.success-modal p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Animations keys */
@keyframes morphingBlob {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  50% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
}

/* Fade reveals for JS IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
