/* =========================================
   ESTILOS GENERALES (MÁS VIBRANTES Y DIVERTIDOS)
   ========================================= */
body {
    /* Usamos fuentes más redondeadas y amigables si están disponibles */
    font-family: 'Nunito', 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Cabecera con degradado vibrante (Índigo a Fucsia) */
header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(217, 70, 239, 0.85)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 70px 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.8rem;
    color: #fbbf24; /* Amarillo vibrante para resaltar */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header > p {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 25px;
}

/* Enlaces de navegación tipo píldora interactiva */
.menu a {
    display: inline-block;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    margin: 10px 5px 0 5px;
    border-radius: 50px; /* Bordes totalmente redondeados */
    text-decoration: none;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efecto rebote */
}

.menu a:hover {
    background-color: #fbbf24;
    color: #1e1b4b;
    border-color: #fbbf24;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(251, 191, 36, 0.4);
}

/* =========================================
   CONTENEDOR DE CURSOS Y SECCIONES
   ========================================= */
.contenedor-cursos {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Bloques principales de categorías */
.seccion-categoria {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px; 
    border-top: 6px solid #d946ef; /* Color fucsia divertido */
    position: relative;
}

/* Decoración para el mensaje de bienvenida de Brenda */
.seccion-categoria:first-of-type {
    border-top: none;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

.seccion-categoria > h2 {
    color: #312e81;
    font-size: 2rem;
    margin-bottom: 10px;
}

.seccion-categoria > p {
    color: #475569;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* =========================================
   GRILLAS Y TARJETAS DIVERTIDAS
   ========================================= */
.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Diseño de la Tarjeta */
.tarjeta {
    background-color: #ffffff;
    border: 2px solid #f1f5f9;
    padding: 30px;
    border-radius: 20px; /* Esquinas más suaves */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación elástica */
    position: relative;
    overflow: hidden;
}

/* Efecto de borde superior de color aleatorio por tarjeta */
.tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

/* Al pasar el mouse sobre la tarjeta */
.tarjeta:hover {
    transform: translateY(-12px) rotate(1deg); /* Sube y se inclina un poquito */
    border-color: #818cf8;
    box-shadow: 0 15px 30px rgba(129, 140, 248, 0.2);
}

.tarjeta h3 {
    color: #4338ca;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tarjeta a {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    background: #818cf8;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.tarjeta a:hover {
    background: #4f46e5;
}

/* =========================================
   PIE DE PÁGINA
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #a5b4fc;
    margin-top: 60px;
    font-size: 1rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
/* =========================================
   ESTILOS DEL FORMULARIO DE COMENTARIOS
   ========================================= */
.formulario-moderno {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.grupo-form {
    margin-bottom: 25px;
}

.grupo-form label {
    display: block;
    font-weight: bold;
    color: #312e81;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Diseño de los campos de texto y selección */
.grupo-form input,
.grupo-form select,
.grupo-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #cbd5e1;
    border-radius: 12px; /* Bordes redondeados */
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Efecto al hacer clic para escribir (Resplandor) */
.grupo-form input:focus,
.grupo-form select:focus,
.grupo-form textarea:focus {
    outline: none;
    border-color: #d946ef; /* Borde Fucsia */
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15);
}

/* Botón de enviar con efecto rebote */
.btn-enviar {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #d946ef); /* Degradado vibrante */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}

.btn-enviar:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(217, 70, 239, 0.3);
}