* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* ====================== SECCIÓN 1 - ANIMACIÓN ====================== */
#section1 {
    position: relative;
    width: 100%;
    height: 465px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
    overflow: hidden;
    animation: theme 21s linear infinite;
}

/* Capas de fondo rotatorio */
#section1::before,
#section1::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    top: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);   /* Opacidad */
    animation: background 90s linear infinite;
    pointer-events: none;
}

#section1::after {
    left: 15%;
    animation-delay: -30s;
    animation-direction: reverse;
}

#section1::before {
    right: 15%;
}

/* ANIMACIÓN DE COLORES */
@keyframes theme {
    0%   { background: #fe4273; }
    16%  { background: #c00128; }
    33%  { background: #04294d; }
    50%  { background: #356b87; }
    66%  { background: #fe4273; }
    83%  { background: #c00128; }
    100% { background: #fe4273; }
}

/*  ANIMACIÓN DE ROTACIÓN DE CAPAS  */
@keyframes background {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenido del section (título, texto y botón) */
#section1 .content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 20px;
}

.content {
    text-align: center;
    max-width: 720px;
    padding: 0 20px;
}

#section1 h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    color: #ffffff;
}

#section1 p {
    font-size: 19px;
    line-height: 1.6;
    color: #ffffffcb;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Botón del CTA Principal */
.btn-primary {
    display: inline-block;
    background-color: #1a1a1a;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #c00128;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====================== SECCIÓN CLIENTES ====================== */
#clientes {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.clientes-container {
    max-width: 1100px;
    margin: 0 auto;
}

.clientes-texto {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 50px;
    line-height: 1.3;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.logos img {
    height: 65px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===Responsive para telefonos=== */

@media (max-width: 576px) {
    #section1{
        margin-top: 50px;
    }

    #section1 h1 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    #section1 p {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .btn-primary {
        font-size: 17px;
        padding: 14px 32px;
    }
}

@media (max-width: 380px) {
    #section1 h1 {
        font-size: 28px;
    }

    #section1 p {
        font-size: 15px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 13px 28px;
    }
}

/* responsive del cliente */

@media (max-width: 576px) {
    #clientes {
        padding: 60px 15px;
    }

    .clientes-texto {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .logos {
        gap: 40px;
    }

    .logos img {
        height: 48px;
    }
}

@media (max-width: 380px) {
    #clientes {
        padding: 50px 12px;
    }

    .clientes-texto {
        font-size: 22px;
        margin-bottom: 35px;
    }

    .logos {
        gap: 35px;
    }

    .logos img {
        height: 42px;
    }
}
