/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #3F51B5;
  --primary-dark: #283593;
  --primary-light: #C5CAE9;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== CABECERA ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--primary-color);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header .logo {
  height: 50px;
  transition: var(--transition);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 4px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== BANNER ===== */
.banner {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 80px;
  overflow: hidden;
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.slide.active .slide-image {
  transform: scale(1);
  filter: brightness(0.6);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(63, 81, 181, 0.3) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(63, 81, 181, 0.3) 100%
  );
  z-index: 1;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
  font-size: 2.8rem;
  white-space: nowrap;
  margin-bottom: 10px;
}

.banner-content .subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  display: block;
  margin-top: 10px;
}

.banner-content p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== BOTONES CTA ===== */
.banner-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 50px auto;
  flex-wrap: wrap;
  max-width: 1200px;
  padding: 0 20px;
}

.banner-cta-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 25px 40px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.3);
  min-width: 280px;
  text-align: center;
  border: 3px solid transparent;
}

.banner-cta-btn:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(63, 81, 181, 0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-light);
}

.banner-cta-btn small {
  font-size: 1rem;
  font-weight: 400;
  display: block;
  margin-top: 5px;
}

/* ===== SECCIONES CORPORATIVAS ===== */
.corporate-section {
  padding: 80px 20px;
  text-align: center;
}

.corporate-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
}

.corporate-section h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

.bg-light {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 100%);
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.bg-primary h2 {
  color: white;
}

.bg-primary h2:after {
  background: white;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== QUIÉNES SOMOS ===== */
.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.about-text strong {
  font-weight: 600;
}

.about-carousel {
  flex: 1;
  position: relative;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-slides {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 8s ease-out;
}

.about-slide.active .about-image {
  transform: scale(1.05);
}

.about-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.about-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.about-indicator.active {
  background: white;
  transform: scale(1.2);
}

.about-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== MISIÓN Y VISIÓN ===== */
.mission-vision-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.mission, .vision {
  flex: 1;
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: left;
}

.mission h3, .vision h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.mission h3:before, .vision h3:before {
  content: '✓';
  margin-right: 15px;
  background: var(--primary-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mission p, .vision p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ===== ENFOQUE EDUCATIVO ===== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-item {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.approach-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.approach-icon {
  background: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: bold;
}

.approach-item h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.approach-item p {
  line-height: 1.6;
}

/* ===== ÁREAS DE CONOCIMIENTO ===== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.knowledge-item {
  background: white;
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-weight: 500;
}

.knowledge-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ===== NAVEGACIÓN ENTRE SECCIONES ===== */
.section-nav {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
  display: none;
}

.section-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.section-nav-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.section-nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.section-nav-btn.active {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.4);
}

/* Secciones ocultas inicialmente */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

/* ===== PROGRAMAS POR EDADES ===== */
.age-cards-with-posters {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  max-width: 1200px;
  margin: 40px auto 0;
  flex-wrap: nowrap;
}

.age-card-with-poster {
  width: 23%;
  min-width: 250px;
  text-align: center;
  flex: 1;
  transition: var(--transition);
}

.age-card-with-poster:hover {
  transform: translateY(-5px);
}

.kid-main-image {
  width: 100%;
  height: 350px;
  border-radius: 15px 15px 0 0;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.age-poster-detached {
  width: 100%;
  height: 120px;
  margin-top: -5px;
  border-radius: 0 0 15px 15px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.age-poster-detached:hover {
  transform: translateY(-20px) scale(1.1);
  box-shadow: 0 25px 50px rgba(63, 81, 181, 0.4);
  z-index: 10;
}

.age-poster-detached::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.age-poster-detached:hover::after {
  left: 100%;
}

/* ===== IMPACTO SOCIAL ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.impact-item {
  background: rgba(255,255,255,0.15);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.impact-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ===== HERRAMIENTAS DE APRENDIZAJE ===== */
.tools-scroll-container {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
}

.tools-scroll-container::before,
.tools-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tools-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.tools-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.logos-scroll-horizontal {
  display: flex;
  gap: 60px;
  animation: scrollHorizontal 30s linear infinite;
  padding: 0 20px;
  width: max-content;
}

.logos-scroll-horizontal:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 10px;
}

.logo-item:hover {
  transform: scale(1.2);
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.4);
  transition: var(--transition);
}

.logo-item:hover img {
  filter: grayscale(0);
  transform: scale(1.1);
}

@keyframes scrollHorizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-120px * 9 - 60px * 8));
  }
}

