/*
 * Cursillo Stewart - Estilos Principales
 * Universidad Politécnica Taiwan Paraguay
 * 
 * Autor: Matias Vera G
 * Versión: 1.0.0
 * Fecha: 2025
 */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Color variables */
:root {
  --navy: #1e40af;
  --blue: #3b82f6;
  --light-blue: #93c5fd;
  --red: #dc2626;
  --light-red: #fca5a5;
  --green: #16a34a;
  --light-green: #4ade80;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  /* Legacy variables for compatibility */
  --gold: #dc2626;
  --light-gold: #fca5a5;
  /* Profesores page variables */
  --primary: #dc2626;
  --text-secondary: #666666;
  --bg-light: #f9fafb;
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none;
}

/* Header */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-circle {
  background-color: var(--gold);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--navy);
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-text h1 {
  color: var(--white);
  font-weight: bold;
  font-size: 1.25rem;
  margin: 0;
}

.logo-text p {
  color: var(--gold);
  font-size: 0.875rem;
  margin: 0;
}

.logo-image {
  height: 3rem;
  width: auto;
  max-width: 200px;
  border-radius: 8px;
  padding: 0.25rem;
}

/* Navigation */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--navy);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #e63946;
  border-bottom: 2px solid #e63946;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown .dropbtn {
  color: var(--navy);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  display: block;
}

.dropdown:hover .dropbtn {
  color: #e63946;
  border-bottom: 2px solid #e63946;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  margin-top: -0.5rem;
  overflow: hidden;
}

.dropdown-content a {
  color: var(--navy);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: none;
  transition: all 0.3s ease;
}

.dropdown-content a:first-child {
  margin-top: 0.5rem;
}

.dropdown-content a:hover {
  background-color: var(--gray-100);
  color: #e63946;
  border-bottom: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--red);
}

/* Mobile dropdown styles */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown > a {
  display: block;
  padding: 0.5rem 0;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  background-color: var(--gray-50);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.mobile-dropdown-content.show {
  display: flex;
}

.mobile-dropdown-content a {
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.mobile-dropdown-content a:hover {
  color: var(--red);
}

/* ===== BANNER CON CAROUSEL DE FONDO ===== */
.banner {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(30, 64, 175, 0.15) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Mejora la calidad de renderizado de imágenes */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Overlay oscuro semitransparente */
  z-index: 1;
}

.banner .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.banner h1,
.banner h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

/* SEO optimización para H1 principal */
.banner h1 {
  color: #ffffff;
  text-align: center;
}

.banner .subtitle {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.banner .description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Estilos para la imagen del banner */
.banner-image {
  margin-bottom: 8rem;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.banner-main-image {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
  transition: all 0.3s ease;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.banner-main-image:hover {
  transform: scale(1.02);
}

/* Medal Banner */
.medal-banner {
  background: linear-gradient(90deg, #c9a63b, #ffdd66);
  border-radius: 8px;
  padding: 10px 25px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #8b4513;
  font-size: 1.1rem;
  margin: 1rem 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
  font-family: 'Poppins', sans-serif;
}

.medal-banner span {
  font-size: 1.2rem;
}

.banner-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.1s both;
}

.banner .btn-primary {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
  background: linear-gradient(135deg, #e63946, #dc2626);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c92030, #b91c1c);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:disabled {
  cursor: not-allowed;
  transform: none;
}

/* Sections */
section {
  padding: 4rem 0;
}

.bg-gray {
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 48rem;
  margin: 0 auto;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.card-icon {
  background-color: var(--red);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
}

.card-icon svg {
  color: var(--white);
  stroke: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray-600);
}

/* Timeline Styles */
.timeline-container {
  max-width: 800px;
  margin: 3rem auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--navy));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 5rem;
}

.timeline-marker {
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--red);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--red);
  z-index: 2;
}

.timeline-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--red);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-content p {
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Values Section */
.values-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--gray-200);
}

.value-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--red);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-top-color: var(--navy);
}

.value-icon {
  background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.value-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Countdown Section */
.countdown-section {
  background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="none"><path d="M10 10L15 5L20 10L15 15Z" fill="rgba(255,255,255,0.1)"/><path d="M50 8L55 3L60 8L55 13Z" fill="rgba(255,255,255,0.1)"/><path d="M80 12L85 7L90 12L85 17Z" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.2;
}

.countdown-header {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
  text-align: center;
}

.countdown-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  flex-wrap: nowrap;
  line-height: 1.2;
}

