/* Tipografía */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f4f7fb;
    color: #1a2a3a;
  }
  
  /* Header */
  header {
    background: #001f3f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .logo img {
    height: 50px;
  }
  
  /* Botón hamburguesa */
  .hamburger {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 10px;
    z-index: 1001;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .hamburger:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
  }
  
  .hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #ffd700);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  /* Animación del botón hamburguesa */
  .hamburger.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: linear-gradient(90deg, #ffd700, #ffffff);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: linear-gradient(90deg, #ffd700, #ffffff);
  }
  
  /* Navegación */
  .nav-menu {
    display: flex;
  }
  
  /* Asegurar que el menú sea visible cuando esté activo */
  .nav-menu.active {
    display: flex !important;
  }
  
  .nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  .nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .nav-menu ul li a.active,
  .nav-menu ul li a:hover {
    color: #ffd700; /* dorado tenue */
  }
  
  /* Hero */
  .hero {
    background: linear-gradient(to bottom, #002c4e, #011a2d);
    color: white;
    text-align: center;
    padding: 80px 20px;
  }
  
  .hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 1.2em;
  }
  
  /* WhatsApp Button */
  .whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    font-size: 28px;
    padding: 12px 16px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
  }
  
  .whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
  }
  
  .whatsapp img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* lo hace blanco si el ícono es oscuro */
  }
  
  .whatsapp:hover {
    background-color: #1ebd5a;
  }
  
  
  /* Responsive */
  @media (max-width: 768px) {
    /* Mostrar botón hamburguesa en móviles */
    .hamburger {
      display: flex !important;
    }
    
    /* Ocultar menú por defecto en móviles */
    .nav-menu {
      position: fixed !important;
      top: 50% !important;
      right: -100% !important;
      width: 320px !important;
      height: auto !important;
      min-height: 400px !important;
      max-height: 80vh !important;
      transform: translateY(-50%) !important;
      background: linear-gradient(135deg, rgba(0, 31, 63, 0.98), rgba(0, 20, 40, 0.98)) !important;
      backdrop-filter: blur(15px) !important;
      -webkit-backdrop-filter: blur(15px) !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
      transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
      box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.1) !important;
      border-radius: 0 0 0 20px !important;
      padding: 40px 20px !important;
      z-index: 1000 !important;
    }
    
    /* Mostrar menú cuando está activo */
    .nav-menu.active {
      right: 0 !important;
    }
    
    /* Estilos para la lista en móviles */
    .nav-menu ul {
      flex-direction: column !important;
      gap: 30px !important;
      text-align: center !important;
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .nav-menu ul li {
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .nav-menu ul li a {
      font-size: 1.2em !important;
      padding: 18px 30px !important;
      display: block !important;
      border-radius: 12px !important;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
      color: rgba(255, 255, 255, 0.9) !important;
      text-decoration: none !important;
      font-weight: 500 !important;
      letter-spacing: 1px !important;
      width: 100% !important;
      box-sizing: border-box !important;
      position: relative !important;
      overflow: hidden !important;
    }
    
    .nav-menu ul li a::before {
      content: '' !important;
      position: absolute !important;
      top: 0 !important;
      left: -100% !important;
      width: 100% !important;
      height: 100% !important;
      background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent) !important;
      transition: left 0.5s ease !important;
    }
    
    .nav-menu ul li a:hover::before {
      left: 100% !important;
    }
    
    .nav-menu ul li a:hover,
    .nav-menu ul li a.active {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05)) !important;
      color: #ffd700 !important;
      transform: translateX(8px) !important;
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2) !important;
    }

    .hero-content h1 {
      font-size: 1.8em;
    }

    .logo img {
      height: 40px;
    }
    
    /* Overlay para cerrar menú al hacer clic fuera */
    .nav-overlay {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 31, 63, 0.4)) !important;
      z-index: 999 !important;
      opacity: 0 !important;
      visibility: hidden !important;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
    }
    
    .nav-overlay.active {
      opacity: 1 !important;
      visibility: visible !important;
    }
  }

  /* Estilos adicionales para dispositivos móviles muy pequeños */
  @media (max-width: 480px) {
    .nav-menu {
      width: 280px !important;
      right: -100% !important;
      min-height: 350px !important;
      padding: 30px 15px !important;
    }
    
    .nav-menu.active {
      right: 0 !important;
    }
    
    .hamburger {
      padding: 10px 8px !important;
    }
    
    .hamburger-line {
      width: 24px !important;
      height: 3px !important;
    }
    
    .nav-menu ul li a {
      font-size: 1.1em !important;
      padding: 16px 25px !important;
    }
  }
  /* blog index*/
  /* Blog Section */
