/* ============================================
   CORPORACIÓN EDUCATIVA GENERAL SANTANDER
   Hoja de Estilos Principal - style.css
   ============================================ */

:root {
  /* ===== PALETA DE COLORES ===== */
  /* Púrpuras - Modifica aquí para cambiar el tema principal */
  --purple-dark: #2D0F50;
  --purple-deep: #3D1373;
  --purple-main: #4A1A8B;
  --purple-mid: #6B2FA0;
  --purple-light: #8B4FC4;
  --purple-lighter: #B07DE0;
  --purple-pale: #EDE0F7;
  --purple-soft: #F5EBFB;
  
  /* Amarillos - Acentos y CTAs */
  --yellow: #FFD93D;
  --yellow-dark: #F4C430;
  
  /* Colores de estado */
  --green: #25D366;
  --red: #E74C3C;
  
  /* Neutros */
  --white: #FFFFFF;
  --dark: #1A0A2E;
  --text-dark: #2D1B4E;
  --text-gray: #6B5B7B;
  
  /* ===== GRADIENTES ===== */
  --gradient-main: linear-gradient(135deg, #3D1373 0%, #4A1A8B 50%, #6B2FA0 100%);
  --gradient-light: linear-gradient(135deg, #D4B0F0 0%, #EDE0F7 100%);
  --gradient-hero: linear-gradient(160deg, #1A0838 0%, #2D0F50 30%, #4A1A8B 60%, #6B2FA0 100%);
  --gradient-yellow: linear-gradient(135deg, #FFD93D 0%, #F4C430 100%);
  --gradient-green: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  --gradient-red: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  
  /* ===== SOMBRAS ===== */
  --shadow-sm: 0 2px 10px rgba(74, 26, 139, 0.1);
  --shadow-md: 0 8px 30px rgba(74, 26, 139, 0.15);
  --shadow-lg: 0 15px 50px rgba(74, 26, 139, 0.2);
  --shadow-glow: 0 0 40px rgba(107, 47, 160, 0.3);
  
  /* ===== BORDES Y RADIOS ===== */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* ===== TRANSICIONES ===== */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET Y BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--purple-pale); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); transition: color 0.3s; min-width: 0; }
.navbar.scrolled .nav-brand { color: var(--purple-dark); }
.nav-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(107, 47, 160, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--white);
  flex-shrink: 0;
}
.navbar.scrolled .nav-logo { border-color: var(--purple-lighter); box-shadow: var(--shadow-sm); }
.nav-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-brand-text { display: flex; flex-direction: column; min-width: 0; }
.nav-brand-name { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px; line-height: 1.2; white-space: nowrap; }
.nav-brand-branch { font-size: 0.65rem; opacity: 0.8; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 5px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.navbar.scrolled .nav-links a:hover { background: var(--purple-pale); color: var(--purple-main); }
.nav-cta { background: var(--gradient-yellow) !important; color: var(--purple-dark) !important; font-weight: 700 !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}
.navbar.scrolled .hamburger { background: var(--purple-pale); }
.hamburger span { width: 22px; height: 3px; background: var(--white); border-radius: 3px; transition: all 0.3s; }
.navbar.scrolled .hamburger span { background: var(--purple-dark); }
.hamburger.active { background: transparent; }
.hamburger.active span { background: var(--purple-dark); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 20px 60px;
}
.hero-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.5s ease-in-out;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 0.2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-hero); opacity: 0.85; z-index: 1; }

.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(139, 79, 196, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 850px; width: 100%; }

.hero-logo {
  width: 160px; height: 160px;
  margin: 0 auto 25px;
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(139, 79, 196, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(255, 217, 61, 0.5)); }
}
.hero-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(139, 79, 196, 0.3);
}

