/**
 * Estilos para el skeleton loading
 */

/* Animación de pulso para el skeleton */
@keyframes skeletonPulse {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Estilo base para elementos skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

/* Skeleton para el carrusel */
.hero-skeleton {
    width: 100%;
    height: 500px; /* Misma altura que el carrusel real */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Elementos dentro del skeleton */
.hero-skeleton-content {
    width: 80%;
    max-width: 1200px;
}

.hero-skeleton-title {
    height: 40px;
    width: 60%;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hero-skeleton-description {
    height: 20px;
    width: 80%;
    margin-bottom: 30px;
    border-radius: 4px;
}

.hero-skeleton-button {
    height: 40px;
    width: 150px;
    border-radius: 4px;
}

/* Clase para ocultar el skeleton cuando el carrusel está listo */
.loaded .hero-skeleton {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estilos específicos para el contenedor del carrusel */
.hero-slider {
    min-height: 500px; /* Asegura que el contenedor tenga altura desde el inicio */
    position: relative;
}

/* Estilo inicial para el contenido del carrusel (oculto hasta que cargue) */
.hero-carousel {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Mostrar el contenido del carrusel cuando está cargado */
.loaded .hero-carousel {
    opacity: 1;
}
