body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    color: #f0f0f0; /* Texto blanco/gris claro */
    background-color: #121212; /* Fondo oscuro */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0.5); /* Oscurece el video para que el texto sea legible */
}

.top-left-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.top-left-logo img {
    height: 50px;
    width: auto;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 20px;
    text-align: center;
}

.carousel-container {
    width: 90%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0.9); /* Aclara un poco los logos para el fondo oscuro */
}

.carousel-item p {
    font-size: 1.1em;
    font-weight: 400;
}

.minimal-button {
    background-color: transparent;
    color: #fff; /* Texto inicial blanco */
    border: 1px solid #fff;
    padding: 12px 24px;
    margin-top: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    position: relative; /* Esencial para el pseudo-elemento */
    overflow: hidden; /* Oculta el pseudo-elemento hasta que se deslice */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.minimal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ff8c00, #ff0000, #800080); /* El degradado */
    transform: scaleX(0); /* Inicialmente oculto */
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1; /* Lo pone detrás del texto */
}

.minimal-button:hover {
    color: #fff; /* El texto permanece blanco al hacer hover */
    border-color: transparent; /* El borde desaparece al hacer hover */
}

.minimal-button:hover::before {
    transform: scaleX(1); /* El pseudo-elemento se expande de izquierda a derecha */
}

.prev-button, .next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #f0f0f0;
    border: none;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease; /* Añadimos una transición suave */
}

.prev-button:hover, .next-button:hover {
    color: #999;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Media query para pantallas de tabletas (ej. 768px a 1024px) */
@media (max-width: 1024px) {
    .content {
        padding: 0 15px;
    }
    
    .carousel-item {
        padding: 30px;
    }
    
    .carousel-item p {
        font-size: 1em;
    }
}

/* Media query para móviles (menos de 768px) */
@media (max-width: 768px) {
    .top-left-logo img {
        height: 40px;
    }

    .carousel-item {
        padding: 20px;
    }

    .carousel-item img {
        max-width: 80px;
    }

    .carousel-item p {
        font-size: 0.9em;
    }

    .minimal-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .prev-button, .next-button {
        font-size: 1.5em;
    }
}