.hero-resolution {
  display: inline-block;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeInDown 1s ease-out 0.1s both;
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  animation: fadeInDown 1s ease-out 0.4s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-title-main { display: block; font-size: clamp(1.6rem, 4.5vw, 3rem); }
.hero-title-highlight {
  display: block;
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.8rem, 5.5vw, 3.6rem);
  margin-top: 5px;
}

.hero-mission {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--yellow);
  font-weight: 700;
  font-style: italic;
  margin: 20px 0;
  animation: fadeInDown 1s ease-out 0.5s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  font-weight: 500;
  animation: fadeInDown 1s ease-out 0.6s both;
}

.hero-sub-slogan {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease-out 0.7s both;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease-out 0.8s both; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-yellow); color: var(--purple-dark); box-shadow: 0 4px 20px rgba(255, 217, 61, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(255, 217, 61, 0.5); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--white); transform: translateY(-3px); }
.btn-purple { background: var(--gradient-main); color: var(--white); box-shadow: var(--shadow-md); }
.btn-purple:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-yellow { background: var(--gradient-yellow); color: var(--purple-dark); box-shadow: 0 4px 20px rgba(255, 217, 61, 0.4); }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(255, 217, 61, 0.5); }
.btn-green {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5); }

.scroll-indicator {
  position: absolute;
  bottom: 25px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.scroll-arrow { width: 22px; height: 35px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 12px; position: relative; }
.scroll-arrow::before {
  content: ''; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scrollDown { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* ===== COUNTDOWN ===== */
.countdown-section {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  padding: 35px 20px;
  position: relative;
  overflow: hidden;
  color: white;
}
.countdown-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.countdown-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.countdown-icon {
  font-size: 2rem;
  animation: shake 1.5s ease-in-out infinite;
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
.countdown-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 22px;
  font-weight: 500;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.countdown-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  min-width: 95px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}
.countdown-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}
.countdown-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
}
.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  opacity: 0.9;
  font-weight: 600;
}
.countdown-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
  transition: all 0.3s;
}
.countdown-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 217, 61, 0.5);
}
.countdown-expired {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement {
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  padding: 14px 20px;
  text-align: center;
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}
.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.announcement-icon { animation: ringBell 2s ease-in-out infinite; display: inline-block; }
@keyframes ringBell {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 50px; padding: 0 15px; }
.section-label {
  display: inline-block;
  background: var(--gradient-light);
  color: var(--purple-main);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--purple-dark); font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.section-subtitle { font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-gray); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ===== PROGRAMS ===== */
.programs { background: linear-gradient(180deg, var(--white) 0%, var(--purple-soft) 100%); overflow: hidden; padding: 90px 0; position: relative; }
.programs::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-main); }

.programs-hero-title {
  text-align: center;
  margin-bottom: 50px;
}
.programs-hero-title .section-title {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.programs-hero-title .highlight-yellow {
  display: inline-block;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  padding: 2px 16px;
  border-radius: 8px;
  -webkit-text-fill-color: var(--purple-dark);
}

.programs-carousel-wrapper {
  position: relative;
  margin: 0 -20px;
  padding: 20px 0 30px;
  overflow: hidden;
}
.programs-carousel {
  display: flex;
  gap: 25px;
  padding: 10px 20px;
  animation: scrollPrograms 60s linear infinite;
  width: max-content;
}
.programs-carousel:hover { animation-play-state: paused; }
@keyframes scrollPrograms { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 12.5px)); } }

.program-card {
  flex-shrink: 0;
  width: 310px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-lighter);
}

.program-image {
  width: 100%;
  height: 175px;
  background: var(--gradient-main);
  position: relative;
  overflow: hidden;
}
.program-image img { width: 100%; height: 100%; object-fit: cover; }

.program-number {
  position: absolute;
  top: 12px; left: 12px;
  width: 38px; height: 38px;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2;
}