/* ===== MAPA DE SUCURSALES ===== */
.map-section {
  padding: 80px 20px;
  text-align: center;
}

.tamaulipas-map {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: transparent !important;
  border-radius: 15px;
  padding: 30px;
}

.tamaulipas-map img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  opacity: 1;
  mix-blend-mode: normal;
  background: transparent;
}

.location-marker {
  position: absolute;
  width: 25px;
  height: 25px;
  background: #ff4444;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition);
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.location-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background: #ff0000;
  box-shadow: 0 0 25px rgba(255,0,0,0.8);
}

.location-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.location-info {
  position: absolute;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 20;
  display: none;
  min-width: 250px;
  text-align: left;
  border-left: 4px solid var(--primary-color);
}

.location-info h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.location-info p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.location-info strong {
  color: var(--text-dark);
  font-weight: 600;
}

.location-info.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.coming-soon {
  text-align: center;
  padding: 20px;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.coming-soon h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.coming-soon p {
  color: var(--text-light);
  font-weight: 500;
}

.soon-info {
  color: #888;
  font-size: 0.9rem;
  margin-top: 15px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Marcador de próxima apertura */
.location-marker[data-location="tampico"] {
  background: #FF9800;
  animation: pulse 2s infinite;
}

.location-marker[data-location="tampico"]:hover {
  background: #FF5722;
  transform: translate(-50%, -50%) scale(1.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

/* ===== CARRUSEL DE PRODUCTOS ===== */
.carrusel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  overflow: hidden;
  height: 650px;
  display: flex;
  align-items: center;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 40px;
  padding: 0 20px;
  will-change: transform;
}

.proyecto-item {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 300px;
  flex-shrink: 0;
  text-align: center;
  padding: 25px 20px;
  transition: var(--transition);
  opacity: 0.6;
  transform: scale(0.85);
  filter: blur(1px);
  height: 450px; /* Altura fija para consistencia */
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.proyecto-item.activo {
  opacity: 1 !important;
  transform: scale(1.15) !important;
  filter: blur(0) !important;
  box-shadow: 
    0 25px 60px rgba(63, 81, 181, 0.4),
    0 15px 35px rgba(0,0,0,0.2);
  z-index: 20;
  border: 3px solid var(--primary-color);
}

.proyecto-item.left-side {
  opacity: 0.7;
  transform: scale(0.9) translateX(20px);
  filter: blur(0.5px);
  z-index: 10;
}

.proyecto-item.right-side {
  opacity: 0.7;
  transform: scale(0.9) translateX(-20px);
  filter: blur(0.5px);
  z-index: 10;
}

.proyecto-item:hover {
  transform: scale(0.95);
}

.proyecto-item.activo:hover {
  transform: scale(1.2) !important;
}

.proyecto-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.proyecto-item.activo img {
  transform: scale(1.05);
}

.proyecto-item h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.proyecto-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 0 5px;
}

.btn-vermas {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #5C6BC0);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.3);
}

.btn-vermas:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 81, 181, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #34a853, #2a8c47);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #2a8c47, #34a853);
}

.flecha {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  transition: var(--transition);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha.izquierda { left: 20px; }
.flecha.derecha { right: 20px; }

.flecha:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(63, 81, 181, 0.4);
}

/* ===== CTA FINAL ===== */
.final-cta {
  padding: 80px 20px;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== CONTACTO ===== */
#contacto {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 100%);
}

#contacto h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

#contacto p {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #555;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 3px solid transparent;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-color: var(--primary-color);
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.social-btn:hover img {
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
  margin-top: 50px;
}

/* ===== SECCIÓN CAPACITACIONES ===== */
.problematica-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.problematica-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 1000 1000" opacity="0.1"><polygon fill="white" points="100,100 200,150 150,250 50,200"/><circle fill="white" cx="800" cy="300" r="60"/><rect fill="white" x="700" y="600" width="120" height="120" rx="20"/></svg>');
}

.problematica-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.problematica-content h2 {
  color: white;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.problematica-content h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: white;
}

.problematica-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.problematica-highlight {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid #FFD700;
  margin: 30px 0;
}

/* Opciones de Capacitación */
.training-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 50px auto;
}

.training-option-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.training-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(63, 81, 181, 0.1), transparent);
  transition: left 0.6s ease;
}

.training-option-card:hover::before {
  left: 100%;
}

.training-option-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.training-option-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.training-option-card:hover .training-option-icon {
  transform: scale(1.1);
}

