/* styles.css */

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}

main {
    background-image: url('superficie.jpg'); /* Asegúrate de tener esta imagen en tu directorio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh; /* Cambiado a min-height para asegurar que el fondo siempre cubra */
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner {
    overflow: hidden;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.banner-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation: slide 30s infinite;
    animation-play-state: paused; /* Inicia la animación en pausa */
}

.banner-container.active {
    animation-play-state: running; /* Inicia la animación cuando se agrega la clase active */
}

.banner a {
    flex: 0 0 10%; /* Cada logo ocupa el 10% del ancho del contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner a img {
    width: 280px;
    height: 280px;
    transition: transform 0.3s;
}

.banner a img:hover {
    transform: scale(1.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .banner a img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .banner a img {
        width: 40px;
        height: 40px;
    }
}

@keyframes slide {
    0% { transform: translateX(0%); }
    10% { transform: translateX(-100%); }
    20% { transform: translateX(-200%); }
    30% { transform: translateX(-300%); }
    40% { transform: translateX(-400%); }
    50% { transform: translateX(-500%); }
    60% { transform: translateX(-600%); }
    70% { transform: translateX(-700%); }
    80% { transform: translateX(-800%); }
    90% { transform: translateX(-900%); }
    100% { transform: translateX(0%); }
}
