/* Estilo general del cuerpo */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F9F9FE; /* Fondo suave con matiz lila */
    color: #5F6C7B; /* Color de texto secundario para párrafos */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Encabezado (Uniforme y Animado) */
.animated-header {
    /* Gradiente principal con la nueva paleta morada */
    background: linear-gradient(45deg, #6247AA, #7F5AF0);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.animated-header h1 {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out forwards 0.5s;
}

.animated-header p {
    font-size: 1.4rem;
    margin: 10px 0 0 0;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards 0.8s;
}

/* Contenedor de Navegación Fijo */
.sticky-nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #ffffff;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(148, 161, 178, 0.15); /* Sombra más sutil */
    transition: all 0.3s ease-in-out;
}

/* Animación de fondo de gradiente */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animación de aparición para el texto del encabezado */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navegación */
.nav-pills .nav-link {
    font-weight: bold;
    color: #7F5AF0; /* Color primario para enlaces */
    background-color: transparent;
    margin: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(127, 90, 240, 0.1); /* Fondo lila muy suave al pasar el ratón */
    color: #6247AA; /* Morado más oscuro al pasar el ratón */
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: #7F5AF0; /* Color primario para el enlace activo */
    color: white;
    box-shadow: 0 4px 10px rgba(127, 90, 240, 0.3);
}

/* Títulos y secciones */
h1, h2, h3, h4, h5, h6 {
    color: #16161A; /* Color de texto principal para todos los títulos */
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #7F5AF0; /* Color primario para el subrayado */
    border-radius: 2px;
}

/* Tarjetas (cards) */
.card {
    border: 1px solid #D1D9E6; /* Borde sutil */
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(148, 161, 178, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: #FFFFFF;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(148, 161, 178, 0.15);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #5F6C7B; /* Color de texto secundario */
    flex-grow: 1;
}

/* Estilos para las tarjetas de video */
.video-card {
    cursor: pointer;
}

.video-card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    object-fit: cover;
    height: 180px;
}

.video-card-title {
    color: #7F5AF0; /* Color primario para el título del video */
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Botones interactivos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 20px;
    margin-top: auto;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Botón de llamada a la acción principal */
.btn-primary {
    background-color: #2CB67D; /* Color de contraste verde */
    color: white;
}
.btn-primary:hover {
    background-color: #249D6B; /* Tono más oscuro del verde */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 182, 125, 0.3);
}

/* Footer */
footer {
    background: #16161A; /* Fondo oscuro consistente */
    color: #94A1B2; /* Texto gris claro para el footer */
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.95rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Animaciones generales de aparición */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-animated {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
