@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0D1728; /* Fondo principal muy oscuro */
    color: #E2E8F0; /* Texto principal claro */
    scroll-behavior: smooth;
}
.cta-button {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4); /* Sombra Gold */
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.6); /* Sombra Naranja Intenso */
    background-color: #F26522 !important; /* Aplica Naranja Intenso en hover */
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Sombra más visible en modo oscuro */
    border-color: #F5A623;
}
.carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
}

/* Estilos específicos para el carrusel de interfaz */
#interfaz-carousel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

#interfaz-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

#interfaz-carousel .carousel-item {
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
}

#interfaz-carousel .carousel-item img {
    max-height: 600px;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain; /* Mantiene la proporción de la imagen */
    transition: transform 0.3s ease;
    margin: 0 auto; /* Centrado adicional */
}

#interfaz-carousel .carousel-item:hover img {
    transform: scale(1.02);
}

/* Animación de los indicadores */
.indicator {
    cursor: pointer;
}

.indicator:hover {
    background-color: #F5A623 !important;
    transform: scale(1.2);
}

/* Mejora visual de los botones de navegación */
#interfaz-lms button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Animaciones para la página de módulos */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up-delay {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-fade-in-down {
    animation: fade-in-down 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out;
}

.animate-fade-in-up-delay {
    animation: fade-in-up-delay 0.8s ease-out 0.2s both;
}

/* Iconos con degradado de fondo */
.icon-gradient {
    background: linear-gradient(135deg, #F5A623 0%, #F47E3E 50%, #F26522 100%);
    padding: 1rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(245, 166, 35, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.icon-gradient:hover::before {
    opacity: 1;
}

.icon-gradient:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 16px 32px rgba(245, 166, 35, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(245, 166, 35, 0.3);
}

/* Iconos con borde degradado */
.icon-gradient-border {
    position: relative;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(31, 44, 74, 0.9), rgba(42, 63, 95, 0.8));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.icon-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #F5A623, #F47E3E, #F26522);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.4s;
}

.icon-gradient-border:hover::before {
    opacity: 1;
    animation: rotate-gradient 3s linear infinite;
}

/* SVG dentro de iconos */
.icon-gradient svg,
.icon-gradient-border svg,
.icon-glow svg,
.icon-shimmer svg,
.icon-pulse svg,
.icon-container svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.icon-gradient:hover svg,
.icon-gradient-border:hover svg,
.icon-glow:hover svg,
.icon-shimmer:hover svg,
.icon-container:hover svg {
    transform: scale(1.1) rotate(5deg);
}