.program-discount-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gradient-red);
  color: white;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseTag 2s ease-in-out infinite;
}
@keyframes pulseTag {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.program-icon-circle {
  position: absolute;
  bottom: -25px;
  right: 20px;
  width: 55px; height: 55px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 6px 20px rgba(74, 26, 139, 0.4);
  z-index: 2;
  border: 3px solid white;
}

.program-body {
  padding: 35px 22px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.program-category {
  font-size: 0.68rem;
  color: var(--purple-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.program-title {
  font-size: 1.05rem;
  color: var(--purple-dark);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 2.7em;
}
.program-description {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px solid var(--purple-pale);
}
.program-meta-item {
  font-size: 0.74rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.program-inscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--gradient-green);
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.program-inscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.program-inscribe-btn:active {
  transform: translateY(0);
}

.programs-cta { text-align: center; margin-top: 35px; }
.programs-cta .btn { font-size: 1rem; padding: 14px 36px; }

/* ===== ABOUT ===== */
.about { background: var(--white); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-card-main {
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-card-main::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.about-card-main h3 { font-size: 1.6rem; margin-bottom: 18px; position: relative; z-index: 1; }
.about-card-main p { font-size: 0.98rem; line-height: 1.8; opacity: 0.95; position: relative; z-index: 1; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 22px 15px; text-align: center; box-shadow: var(--shadow-md); transition: all 0.3s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--purple-main); line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--text-gray); font-weight: 500; margin-top: 4px; }

.about-text h3 { font-size: 1.4rem; color: var(--purple-dark); margin-bottom: 18px; font-weight: 700; }
.about-text p { color: var(--text-gray); margin-bottom: 15px; line-height: 1.8; font-size: 0.95rem; }

.about-features { list-style: none; margin-top: 25px; }
.about-features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px 16px; background: var(--purple-pale); border-radius: var(--radius-sm); transition: all 0.3s; }
.about-features li:hover { background: var(--purple-lighter); transform: translateX(5px); }
.feature-icon { width: 26px; height: 26px; background: var(--purple-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.about-features li span { font-weight: 500; color: var(--text-dark); font-size: 0.9rem; line-height: 1.5; }

/* ===== GALLERY ===== */
.gallery { background: var(--white); padding: 60px 0; overflow: hidden; }
.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery-track {
  display: flex;
  gap: 20px;
  animation: scrollGallery 30s linear infinite;
  width: max-content;
}
.gallery-track:hover { animation-play-state: paused; }
@keyframes scrollGallery { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }

.gallery-item {
  flex-shrink: 0;
  width: 320px; height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(45, 15, 80, 0.95), transparent);
  padding: 20px 15px 15px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(60%);
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

/* ===== VALUES ===== */
.values { background: linear-gradient(180deg, var(--purple-pale) 0%, var(--white) 100%); position: relative; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-emoji { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.value-card h4 { font-size: 1.05rem; color: var(--purple-dark); font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 0.82rem; color: var(--text-gray); line-height: 1.5; }

/* ===== SCHOLARSHIPS / DESCUENTOS DESTACADOS ===== */
.scholarships {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 100%);
  padding: 100px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.scholarships::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.scholarships::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 79, 196, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.scholarships .section-label {
  background: var(--gradient-yellow);
  color: var(--purple-dark);
}
.scholarships .section-title {
  color: white;
}
.scholarships .section-title .yellow-text {
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scholarships .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.scholarships-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}
.scholarship-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.scholarship-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-yellow);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.scholarship-card:hover::before { transform: scaleX(1); }
.scholarship-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  border-color: var(--yellow);
}
.scholarship-card.premium {
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  border-color: var(--yellow);
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(255, 217, 61, 0.4);
}
.scholarship-card.premium:hover {
  transform: scale(1.05) translateY(-8px);
}
.scholarship-card.premium::before {
  background: var(--purple-main);
}
.scholarship-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-red);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  white-space: nowrap;
}
.scholarship-percent {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scholarship-card.premium .scholarship-percent {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scholarship-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.95;
}
.scholarship-description {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
}
.scholarship-card.premium .scholarship-description { opacity: 1; font-weight: 500; }

/* How to apply */
.scholarship-how-to {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  position: relative;
  z-index: 2;
}
.scholarship-how-to h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 30px;
  color: white;
}
.scholarship-how-to h3 .icon {
  display: inline-block;
  margin-right: 10px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}
.apply-step {
  text-align: center;
  position: relative;
}
.apply-step-number {
  width: 50px; height: 50px;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 14px;
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}
.apply-step h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--yellow);
}
.apply-step p {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.5;
}
.scholarship-cta-area {
  text-align: center;
  padding-top: 25px;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}
.scholarship-cta-area p {
  margin-bottom: 18px;
  font-size: 0.92rem;
  opacity: 0.9;
}
.scholarship-requirements {
  background: rgba(255, 217, 61, 0.1);
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}
.scholarship-requirements h4 {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scholarship-requirements ul {
  list-style: none;
  padding: 0;
}
.scholarship-requirements li {
  padding: 6px 0;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  opacity: 0.9;
}
.scholarship-requirements li::before {
  content: '✓';
  color: var(--yellow);
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== ENROLL STEPS ===== */
.enroll { background: linear-gradient(180deg, var(--purple-soft) 0%, var(--purple-pale) 100%); }
.enroll-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 50px; }
.step-card { text-align: center; position: relative; padding: 0 10px; }
.step-number {
  width: 60px; height: 60px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.step-card:not(:last-child)::after {
  content: ''; position: absolute; top: 30px;
  left: calc(50% + 40px);
  width: calc(100% - 80px); height: 3px;
  background: var(--purple-lighter);
  z-index: 1;
}
.step-card h4 { font-size: 1rem; color: var(--purple-dark); margin-bottom: 8px; font-weight: 700; }
.step-card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.6; }

/* ===== BENEFITS ===== */
.benefits {
  background: var(--gradient-main);
  padding: 60px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.benefit-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}
.benefit-check {
  width: 50px; height: 50px;
  background: var(--gradient-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--purple-dark);
}
.benefit-item h4 { font-size: 1rem; margin-bottom: 4px; }
.benefit-item p { font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }

/* ===== CERTIFICATION ===== */
.certification { background: var(--white); padding: 50px 0; }
.cert-banner {
  background: var(--gradient-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cert-item { text-align: center; min-width: 130px; }
.cert-item .label { font-size: 0.7rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.cert-item .value { font-size: 1rem; color: var(--purple-dark); font-weight: 700; line-height: 1.4; }
.cert-divider { width: 2px; height: 50px; background: var(--purple-lighter); }

/* ===== CONTACT ===== */
.contact { background: var(--gradient-hero); color: var(--white); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.contact .section-label { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact .section-subtitle { color: rgba(255, 255, 255, 0.85); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; position: relative; z-index: 2; }
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-5px); }
.contact-icon {
  width: 55px; height: 55px;
  background: rgba(255, 217, 61, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
}
.contact-card h4 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.contact-card p { font-size: 0.92rem; opacity: 0.9; line-height: 1.6; margin-bottom: 5px; }
.contact-card a { color: var(--white); text-decoration: none; transition: opacity 0.3s; }
.contact-card a:hover { opacity: 0.7; text-decoration: underline; }
.branch-badge {
  display: inline-block;
  background: rgba(255, 217, 61, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--yellow);
}
.map-container {
  margin-top: 45px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  height: 350px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== FAQ ===== */
.faq { background: var(--purple-pale); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--purple-dark);
  font-size: 0.98rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  gap: 15px;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--purple-main); }
.faq-toggle {
  width: 28px; height: 28px;
  background: var(--purple-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--purple-main);
}
.faq-item.active .faq-toggle { background: var(--purple-main); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 25px 22px; }
.faq-answer p { color: var(--text-gray); line-height: 1.7; font-size: 0.92rem; }

/* ===== CTA ===== */
.cta-section { background: var(--white); padding: 70px 0; }
.cta-box {
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  padding: 55px 35px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 217, 61, 0.15) 0%, transparent 50%);
}
.cta-box h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 15px; position: relative; z-index: 1; }
.cta-box .cta-yellow-highlight {
  display: inline-block;
  background: var(--gradient-yellow);
  color: var(--purple-dark);
  padding: 2px 14px;
  border-radius: 8px;
}
.cta-box p { font-size: clamp(0.95rem, 2vw, 1.1rem); opacity: 0.9; margin-bottom: 28px; position: relative; z-index: 1; line-height: 1.6; }
.cta-box .btn { position: relative; z-index: 1; font-size: 1rem; padding: 15px 36px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 55px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 35px; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; }
.footer-brand-header { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.footer-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--white);
  flex-shrink: 0;
}
.footer-brand h3 { color: var(--white); font-size: 1rem; line-height: 1.3; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.social-link {
   width: 40px; height: 40px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--white);
   text-decoration: none;
   transition: all 0.3s;
   font-size: 1.1rem;
}
.social-link svg {
    width: 20px; height: 20px; display: block;
}
.social-link svg[viewBox="0 0 48 48"] { width: 18px; height: 18px; }
.social-link:hover { background: var(--purple-main); transform: translateY(-3px); }
.social-link.facebook { color: #1877F2; }
.social-link.facebook:hover { background: #1877F2; color: white; }
.social-link.facebook:hover svg { fill: white; }
.social-link:nth-child(2):hover { background: #E4405F; color: white; }
.social-link:nth-child(3):hover { background: #25D366; color: white; }
.social-link:nth-child(4):hover { background: var(--yellow); color: var(--purple-dark); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.88rem; transition: all 0.3s; }
.footer-col ul li a:hover { color: var(--yellow); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--yellow); }

/* Tibutec credits link */
.credits-separator { opacity: 0.3; margin: 0 8px; }
.tibutec-link { 
    color: var(--yellow) !important; 
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tibutec-link:hover { 
    opacity: 1 !important; 
    text-decoration: underline !important;
}
.tibutec-logo {
    width: 18px; height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(1077%) hue-rotate(326deg) brightness(102%) contrast(103%);
}

/* ===== PROGRAM MODAL ===== */
.program-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.program-modal.active {
    opacity: 1;
    visibility: visible;
}
.program-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    margin: 20px;
}
.program-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--purple-pale);
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-dark);
    transition: all 0.3s;
}
.program-modal-close:hover {
    background: var(--purple-main);
    color: var(--white);
    transform: rotate(90deg);
}
.program-modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.program-modal-icon {
    width: 70px; height: 70px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 15px;
}
.program-modal-title {
    font-size: 1.5rem;
    color: var(--purple-dark);
    margin-bottom: 5px;
}
.program-modal-category {
    display: inline-block;
    background: var(--purple-pale);
    color: var(--purple-main);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.program-modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}
.program-modal-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}
.program-modal-features {
    list-style: none;
    margin-bottom: 20px;
}
.program-modal-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--purple-pale);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.program-modal-features li:last-child { border-bottom: none; }
.program-modal-features li::before {
    content: '✓';
    color: var(--yellow);
    font-weight: 800;
    flex-shrink: 0;
}
.program-modal-btn {
    width: 100%;
    text-align: center;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: whatsappEntry 0.6s ease-out 1s both;
}
@keyframes whatsappEntry { from { transform: scale(0) rotate(-180deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
.whatsapp-bubble {
  background: var(--white);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px 20px 4px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  display: none;
}
@media (min-width: 768px) { .whatsapp-bubble { display: block; } }
.whatsapp-btn {
  width: 58px; height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-float:hover .whatsapp-btn { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 25px; left: 25px;
  width: 45px; height: 45px;
  background: var(--purple-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  font-size: 1.2rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--purple-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .enroll-steps { grid-template-columns: repeat(2, 1fr); gap: 35px; }
  .step-card:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 18px; }
  .scholarships-grid { grid-template-columns: repeat(2, 1fr); }
  .scholarship-card.premium { transform: scale(1); }
  .scholarship-card.premium:hover { transform: translateY(-8px); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 65px 0; }
  .section-header { margin-bottom: 40px; padding: 0 10px; }
  .programs { padding: 65px 0; }
  .scholarships { padding: 70px 0; }

  .hamburger { display: flex; }
  .nav-brand { gap: 10px; }
  .nav-brand-text { max-width: 170px; }
  .nav-brand-name { font-size: 0.78rem; }
  .nav-brand-branch { font-size: 0.6rem; }
  .nav-logo { width: 42px; height: 42px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 90px 25px 30px;
    gap: 6px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    align-items: stretch;
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    color: var(--text-dark) !important;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-links a:hover { background: var(--purple-pale) !important; color: var(--purple-main) !important; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 999; }
  .mobile-overlay.active { display: block; }

  .hero { padding: 100px 18px 70px; min-height: auto; }
  .hero-logo { width: 110px; height: 110px; margin-bottom: 22px; }
  .hero-resolution { font-size: 0.65rem; padding: 6px 14px; margin-bottom: 14px; }
  .hero-title { margin-bottom: 14px; }
  .hero-mission { margin: 18px 0; padding: 0 10px; }
  .hero-slogan { padding: 0 10px; }
  .hero-sub-slogan { margin-bottom: 28px; padding: 0 15px; }
  .hero-buttons { gap: 12px; padding: 0 10px; }
  .scroll-indicator { bottom: 20px; }

  .countdown-section { padding: 28px 18px; }
  .countdown-box { min-width: 78px; padding: 14px 8px; }
  .countdown-grid { gap: 10px; }

  .announcement { font-size: 0.82rem; padding: 12px 15px; }

  .about-card-main { padding: 32px 24px; }
  .about-card-main h3 { font-size: 1.35rem; }
  .about-stats { gap: 14px; }
  .stat-card { padding: 18px 12px; }
  .stat-icon { font-size: 1.6rem; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .value-card { padding: 28px 18px; }
  .value-emoji { font-size: 2.2rem; }

  .program-card { width: 280px; }
  .programs-carousel { gap: 18px; }
  .program-image { height: 160px; }
  .program-body { padding: 32px 20px 20px; }
  .program-title { font-size: 1rem; min-height: 2.6em; }
  .program-icon-circle { width: 50px; height: 50px; font-size: 1.4rem; right: 16px; bottom: -22px; }
  .program-number { width: 34px; height: 34px; font-size: 1rem; }
  .program-discount-tag { font-size: 0.62rem; padding: 4px 9px; }

  .gallery-item { width: 270px; height: 190px; }
  .gallery-track { gap: 15px; }

  .scholarships-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .scholarship-card { padding: 25px 18px; }
  .scholarship-percent { font-size: 2.8rem; }
  .scholarship-how-to { padding: 30px 22px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .scholarship-how-to h3 { font-size: 1.25rem; }

  .benefits { padding: 50px 0; }
  .benefit-item { padding: 16px; }
  .benefit-check { width: 44px; height: 44px; font-size: 1.2rem; }
  .benefit-item h4 { font-size: 0.95rem; }
  .benefit-item p { font-size: 0.8rem; }

  .enroll-steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .step-number { width: 55px; height: 55px; font-size: 1.4rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-card { padding: 30px 22px; }
  .map-container { height: 280px; margin-top: 35px; }

  .cert-banner { padding: 30px 20px; gap: 25px; }
  .cert-divider { display: none; }
  .cert-item { flex: 1 1 calc(50% - 15px); min-width: 130px; }

  .footer { padding: 50px 0 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; margin-bottom: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
  .footer-bottom-links { justify-content: center; }

  .cta-section { padding: 55px 0; }
  .cta-box { padding: 42px 24px; }

  .whatsapp-btn { width: 54px; height: 54px; font-size: 1.5rem; }
  .whatsapp-float { bottom: 18px; right: 18px; }
  .back-to-top { bottom: 18px; left: 18px; width: 42px; height: 42px; }

  .faq-question { padding: 18px 20px; font-size: 0.9rem; }
  .faq-item.active .faq-answer { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .section { padding: 50px 0; }
  .programs { padding: 50px 0; }
  .scholarships { padding: 55px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.88rem; }

  .navbar { padding: 12px 0; }
  .nav-brand-text { max-width: 130px; }
  .nav-brand-name { font-size: 0.72rem; }
  .nav-brand-branch { font-size: 0.55rem; }
  .nav-logo { width: 38px; height: 38px; }

  .hero { padding: 95px 15px 60px; }
  .hero-logo { width: 95px; height: 95px; margin-bottom: 18px; }
  .hero-resolution { font-size: 0.6rem; padding: 5px 12px; letter-spacing: 0.5px; }
  .hero-title { line-height: 1.2; margin-bottom: 12px; }
  .hero-title-main { font-size: 1.5rem; }
  .hero-title-highlight { font-size: 1.75rem; }
  .hero-mission { font-size: 0.95rem; margin: 14px 0; }
  .hero-slogan { font-size: 0.88rem; line-height: 1.5; }
  .hero-sub-slogan { font-size: 0.78rem; margin-bottom: 24px; line-height: 1.5; }
  .hero-buttons { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 10px; }
  .btn { width: 100%; padding: 13px 22px; font-size: 0.9rem; }

  .countdown-section { padding: 24px 15px; }
  .countdown-header { gap: 8px; margin-bottom: 14px; }
  .countdown-icon { font-size: 1.6rem; }
  .countdown-title { font-size: 1rem; }
  .countdown-subtitle { font-size: 0.8rem; margin-bottom: 18px; }
  .countdown-grid { gap: 8px; }
  .countdown-box { min-width: 68px; padding: 12px 6px; border-radius: 12px; }
  .countdown-number { font-size: 1.7rem; }
  .countdown-label { font-size: 0.62rem; margin-top: 4px; }
  .countdown-cta { font-size: 0.82rem; padding: 11px 22px; }

  .announcement { font-size: 0.75rem; padding: 11px 12px; }
  .announcement-content { gap: 6px; }

  .about-grid { gap: 40px; }
  .about-card-main { padding: 28px 20px; }
  .about-card-main h3 { font-size: 1.2rem; margin-bottom: 14px; }
  .about-card-main p { font-size: 0.88rem; line-height: 1.7; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
  .stat-card { padding: 16px 10px; }
  .stat-icon { font-size: 1.5rem; margin-bottom: 6px; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.68rem; }
  .about-text h3 { font-size: 1.2rem; }
  .about-text p { font-size: 0.88rem; }
  .about-features li { padding: 10px 14px; gap: 10px; margin-bottom: 10px; }
  .about-features li span { font-size: 0.82rem; }
  .feature-icon { width: 24px; height: 24px; font-size: 0.7rem; }

  .gallery { padding: 45px 0; }
  .gallery-item { width: 230px; height: 170px; }

  .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .value-card { padding: 22px 14px; }
  .value-emoji { font-size: 2rem; margin-bottom: 10px; }
  .value-card h4 { font-size: 0.95rem; }
  .value-card p { font-size: 0.75rem; }

  .program-card { width: 260px; }
  .programs-carousel { gap: 15px; }
  .program-image { height: 145px; }
  .program-number { width: 32px; height: 32px; font-size: 0.95rem; top: 10px; left: 10px; }
  .program-icon-circle { width: 46px; height: 46px; font-size: 1.3rem; right: 14px; bottom: -20px; border-width: 2px; }
  .program-body { padding: 30px 18px 18px; }
  .program-category { font-size: 0.62rem; }
  .program-title { font-size: 0.95rem; min-height: 2.5em; }
  .program-description { font-size: 0.78rem; }
  .program-meta-item { font-size: 0.7rem; }
  .program-inscribe-btn { padding: 11px 14px; font-size: 0.82rem; }

  .scholarships-grid { grid-template-columns: 1fr; gap: 18px; max-width: 320px; margin: 0 auto 40px; }
  .scholarship-card { padding: 28px 22px; }
  .scholarship-percent { font-size: 3rem; }
  .scholarship-how-to { padding: 28px 20px; }
  .scholarship-how-to h3 { font-size: 1.15rem; margin-bottom: 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .scholarship-requirements { padding: 18px; }
  .scholarship-requirements h4 { font-size: 0.9rem; }
  .scholarship-requirements li { font-size: 0.8rem; }

  .benefits { padding: 40px 0; }
  .benefit-item { padding: 14px; gap: 12px; }
  .benefit-check { width: 40px; height: 40px; font-size: 1.1rem; }
  .benefit-item h4 { font-size: 0.9rem; }
  .benefit-item p { font-size: 0.75rem; }

  .step-card { padding: 0; }
  .step-number { width: 50px; height: 50px; font-size: 1.3rem; margin-bottom: 14px; }
  .step-card h4 { font-size: 0.92rem; }
  .step-card p { font-size: 0.8rem; }

  .cert-banner { padding: 22px 16px; gap: 18px; }
  .cert-item { flex: 1 1 100%; }
  .cert-item .value { font-size: 0.9rem; }

  .contact-card { padding: 26px 18px; }
  .contact-card h4 { font-size: 0.98rem; }
  .contact-card p { font-size: 0.85rem; }

  .cta-section { padding: 50px 0; }
  .cta-box { padding: 35px 20px; border-radius: var(--radius-lg); }

  .faq-question { padding: 16px 18px; font-size: 0.85rem; gap: 12px; }
  .faq-toggle { width: 26px; height: 26px; font-size: 1rem; }
  .faq-item.active .faq-answer { padding: 0 18px 18px; }
  .faq-answer p { font-size: 0.85rem; }

  .footer { padding: 42px 0 22px; }
  .footer-brand-header { flex-direction: row; gap: 12px; }
  .footer-brand h3 { font-size: 0.92rem; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.9rem; }
  .footer-col ul li a { font-size: 0.82rem; }
  .footer-bottom-links { gap: 12px; }
  .footer-bottom p { font-size: 0.75rem; }
  .footer-bottom-links a { font-size: 0.75rem; }

  .whatsapp-btn { width: 50px; height: 50px; font-size: 1.4rem; }
  .back-to-top { width: 40px; height: 40px; font-size: 1.1rem; }

  .map-container { height: 240px; margin-top: 30px; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title-main { font-size: 1.35rem; }
  .hero-title-highlight { font-size: 1.55rem; }
  .nav-brand-text { display: none; }
  .about-stats { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .program-card { width: 240px; }
  .cert-banner { padding: 18px 14px; }
  .countdown-box { min-width: 60px; padding: 10px 4px; }
  .countdown-number { font-size: 1.5rem; }
  .countdown-label { font-size: 0.58rem; }
}

@media (hover: none) {
  .program-card:hover, .gallery-item:hover, .value-card:hover,
  .stat-card:hover, .scholarship-card:hover, .contact-card:hover,
  .about-features li:hover, .benefit-item:hover, .countdown-box:hover {
    transform: none;
  }
}

/* Contador de Visitas - Footer */
.visitor-counter-wrapper {
  text-align: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.1;
  transition: opacity var(--transition);
}
.visitor-counter-wrapper:hover {
  opacity: 1;
}
.visitor-counter-wrapper img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}