.training-option-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.training-option-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Grid de Tecnologías */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 40px auto 0;
}

.tech-item {
  background: white;
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tech-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tech-item span {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Beneficios */
.benefits-container {
  max-width: 800px;
  margin: 40px auto 0;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
}

.benefit-number {
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.benefit-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== GALERÍA DE CAPACITACIONES - CORREGIDA ===== */
.gallery-container {
  margin-top: 50px;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 3px solid var(--primary-color);
  display: none;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-header h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
}

.btn-diploma {
  background: linear-gradient(135deg, #34a853, #2a8c47);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
  font-size: 1rem;
}

.btn-diploma:hover {
  background: linear-gradient(135deg, #2a8c47, #34a853);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

/* Carrusel de capacitaciones */
.training-gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  height: 400px;
}

.training-gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.training-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.training-gallery-slide.active {
  opacity: 1;
}

.training-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.training-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.training-gallery-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.training-gallery-arrow.prev {
  left: 20px;
}

.training-gallery-arrow.next {
  right: 20px;
}

.training-gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.training-gallery-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.training-gallery-indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.training-gallery-indicator:hover {
  background: var(--primary-dark);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-header {
  background: var(--primary-color);
  color: white;
  padding: 25px 30px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255,255,255,0.2);
}

.modal-body {
  padding: 30px;
}

.password-section {
  text-align: center;
}

.password-section h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.password-section p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.password-input {
  width: 100%;
  max-width: 300px;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  margin: 15px 0;
  transition: border-color 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.password-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.btn-verify {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-verify:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.error-message {
  color: #dc3545;
  margin-top: 10px;
  display: none;
  font-weight: 500;
}

/* ===== BOTONES DE TEMAS ===== */
.topics-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.topic-btn {
  background: white;
  border: 3px solid var(--primary-light);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  text-align: center;
}

.topic-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.topic-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(63, 81, 181, 0.3);
}

/* ===== SECCIÓN DE DIPLOMAS ===== */
.diploma-unlock-section {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
  border-radius: 20px;
  text-align: center;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(63, 81, 181, 0.1);
}

.diploma-unlock-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 2rem;
}

.diploma-unlock-section > p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.diploma-card-unlock {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  display: inline-block;
  max-width: 450px;
  text-align: center;
  border: 2px solid #e3f2fd;
}

.diploma-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.diploma-card-unlock h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.diploma-card-unlock p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.5;
}

.diploma-card-unlock small {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-top: 10px;
}

.btn-diploma-unlock {
  background: linear-gradient(135deg, #34a853, #2a8c47);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-diploma-unlock:hover {
  background: linear-gradient(135deg, #2a8c47, #34a853);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

/* ===== ANIMACIONES ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== DISEÑO RESPONSIVO ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .banner-content h1 {
    font-size: 3rem;
  }
  
  .banner-content .subtitle {
    font-size: 1.6rem;
  }
  
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .age-cards-with-posters {
    gap: 10px;
  }
  
  .age-card-with-poster {
    min-width: 200px;
  }
  
  .kid-main-image {
    height: 300px;
  }
  
  .age-poster-detached {
    height: 100px;
  }
  
  .training-gallery-carousel {
    height: 350px;
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 15px 10px;
    flex-wrap: wrap;
  }
  
  header .logo {
    height: 40px;
  }
  
  nav {
    display: none;
    width: 100%;
    margin-top: 15px;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  nav a {
    display: block;
    text-align: center;
    padding: 12px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Banner */
  .banner {
    height: 70vh;
    min-height: 500px;
    margin-top: 70px;
  }
  
  .banner-content h1 {
    font-size: 2.2rem;
  }
  
  .banner-content .subtitle {
    font-size: 1.4rem;
  }
  
  .banner-content p {
    font-size: 1.1rem;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  /* Botones CTA */
  .banner-cta-buttons {
    gap: 20px;
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .banner-cta-btn {
    min-width: 250px;
    padding: 20px 25px;
    font-size: 1.3rem;
  }
  
  /* Secciones corporativas */
  .corporate-section {
    padding: 50px 15px;
  }
  
  .corporate-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .mission-vision-container {
    flex-direction: column;
    gap: 25px;
  }
  
  .mission, .vision {
    padding: 25px 20px;
  }
  
  .mission h3, .vision h3 {
    font-size: 1.5rem;
  }
  
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .approach-item {
    padding: 25px 15px;
  }
  
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .knowledge-item {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
  
  /* Quiénes Somos */
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-carousel {
    max-width: 100%;
    order: -1;
  }
  
  .about-slides {
    height: 350px;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text p {
    text-align: left;
  }
  
  /* Age cards */
  .age-cards-with-posters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }
  
  .age-card-with-poster {
    width: 280px;
    min-width: auto;
  }
  
  .kid-main-image {
    height: 300px;
  }
  
  .age-poster-detached {
    height: 100px;
  }
  
  .age-poster-detached:hover {
    transform: translateY(-15px) scale(1.05);
  }
  
  /* Impacto */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .impact-item {
    padding: 20px 15px;
  }
  
  .impact-number {
    font-size: 2rem;
  }
  
  /* Mapa */
  .map-section {
    padding: 50px 15px;
  }
  
  .tamaulipas-map {
    max-width: 100%;
    padding: 20px 15px;
  }
  
  .location-info {
    min-width: 200px;
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .location-info h4 {
    font-size: 1.1rem;
  }
  
  /* Carrusel */
  .carrusel-container {
    height: 400px;
  }
  
  .proyecto-item {
    width: 250px;
  }
  
  .flecha {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .flecha.izquierda { left: 10px; }
  .flecha.derecha { right: 10px; }
  
  /* Contacto */
  #contacto {
    padding: 40px 15px;
  }
  
  #contacto h2 {
    font-size: 2rem;
  }
  
  .social-buttons {
    gap: 20px;
  }
  
  .social-btn {
    width: 70px;
    height: 70px;
  }
  
  /* Navegación entre secciones */
  .section-nav {
    padding: 15px 10px;
  }
  
  .section-nav-buttons {
    gap: 10px;
  }
  
  .section-nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* CTA Final */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  /* Capacitaciones */
  .training-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .training-option-card {
    padding: 30px 20px;
  }
  
  .benefit-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .gallery-header {
    flex-direction: column;
    text-align: center;
  }
  
  .training-gallery-carousel {
    height: 300px;
  }
  
  .training-gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .topics-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .topic-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .diploma-unlock-section {
    padding: 30px 20px;
    margin-top: 40px;
  }
  
  .diploma-card-unlock {
    padding: 30px 20px;
    max-width: 100%;
  }
  
  .diploma-unlock-section h3 {
    font-size: 1.7rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  /* Banner */
  .banner {
    height: 60vh;
    min-height: 400px;
  }
  
  .banner-content h1 {
    font-size: 1.8rem;
  }
  
  .banner-content .subtitle {
    font-size: 1.2rem;
  }
  
  .banner-content p {
    font-size: 1rem;
  }
  
  /* Botones CTA */
  .banner-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .banner-cta-btn {
    width: 100%;
    max-width: 300px;
    padding: 18px 20px;
    font-size: 1.1rem;
  }
  
  /* Secciones corporativas */
  .corporate-section h2 {
    font-size: 1.7rem;
  }
  
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  
  /* Quiénes Somos */
  .about-slides {
    height: 220px !important;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  /* Age cards */
  .age-card-with-poster {
    width: 100%;
    max-width: 280px;
  }
  
  .kid-main-image {
    height: 250px;
  }
  
  .age-poster-detached {
    height: 90px;
  }
  
  /* Mapa */
  .tamaulipas-map {
    padding: 15px 10px;
  }
  
  .location-info {
    min-width: 180px;
    padding: 12px;
    font-size: 0.85rem;
  }
  
  .location-info h4 {
    font-size: 1rem;
  }
  
  /* CARRUSEL CELULAR */
  .carrusel-container {
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    padding: 0 10px;
  }
  
  .carrusel {
    gap: 20px;
    padding: 0 5px;
  }
  
  .proyecto-item {
    width: 280px;
    padding: 20px 15px;
    opacity: 0.6;
    transform: scale(0.9);
  }
  
  .proyecto-item.activo {
    transform: scale(1.05) !important;
    opacity: 1 !important;
  }
  
  .proyecto-item.left-side {
    opacity: 0.5;
    transform: scale(0.85) translateX(10px);
  }
  
  .proyecto-item.right-side {
    opacity: 0.5;
    transform: scale(0.85) translateX(-10px);
  }
  
  .proyecto-item img {
    height: 150px;
    margin-bottom: 15px;
  }
  
  .proyecto-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .proyecto-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  .btn-vermas {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* FLECHAS */
  .flecha {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }
  
  .flecha.izquierda { 
    left: 5px !important; 
  }
  .flecha.derecha { 
    right: 5px !important; 
  }
  
  .flecha:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
  }
  
  /* Contacto */
  #contacto h2 {
    font-size: 1.7rem;
  }
  
  .social-buttons {
    gap: 15px;
  }
  
  .social-btn {
    width: 60px;
    height: 60px;
  }
  
  /* Footer */
  footer {
    padding: 20px 15px;
  }
  
  footer p {
    font-size: 0.9rem;
  }
  
  /* Navegación entre secciones */
  .section-nav-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-nav-btn {
    width: 200px;
    text-align: center;
  }
  
  /* Capacitaciones móvil */
  .training-option-card {
    padding: 25px 15px;
  }
  
  .training-option-icon {
    font-size: 3rem;
  }
  
  .problematica-content h2 {
    font-size: 1.8rem;
  }
  
  .problematica-text {
    font-size: 1rem;
    text-align: left;
  }
  
  .password-input {
    font-size: 1rem;
    padding: 12px 15px;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .training-gallery-carousel {
    height: 250px;
  }
  
  .topic-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .diploma-item {
    padding: 25px 20px;
  }
}

/* Scroll horizontal responsivo */
@media (max-width: 768px) {
  .tools-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px 0;
  }
  
  .tools-scroll-container::before,
  .tools-scroll-container::after {
    display: none;
  }
  
  .logos-scroll-horizontal {
    animation: none;
    gap: 40px;
    padding: 0 15px;
  }
  
  .logo-item {
    width: 100px;
    height: 60px;
  }
  
  .tools-scroll-container::-webkit-scrollbar {
    height: 6px;
  }
  
  .tools-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .tools-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
  }
  
  .tools-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
}

@media (max-width: 480px) {
  .tools-scroll-container {
    padding: 20px 0;
  }
  
  .logos-scroll-horizontal {
    gap: 30px;
    padding: 0 10px;
  }
  
  .logo-item {
    width: 80px;
    height: 50px;
  }
  
  #herramientas {
    padding: 40px 15px;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
}

/* ===== ESTILOS MEJORADOS PARA TEMARIO ===== */

/* Sección de Temario */
.temario-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.temario-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #5C6BC0, #7986CB);
}

.temario-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.temario-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.temario-content {
    max-width: 1000px;
    margin: 0 auto;
}

.temario-content > p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

.temario-content > p strong {
    color: var(--primary-color);
}

/* Grid de Temario */
.temario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.temario-col {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e3f2fd;
    position: relative;
    transition: all 0.3s ease;
}

.temario-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(63, 81, 181, 0.15);
    border-color: var(--primary-light);
}

.temario-col h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    font-weight: 700;
}

.temario-item {
    background: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
}

.temario-item:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, white, #f5f7ff);
    border-left-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.2);
}

.temario-item.sub {
    margin-left: 20px;
    background: #f8f9fa;
    border-left-color: #7986CB;
    font-size: 0.95rem;
    font-weight: 400;
}

.temario-item.sub:hover {
    background: #f0f2ff;
    border-left-color: #5C6BC0;
}

/* Indicadores de progreso */
.temario-item::before {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.temario-item:hover::before {
    opacity: 1;
}

/* Responsive para temario */
@media (max-width: 768px) {
    .temario-section {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .temario-section h3 {
        font-size: 1.6rem;
    }
    
    .temario-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .temario-col {
        padding: 20px;
    }
    
    .temario-col h4 {
        font-size: 1.2rem;
    }
    
    .temario-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .temario-item.sub {
        margin-left: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .temario-section {
        padding: 20px 15px;
    }
    
    .temario-section h3 {
        font-size: 1.4rem;
    }
    
    .temario-col {
        padding: 15px;
    }
    
    .temario-item {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .temario-item.sub {
        margin-left: 10px;
        font-size: 0.85rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.temario-col {
    animation: fadeInUp 0.6s ease;
}

.temario-col:nth-child(2) {
    animation-delay: 0.2s;
}

/* Efectos de acordeón para subtemas */
.temario-item.sub {
    max-height: 60px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.temario-item.sub.expanded {
    max-height: 200px;
}

/* Badges para niveles de dificultad */
.temario-level {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 600;
}

.temario-level.basic {
    background: #4CAF50;
}

.temario-level.intermediate {
    background: #FF9800;
}

.temario-level.advanced {
    background: #F44336;
}