/* Reset básico y tipografía moderna */


  header {
    text-align: center;
    background: linear-gradient(to right, #1202f3, #03b0fa);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  
  header h1 {
    font-size: 3rem;
  }
  
  .marca {
    color: #f39c12;
  }
  
  header p {
    font-size: 1.3rem;
    color: #ecf0f1;
  }
  

/* Contenedor principal de videos */
.videos {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos dentro del contenedor */
    justify-content: center;
    margin-top: 50px;
    text-align: center;
  }
  
  .videos h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  /* Contenedor de los videos, para que se organicen en filas */
  .video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra los videos horizontalmente */
    gap: 20px;
  }
  
  .video-grid iframe {
    width: 100%;
    max-width: 400px; /* Limita el tamaño máximo */
    height: 240px;
    border-radius: 15px;
    border: none;
    transition: transform 0.3s ease;
  }
  
  .video-grid iframe:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  

  .niveles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px;
  }
  
  .nivel {
    background: #fff;
    border-radius: 15px;
    padding-top: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33.33% - 20px);
    margin-top: 10px;
    max-width: 30%;
  }
  
  .nivel:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .nivel h3 {
    color: #2980b9;
    font-size: 1.8rem;
    margin: 10px;
  }

  /* RESPONSIVE: para pantallas pequeñas */
@media (max-width: 720px) {
  .niveles {
    flex-direction: column; /* Apila los bloques verticalmente */
    align-items: center;
  }

  .nivel {
  max-width: 100%;             /* Ocupa casi todo el ancho del contenedor */
  }

  .nivel h3 {
  font-size: 1.0rem;

  }
}

  .comentarios {
    margin-top: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .comentarios h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .comentario {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
  }
  
  .comentario:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .comentario p {
    font-size: 1.1rem;
    color: #34495e;
  }
  
  .comentario div {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
  }
  
  .contenedor-iframe {
    overflow: hidden;
}

.iframe-responsivo {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
}