.blog-section {
  background: #ffffff;
  padding: 60px 20px;
  color: #1a2a3a;
}

.blog-section .container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.blog-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #002c4e;
}

.blog-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-section .quote {
  font-style: italic;
  background: #f5f5f5;
  border-left: 4px solid #ffd700;
  padding: 20px;
  margin: 40px auto;
  font-size: 1.2em;
  max-width: 800px;
  color: #444;
  transition: transform 0.3s ease;
}

.blog-section .quote:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-section h2 {
    font-size: 1.5em;
  }

  .blog-section p {
    font-size: 1em;
  }

  .blog-section .quote {
    font-size: 1.1em;
    padding: 15px;
  }
}
/* Sección dividida */
.intro-section {
  padding: 60px 20px;
  background-color: #f4f7fb;
}

.container-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.split-left, .split-right {
  flex: 1 1 45%;
}

.responsive-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
/*segundo estilo index*/
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.blog-text h2 {
  font-size: 1.8em;
  color: #002c4e;
  margin-bottom: 20px;
}

.blog-text p {
  text-align: justify;
  font-size: 1.1em;
  line-height: 1.8;
}


/* Botón */
.btn-ver-mas {
  display: inline-block;
  margin-top: 20px;
  background-color: #001f3f;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: #ffd700;
  color: #001f3f;
  font-weight: bold;
}

/* Cita */
.quote {
  margin-top: 20px;
  font-style: italic;
  color: #4b4b4b;
  border-left: 4px solid #ffd700;
  padding-left: 15px;
}

.quote .author {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-size: 1em;
  color: #666;
}

.blog-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container-split {
    flex-direction: column;
  }

  .split-left, .split-right {
    flex: 1 1 100%;
  }

  .responsive-img {
    border-radius: 12px;
  }
}
/*imagen del index*/
/* Imagen con marco elegante */
.blog-image .frame {
  width: 100%;
  max-width: 400px;
  margin: auto;
  position: relative;
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(29,100,140,0.3));
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
}

.blog-image .frame:hover {
  transform: scale(1.03) rotate(-1deg);
}

.blog-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Reordenar en móvil */
@media (max-width: 768px) {
  .blog-grid {
    display: flex;
    flex-direction: column-reverse; /* Imagen primero, texto después */
    align-items: center;
  }

  .blog-image {
    margin-bottom: 20px;
  }
}

/* Acerca de mí */
.acerca .frase {
    font-size: 1.2em;
    font-weight: 300;
    color: #333;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    
  }
  
  .bloque {
    margin-top: 50px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  }
  
  .bloque h2 {
    color: #002244;
    margin-bottom: 10px;
    font-size: 1.6em;
  }
  
  .bloque p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
  }
