/* Estilos responsivos */

/* Pantallas grandes (1200px y más) */
@media (min-width: 1200px) {
  .contenedor {
    max-width: 1140px;
  }
}

/* Pantallas medianas (992px a 1199px) */
@media (max-width: 1199px) {
  .contenedor {
    max-width: 960px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .curso-detalle-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .metodologia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (768px a 991px) */
@media (max-width: 991px) {
  .contenedor {
    max-width: 720px;
  }

  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cabecera .contenedor {
    position: relative;
  }

  .menu {
    position: static;
  }

  .menu-movil {
    display: block;
    z-index: var(--z-index-alto);
  }

  .menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-fondo);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transicion);
    z-index: var(--z-index-alto);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 60px; /* Espacio para el botón de cerrar */
  }

  .menu-items.activo {
    right: 0;
  }

  .menu-items li {
    margin: 1rem 0;
  }

  .menu-items a::after {
    display: none;
  }

  /* Mostrar el botón de cerrar en móvil */
  .boton-cerrar-menu {
    display: flex;
  }

  .hero .contenedor {
    flex-direction: column;
  }

  .hero-contenido {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-botones {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .curso.destacado {
    grid-column: span 2;
  }

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

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

  .curso-detalle-grid {
    grid-template-columns: 1fr;
  }

  .curso-detalle .curso-imagen {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-bottom .contenedor {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-payments {
    justify-content: center;
  }
}

/* Móviles grandes (576px a 767px) */
@media (max-width: 767px) {
  .contenedor {
    max-width: 540px;
  }

  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .seccion-encabezado {
    margin-bottom: 2rem;
  }

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

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

  .curso.destacado {
    grid-column: auto;
  }

  .curso-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

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

  .hero-badge {
    right: 50%;
    transform: translateX(50%);
  }
}

/* Móviles pequeños (hasta 575px) */
@media (max-width: 575px) {
  .contenedor {
    width: 100%;
    padding: 0 1rem;
  }

  .cabecera .accion {
    display: none;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-botones {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-botones .boton {
    width: 100%;
  }

  .curso-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .curso-precio {
    display: flex;
    align-items: center;
  }

  .tabla-comparativa th,
  .tabla-comparativa td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .acordeon-titulo {
    font-size: 1rem;
    padding: 1.25rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
  html {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .seccion-subtitulo {
    font-size: 0.75rem;
  }

  .curso-features li {
    font-size: 0.8125rem;
  }
}