.title-text {
  display: inline-block;
  white-space: nowrap;
}

.sandclock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4rem !important;
  height: 4rem !important;
  max-width: 4rem !important;
  max-height: 4rem !important;
  min-width: 4rem !important;
  min-height: 4rem !important;
  overflow: hidden;
  animation: sandclockSway 3s ease-in-out infinite;
}

.sandclock-icon dotlottie-wc {
  display: block !important;
  width: 4rem !important;
  height: 4rem !important;
  max-width: 4rem !important;
  max-height: 4rem !important;
  min-width: 4rem !important;
  min-height: 4rem !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

@keyframes sandclockSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.countdown-header p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.countdown-date {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 1rem 2rem;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  position: relative;
  z-index: 2;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
}

.countdown-item:hover::before {
  left: 100%;
}

.countdown-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.countdown-number {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  opacity: 0.9;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.countdown-separator {
  font-size: 2rem;
  font-weight: bold;
  opacity: 0.7;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 0.7;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.countdown-cta {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.countdown-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn-countdown {
  background: var(--white);
  color: var(--red);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-countdown:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--gray-50);
}

/* Countdown Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.countdown-number.pulse {
  animation: pulse 0.5s ease-in-out;
}

/* Countdown Responsive Styles */
@media (max-width: 768px) {
  .countdown-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  
  .sandclock-icon {
    width: 3.6rem !important;
    height: 3.6rem !important;
    max-width: 3.6rem !important;
    max-height: 3.6rem !important;
    min-width: 3.6rem !important;
    min-height: 3.6rem !important;
  }
  
  .sandclock-icon dotlottie-wc {
    width: 3.6rem !important;
    height: 3.6rem !important;
    max-width: 3.6rem !important;
    max-height: 3.6rem !important;
    min-width: 3.6rem !important;
    min-height: 3.6rem !important;
  }
  
  .countdown-timer {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .countdown-item {
    min-width: 80px;
    padding: 1rem;
  }
  
  .countdown-number {
    font-size: 2.2rem;
  }
  
  .countdown-separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .countdown-title {
    font-size: 1.5rem;
  }
  
  .sandclock-icon {
    width: 3rem !important;
    height: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
  }
  
  .sandclock-icon dotlottie-wc {
    width: 3rem !important;
    height: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
  }
  
  .countdown-item {
    min-width: 70px;
    padding: 0.8rem;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
}

/* Nuestros Ingresantes Section */
#ingresantes {
  padding: 5rem 0;
}

#ingresantes .section-header h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

#ingresantes .section-header p {
  color: var(--gray-600);
  margin-bottom: 3rem;
}

/* Tabs para años */
.years-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.year-tab {
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.year-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: left 0.3s ease;
  z-index: -1;
}

.year-tab:hover::before,
.year-tab.active::before {
  left: 0;
}

.year-tab:hover,
.year-tab.active {
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Contenido por año */
.years-content {
  position: relative;
}

.year-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.year-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Lista de ingresantes */

/* Tablet responsivo para countdown */
@media (max-width: 1024px) and (min-width: 769px) {
  .countdown-title {
    font-size: 2.2rem;
    gap: 0.6rem;
  }
  
  .sandclock-icon {
    font-size: 2.7em;
  }
}

/* Responsivo del ranking */
@media (max-width: 720px) {
  .ranking__head,
  .ranking__row {
    grid-template-columns: 2fr 1fr 1fr 0.6fr;
    font-size: 14px;
    padding: 12px 14px;
  }
  
  .medalla { 
    width: 18px; 
    height: 18px; 
  }

  .name {
    gap: 6px;
  }

  .col--score {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ranking__head,
  .ranking__row {
    grid-template-columns: 2fr 0.8fr 0.6fr;
    gap: 8px;
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Ocultar columna de carrera en móviles pequeños */
  .ranking__head span:nth-child(3),
  .ranking__row .col--career {
    display: none;
  }

  .medalla {
    width: 16px;
    height: 16px;
  }
}

/* Lista de ingresantes - Fallback para compatibilidad */
.ingresantes-list {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 4rem;
}

.ingresante-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}

.ingresante-item:last-child {
  border-bottom: none;
}

.ingresante-item:hover {
  background: var(--gray-50);
  transform: translateX(5px);
}

.ingresante-item.special {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.1));
  border-left: 4px solid var(--blue);
}

.medal {
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 2rem;
}

.nombre {
  flex: 1;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
}

.puntaje {
  font-weight: 700;
  color: var(--red);
  font-size: 1.1rem;
  min-width: 80px;
  text-align: center;
  margin-right: 1rem;
}

.posicion {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.95rem;
  min-width: 60px;
  text-align: center;
}

.carrera {
  font-weight: 600;
  color: var(--red);
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
}

.universidad {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: italic;
  flex: 1;
  text-align: right;
}

.modalidad {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
  font-style: italic;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  margin-top: 0.3rem;
  display: inline-block;
}

/* Estadísticas resumidas */
.ingresantes-stats,
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  padding: 3rem;
  border-radius: 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Estilos especiales para estadísticas */
.stat-item.total-stat .stat-number {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-item.error-stat .stat-number {
  color: #ff6b6b;
}

.stats .stat-item:last-child {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ingresante-card {
  animation: fadeIn 0.6s ease-out;
}

/* Table */
.table-container {
  overflow-x: auto;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: var(--navy);
  color: var(--white);
}

thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
}

tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: var(--gray-50);
}

tbody td {
  padding: 1rem 1.5rem;
}

tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* ===== SCHEDULE CARDS (HORARIOS EXTENSIVOS) ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.schedule-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--navy);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.schedule-card.presencial {
  border-left-color: var(--blue);
}

.schedule-card.sabados {
  border-left-color: var(--red);
}

.schedule-card.virtual {
  border-left-color: #059669;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.schedule-header h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.schedule-type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-type.presencial {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.schedule-type.sabados {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.schedule-type.virtual {
  background-color: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.schedule-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-info div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule-info strong {
  color: var(--navy);
  min-width: 70px;
}

.schedule-time {
  font-size: 1.1rem;
}

.schedule-days {
  color: var(--gray-600);
}

.schedule-dates {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Program Info Cards */
.program-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.info-card h4 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h4:not(:first-child) {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card li:last-child {
  border-bottom: none;
}

.info-card li::before {
  content: '✓';
  color: var(--red);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Book Information Styles */
.book-info {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.book-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.book-info .author {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  font-style: italic;
}

.book-info .book-description {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.75rem;
  opacity: 0.95;
}

.subtitle-secondary {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.presencial {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.badge.sabados {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--red);
}

.badge.virtual {
  background-color: rgba(5, 150, 105, 0.1);
  color: #059669;
}

/* Calendar cards */
.calendar-card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
}

.calendar-date {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.date-circle {
  background-color: var(--red);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--white);
  font-weight: bold;
  font-size: 0.875rem;
}

.date-info h3 {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.date-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.calendar-card h4 {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.calendar-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Forms */
.form-container {
  max-width: 32rem;
  margin: 0 auto;
}

.form {
  background-color: var(--gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-input::placeholder {
  color: var(--gray-300);
  font-style: italic;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-input {
  background-color: var(--white);
}

/* Form section titles */
.form-section-title {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title:first-child {
  margin-top: 0;
}

/* Form help text and validation */
.form-help {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  font-style: italic;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Input validation states */
.form-input:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-input:valid {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.1);
}

.form-input:focus:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-input:focus:valid {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Checkbox styling for terms and conditions */
.form-group input[type='checkbox'] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.form-label:has(input[type='checkbox']) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Required field indicator */
.form-label::after {
  content: '';
}

.form-label:has(+ input[required])::after,
.form-label:has(+ select[required])::after {
  content: ' *';
  color: var(--red);
  font-weight: bold;
}

/* Teacher cards */
.teacher-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid var(--red);
  position: relative;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-left-color: var(--navy);
}

.teacher-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.teacher-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.teacher-card:hover .teacher-header::before {
  animation: shine 0.5s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.teacher-avatar {
  background-color: var(--red);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
  position: relative;
}

.teacher-info {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.teacher-info h3 {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.teacher-subject {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.teacher-bio {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-icon {
  background-color: var(--gold);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--navy);
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.contact-info p:first-child {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.contact-info p:last-child {
  color: var(--gray-600);
  margin: 0;
}

.map-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

@media (min-width: 768px) {
  .map-container iframe {
    height: 400px;
  }
}

/* Footer */
footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-circle {
  background-color: var(--gold);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--navy);
  font-weight: bold;
}

.footer-logo-text h3 {
  font-weight: bold;
  font-size: 1.125rem;
  margin: 0;
}

.footer-logo-text p {
  color: var(--gold);
  font-size: 0.875rem;
  margin: 0;
}

.footer-logo-image {
  height: 2.5rem;
  width: auto;
  max-width: 150px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.2rem;
}

.footer h4 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--red);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  background-color: var(--gold);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-300);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
  }

  .mobile-menu.show {
    display: flex;
  }

  .banner h1,
  .banner h2 {
    font-size: 2rem;
  }

  .banner .subtitle {
    font-size: 1.25rem;
  }

  .banner .description {
    font-size: 1rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .program-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Timeline responsive */
  .timeline-container::before {
    left: 1rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: 0.25rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content:hover {
    transform: translateX(5px);
  }

  /* Stats responsive */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .banner {
    padding: 5rem 0 3rem;
  }

  .schedule-card {
    padding: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .banner h2 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Countdown Responsive */
  .countdown-title {
    font-size: 2rem;
    gap: 0.5rem;
    flex-direction: column;
  }

  .sandclock-icon {
    font-size: 2.25em;
    margin-bottom: 0.3rem;
  }

  .countdown-timer {
    flex-direction: column;
    gap: 1rem;
  }

  .countdown-item {
    min-width: auto;
    width: 100%;
    max-width: 200px;
    padding: 1rem;
  }

  .countdown-number {
    font-size: 2.5rem;
  }

  .countdown-separator {
    display: none;
  }

  .btn-countdown {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  /* Ingresantes Responsive */
  .years-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .year-tab {
    width: 100%;
    max-width: 200px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .ingresante-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
  }

  .ingresante-item .nombre,
  .ingresante-item .puntaje,
  .ingresante-item .posicion {
    min-width: auto;
    text-align: left;
  }

  .medal {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }

  .ingresantes-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
    gap: 1.5rem;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .ingresantes-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem;
    gap: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll offset para compensar header fijo */
section:not(#inicio) {
  scroll-margin-top: 1rem;
}

.card,
.calendar-card,
.teacher-card {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== CAROUSEL DE IMÁGENES DE FONDO ===== */
@keyframes backgroundFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .banner {
    background-attachment: scroll; /* Cambiar a scroll en móviles */
    min-height: 80vh;
    /* Forzar renderizado de alta calidad en móviles */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: background-image;
  }

  .banner h2 {
    font-size: 2rem;
  }

  .banner .subtitle {
    font-size: 1.25rem;
  }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
  .banner {
    background-size: cover;
    background-position: center center;
  }
}

/* Preload de imágenes */
.preload-background {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

/* Indicadores del carousel */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: var(--red);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ===== SIMULACROS SECTION ===== */
.simulacro-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.simulacro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.simulacro-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
}

.simulacro-header h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.simulacro-type {
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.simulacro-content {
  margin-bottom: 20px;
}

.simulacro-content p {
  color: #6b7280;
  margin-bottom: 15px;
  line-height: 1.6;
}

.simulacro-content ul {
  list-style: none;
  padding: 0;
}

.simulacro-content li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.95rem;
}

.simulacro-content li::before {
  content: '✓';
  background: var(--green);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.simulacro-footer {
  margin-top: auto;
}

.simulacro-footer .btn {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.simulacro-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Download button specific styles */
.simulacro-footer .btn.download-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.simulacro-footer .btn.download-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.download-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Simulacro card variations */
.simulacro-card:nth-child(1) .simulacro-type {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}

.simulacro-card:nth-child(2) .simulacro-type {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.simulacro-card:nth-child(3) .simulacro-type {
  background: linear-gradient(135deg, #dc2626, #fca5a5);
}

/* Coming Soon Styles for profesores.html */
.coming-soon {
  text-align: center;
  padding: 80px 20px;
}

.coming-soon-content {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.coming-soon h3 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 2rem;
}

.coming-soon p {
  color: #6b7280;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.coming-soon ul {
  text-align: left;
  margin: 25px 0;
  padding-left: 0;
  list-style: none;
}

.coming-soon li {
  padding: 8px 0;
  color: #374151;
  position: relative;
  padding-left: 25px;
}

.coming-soon li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

.coming-soon .btn {
  margin-top: 25px;
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Course Toggle System - Using same style as Ingresantes */

/* Course Content Animation */
#programa .year-content .schedule-grid {
  animation: slideInUp 0.6s ease 0.2s both;
}

#programa .year-content .program-info {
  animation: slideInUp 0.6s ease 0.4s both;
}

/* Course Info Toggle */
.course-info-toggle {
  margin: 2rem 0;
}

.info-toggle-btn {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.info-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: left 0.3s ease;
  z-index: -1;
}

.info-toggle-btn:hover::before,
.info-toggle-btn.active::before {
  left: 0;
}

.info-toggle-btn:hover,
.info-toggle-btn.active {
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.info-toggle-btn.active .toggle-arrow {
  transform: rotate(180deg);
}

.course-info-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.course-info-content.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1rem;
}

/* ===== NUEVO DISEÑO DE RANKING DE INGRESANTES ===== */
/* Contenedor general del ranking */
.ranking {
  width: 100%;
  max-width: 920px;
  margin: 32px auto;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1f2937;
  border-radius: 14px;
}

/* Encabezado del ranking */
.ranking__head {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 0.7fr;
  gap: 12px;
  padding: 14px 18px;
  background: #f5f6f7;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.ranking__head span:first-child { 
  text-align: left; 
}

/* Fila de cada estudiante */
.ranking__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.ranking__row:last-child { 
  border-radius: 0 0 12px 12px; 
}

.ranking__row:hover { 
  background: #fafafa;
  transform: translateX(3px);
}

/* Columnas */
.col { 
  text-align: center; 
}

.col--name { 
  text-align: left; 
}

/* Nombre con medalla */
.name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.name__text {
  color: var(--navy);
}

/* Puntaje en rojo */
.col--score {
  color: #e53935;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Carrera */
.col--career {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Puesto */
.col--rank {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Medalla (imágenes PNG) */
.medalla {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

/* No data / error states */
.no-data, .error {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
  font-style: italic;
}

.error {
  color: var(--red);
}

/* Course Inscription Button */
.course-inscription-btn {
  text-align: center;
  margin: 3rem 0 2rem 0;
  animation: slideInUp 0.6s ease 0.6s both;
}

.btn-inscripcion {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-inscripcion::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-inscripcion:hover::before {
  left: 100%;
}

.btn-inscripcion:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

/* MOFA Schedule Cards */
.schedule-card.mofa {
  border-left: 4px solid #ff6b35;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

.schedule-type.mofa {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
}

.badge.mofa {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
}

/* Animation for stagger effect */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive for course toggles */
@media (max-width: 768px) {
  .course-inscription-btn {
    margin: 2rem 0;
  }
  
  .btn-inscripcion {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Aplicar animaciones a elementos del banner */
.banner h2,
.banner-image,
.medal-banner,
.banner .btn-primary {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.banner h2 {
  animation-delay: 0.2s;
}

.banner-image {
  animation-delay: 0.4s;
}

.medal-banner {
  animation-delay: 0.5s;
}

.banner .btn-primary {
  animation-delay: 0.6s;
}

/* ===== PROFESORES PAGE STYLES ===== */
.profesores-section {
  padding: 4rem 0;
  background-color: var(--gray-50);
}

.profesores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.profesor-card {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.profesor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profesor-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.profesor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profesor-card:hover .profesor-image img {
  transform: scale(1.1);
}

.profesor-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.profesor-info {
  padding: 1.5rem;
}

.profesor-info h3 {
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profesor-title {
  color: var(--red);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.profesor-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.profesor-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credential {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 500;
}

/* Profesor Avatar (iniciales) */
.profesor-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Profesor Logros */
.profesor-logros {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.profesor-logros h4 {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.profesor-logros ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profesor-logros li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.profesor-logros li::before {
  content: '✓ ';
  color: var(--red);
  font-weight: bold;
  margin-right: 0.25rem;
}

/* ===== NUEVO DISEÑO MODERNO DE PROFESORES ===== */
.profesores-grid-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.profesor-card-wrapper {
  width: 280px;
  margin: 0 10px 25px 10px;
}

.profesor-card-modern {
  text-align: center;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 25px;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.profesor-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 30px 10px;
}

.profesor-image-wrapper {
  width: 130px;
  height: 130px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 3px solid var(--gray-700); 
  border-radius: 50%;               /* recorta correctamente el borde */
  background: transparent;
}


.profesor-image-circular {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profesor-avatar-circular {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
}

.profesor-name {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 25px;
}

.profesor-position {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 25px;
}

.profesor-description-modern {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
  line-height: 30px;
  font-size: 0.9rem;
}

.profesor-logros-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  width: 100%;
}

.profesor-logros-list li {
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profesor-logros-list li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.profesor-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.profesor-social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--light-blue);
  transition: all 0.3s ease;
}

.profesor-social-icons .social-icon:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}

.profesor-social-icons .social-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profesor-card-wrapper {
    width: 100%;
    margin: 0 0 25px 0;
  }
}

@media (max-width: 500px) {
  .profesor-card-wrapper {
    width: 100%;
    margin: 0 0 25px 0;
  }

  .profesor-card-modern {
    padding: 25px 20px;
  }
}

/* Metodología Section */
.metodologia-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.metodologia-card {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.metodologia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metodologia-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.metodologia-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.metodologia-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Active navigation link */
nav a.active {
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

/* Mobile responsiveness for profesores */
@media (max-width: 768px) {
  .profesores-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profesor-card {
    margin: 0 1rem;
  }

  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.125rem;
  }
}

/* ===== COOLDOWN TIMER ===== */
.cooldown-timer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  pointer-events: none;
}

.cooldown-timer .wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
}

.cooldown-timer .wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #e6e5e5;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.cooldown-timer .wrapper * {
  box-sizing: border-box;
}

.cooldown-timer .pie {
  width: 50%;
  height: 100%;
  transform-origin: 100% 50%;
  position: absolute;
  background: #c8c6c6;
  border: none;
  z-index: 10;
}

.cooldown-timer .spinner {
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  z-index: 200;
  animation: rota 5s linear;
}

.cooldown-timer .filler {
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  left: 50%;
  opacity: 0;
  z-index: 100;
  animation: opa 5s steps(1, end) reverse;
}

.cooldown-timer .mask {
  width: 50%;
  height: 100%;
  position: absolute;
  background: #e6e5e5;
  opacity: 1;
  z-index: 300;
  animation: opa 5s steps(1, end);
}

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

@keyframes opa {
  0% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Diferentes efectos de entrada */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== TOGGLE ACCORDION FOR COURSE INFO ===== */
.toggle-section {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.toggle-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.toggle-header:hover {
  background: linear-gradient(135deg, #1a34a0 0%, #2d6dd9 100%);
}

.toggle-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #ffffff;
  font-weight: 300;
}

.toggle-section.active .toggle-icon {
  transform: rotate(180deg);
}

.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 2rem;
}

.toggle-section.active .toggle-content {
  max-height: 2000px;
  padding: 2rem;
  transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.toggle-content .book-info {
  background: linear-gradient(135deg, #f8fafc 0%, #e1e8f0 100%);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--blue);
}

.toggle-content .book-info h5 {
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.toggle-content .book-info .author {
  color: var(--blue);
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
}

.toggle-content .book-info .book-description {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.toggle-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.toggle-content ul li {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-content ul li:hover {
  background: #e1e8f0;
  transform: translateX(5px);
  border-left-color: var(--navy);
}

.toggle-content ul li::before {
  content: '✓';
  color: var(--blue);
  font-weight: bold;
  font-size: 1.1rem;
}

.toggle-content .badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.toggle-content h4 {
  color: var(--navy);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animación de entrada suave */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toggle-section.active .toggle-content > * {
  animation: slideDown 0.4s ease-out;
}

/* ===== CORRECCIÓN PARA MÓVILES ===== */
@media (max-width: 768px) {
  .banner {
    background-attachment: scroll;
  }
}