.acerca {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .acerca .intro {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .acerca .intro h1 {
    font-size: 2.2em;
    color: #002244;
    margin-bottom: 10px;
  }
  
  .acerca .intro p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.6;
  }
  
  .perfil {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  
  .foto-perfil img {
    width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .descripcion {
    max-width: 600px;
  }
  
  .descripcion h2 {
    font-size: 1.8em;
    color: #002244;
    margin-bottom: 10px;
  }
  
  .descripcion p {
    font-size: 1.05em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  /* Servicios */
.servicios {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .servicios .intro {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .servicios .intro h1 {
    font-size: 2.2em;
    color: #002244;
  }
  
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
  }
  
  .card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card h2 {
    color: #002244;
    margin-bottom: 10px;
  }
  
  .card p {
    color: #444;
    line-height: 1.5;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  /* Libros */
.libros {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .libros .intro {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .libros .intro h1 {
    font-size: 2.2em;
    color: #002244;
  }
  
  .libros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .libro-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

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

  .libro-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .libro-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .libro-card:hover .libro-cover {
    transform: scale(1.05);
  }

  .libro-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
  }

  .libro-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #002244;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  }

  .libro-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .libro-content h2 {
    color: #002244;
    margin-bottom: 12px;
    font-size: 1.3em;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
  }

  .libro-content p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
  }

  .libro-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

  .libro-year, .libro-pages {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
  }

  .libro-year {
    color: #ffd700;
    font-weight: bold;
  }

  .btn-comprar {
    background: linear-gradient(135deg, #002244, #004080);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
  }

  .btn-comprar:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  }

  /* Responsive para tarjetas de libros */
  @media (max-width: 768px) {
    .libros-grid {
      grid-template-columns: 1fr;
      gap: 25px;
      max-width: 100%;
      padding: 0 20px;
    }
    
    .libro-image-container {
      height: 220px;
    }
    
    .libro-content {
      padding: 20px;
    }
    
    .libro-content h2 {
      font-size: 1.2em;
      min-height: 2.4em;
    }
    
    .libro-meta {
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
  }

  @media (max-width: 480px) {
    .libro-image-container {
      height: 200px;
    }
    
    .libro-content {
      padding: 18px;
    }
    
    .libro-content h2 {
      font-size: 1.1em;
    }
    
    .libro-content p {
      font-size: 0.9em;
    }
    
    .btn-comprar {
      padding: 10px 20px;
      font-size: 0.85em;
    }
  }
 /* Testimonios */
.testimonios {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .testimonios .intro {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .testimonios .intro h1 {
    font-size: 2.2em;
    color: #002244;
  }
  
  .testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .testimonio-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  
  .testimonio-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  .testimonio-card blockquote {
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
  }
  
  .autor {
    font-weight: bold;
    color: #002244;
  }
  
  
  .testimonio-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .testimonio-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
  }
  
  .testimonio-card blockquote {
    font-style: italic;
    color: #444;
    margin-bottom: 10px;
  }
  
  .testimonio-card h3 {
    color: #002244;
    font-weight: bold;
  }
  /* Contacto*/ 
.contacto {
    padding: 40px 20px;
    max-width: 800px;
    margin: auto;
  }
  
  .contacto .intro {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .contacto .intro h1 {
    font-size: 2.2em;
    color: #002244;
  }
  
  .formulario form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .formulario label {
    font-weight: bold;
    color: #002244;
  }
  
  .formulario input,
  .formulario textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
  }
  
  .formulario button {
    background-color: #002244;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .formulario button:hover {
    background-color: #004080;
  }
      /* Nuevas reglas para las social cards */
    .social-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      margin-top: 30px;
    }
    .social-cards .card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 140px;
      padding: 20px;
      background: #fff;
      border: 2px solid #D4AF37; /* Dorado */
      border-radius: 12px;
      text-decoration: none;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .social-cards .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }
    .social-cards .card img {
      width: 40px;
      height: 40px;
      margin-bottom: 10px;
    }
    .social-cards .card span {
      color: #002244;
      font-weight: bold;
      font-size: 1.1em;
      font-family: 'Montserrat', sans-serif;
    }
  
    /* Contenedor principal del hero */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Bloque izquierdo: logo */
.hero-left img.logo-hero {
  width: 180px;
  max-width: 100%;
}

/* Bloque derecho: texto y 3 puntos */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-right h1 {
  margin-bottom: 15px;
}

/* Imagen de 3 puntos más grande y centrada */
.hero-right img.trespuntos {
  width: 320px;
  max-width: 100%;
}

/* Vista en escritorio: logo y texto a los lados */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: left;
    justify-content: center;
    text-align: center;
  }

  .hero-left img.logo-hero {
    width: 220px;
  }

  .hero-right img.trespuntos {
    width: 420px; /* más grande en desktop */
  }
}

/* ===== HERO: pantallas muy grandes (>=1375px) =====
  Mantener EXACTAMENTE la misma configuración que a ~1374px */
@media (min-width: 1375px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 32px;
    max-width: 12000px;   /* clave: no dejar que se estire más allá */
    margin: auto;
  }

  .hero-left img.logo-hero {
    width: 250px;        /* mismo tamaño que en desktop normal */
  }

  .hero-right {
    align-items: auto;
  }

  .hero-right img.trespuntos {
    width: 420px;        /* mismo tamaño que en desktop normal */
  }
}

/* ===== ESTILOS PARA GALERÍAS DE CURSOS ===== */

/* Contenedor principal de cursos */
.cursos {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.cursos .intro {
  text-align: center;
  margin-bottom: 50px;
}

.cursos .intro h1 {
  font-size: 2.2em;
  color: #002244;
  margin-bottom: 15px;
}

.cursos .intro p {
  font-size: 1.1em;
  color: #444;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Sección de galería */
.gallery-section {
  margin-bottom: 60px;
}

.gallery-section h2 {
  font-size: 1.8em;
  color: #002244;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.gallery-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  margin: 10px auto;
  border-radius: 2px;
}

/* Contenedor del carrusel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 15px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
  cursor: pointer;
  border-radius: 0;
}

/* Hover effects */
.gallery-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 34, 68, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 215, 0, 0.9);
  color: #002244;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

/* Responsive para tablets */
@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
    min-width: 50%;
    padding: 0 6px; /* Espaciado sutil para tablets */
    box-sizing: border-box;
  }
  
  .gallery-img {
    height: 350px;
    border-radius: 10px; /* Bordes redondeados para tablets */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  }
  
  .carousel-btn {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .carousel-btn.prev {
    left: 20px;
  }
  
  .carousel-btn.next {
    right: 20px;
  }
}

/* Responsive para desktop */
@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    padding: 0 8px; /* Espaciado entre imágenes */
    box-sizing: border-box;
  }
  
  .gallery-img {
    height: 400px;
    border-radius: 12px; /* Bordes redondeados para las imágenes */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
  }
  
  .gallery-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }
  
  .carousel-btn {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  
  .carousel-btn.prev {
    left: 25px;
  }
  
  .carousel-btn.next {
    right: 25px;
  }
}

/* Responsive para móviles */
@media (max-width: 767px) {
  .cursos {
    padding: 20px 15px;
  }
  
  .cursos .intro h1 {
    font-size: 1.8em;
  }
  
  .cursos .intro p {
    font-size: 1em;
  }
  
  .gallery-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  .gallery-img {
    height: 250px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
  
  /* Ocultar botones en móviles muy pequeños para mejor UX */
  @media (max-width: 480px) {
    .carousel-btn {
      display: none;
    }
  }
}

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

.gallery-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Efecto de loading para imágenes */
.gallery-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gallery-img[src] {
  animation: none;
  background: none;
}

/* ===== ESTILOS PARA VIDEO DE YOUTUBE ===== */

.video-section {
  margin-bottom: 60px;
  text-align: center;
}

.video-section h2 {
  font-size: 1.8em;
  color: #002244;
  margin-bottom: 30px;
  position: relative;
}

.video-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  margin: 10px auto;
  border-radius: 2px;
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Responsive para el video */
@media (max-width: 768px) {
  .video-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  
  .video-container {
    padding: 0 15px;
  }
  
  .video-wrapper {
    border-radius: 12px;
  }
  
  .video-wrapper iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .video-container {
    padding: 0 10px;
  }
  
  .video-wrapper {
    border-radius: 10px;
  }
  
  .video-wrapper iframe {
    border-radius: 10px;
  }
}

/* ===== ESTILOS PARA LIGHTBOX ===== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease-in-out;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 215, 0, 0.8);
  color: #002244;
  transform: scale(1.1);
}

/* Animaciones del lightbox */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive para el lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
    padding: 20px;
  }
  
  .lightbox-close {
    top: -40px;
    right: 0;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .lightbox-content img {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    max-width: 98%;
    max-height: 98%;
    padding: 10px;
  }
  
  .lightbox-close {
    top: -35px;
    right: 5px;
    font-size: 25px;
    width: 35px;
    height: 35px;
  }
}