/* Sección Beneficios con Video de Fondo */
.beneficios {
    position: relative;
    text-align: center;
    color: white;
    padding: 100px 20px 120px 20px;
    overflow: hidden;
}

.beneficios h2 {
    font-size: 30px;
    font-weight: bold;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border-bottom: 4px solid #ffb400;
    background: #00000099;
    border-radius: 10px;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay-beneficios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000099; /* Capa oscura para mayor contraste */
    z-index: -1;
}

.contenedor-beneficios {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
    perspective: 1200px;
}

.carrusel-beneficios {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1100px;
}

.beneficio {
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    width: 70%;
    max-width: 750px;
    min-height: 250px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.9);
    text-align: center;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #62621fbe;
    border: 3px solid #ffb400;
    overflow: hidden;
    transform: translateY(20px);
}

.beneficio.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateY(30px);
    z-index: 3;
    border: 4px solid #ffcc00;
}

.beneficio.prev {
    transform: scale(0.85) rotateY(-8deg) translateX(-280px) translateY(20px);
    opacity: 0.6;
    z-index: 2;
    border: 2px solid #ffb400;
}

.beneficio.next {
    transform: scale(0.85) rotateY(8deg) translateX(280px) translateY(20px);
    opacity: 0.6;
    z-index: 2;
    border: 2px solid #ffb400;
}

.beneficio h3 {
    font-size: 30px;
    color: #ffcc00;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.beneficio p {
    font-size: 22px;
    color: white;
    line-height: 1.8;
    font-style: italic;
    padding: 18px;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

@media (max-width: 900px) {
    .beneficios h2{
        font-size: 25px;

    }

    .beneficio {
        width: 80%;
        max-width: 550px;
        padding: 28px;
    }
    .beneficio.prev {
        transform: scale(0.8) rotateY(-6deg) translateX(-220px) translateY(20px);
    }
    .beneficio.next {
        transform: scale(0.8) rotateY(6deg) translateX(220px) translateY(20px);
    }
}

@media (max-width: 600px) {

    .beneficio {
        width: 90%;
        max-width: 400px;
        padding: 22px;
        border-radius: 18px;
    }
    .beneficio h3 {
        font-size: 26px;
    }
    .beneficio p {
        font-size: 16px;
        max-width: 95%;
    }
    .beneficio.prev {
        transform: scale(0.75) rotateY(-5deg) translateX(-180px) translateY(20px);
    }
    .beneficio.next {
        transform: scale(0.75) rotateY(5deg) translateX(180px) translateY(20px);
    }
}

/* Widgets flotantes */
.redes-flotantes {
    position: fixed;
    right: 20px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}


.redes-flotantes a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}


.redes-flotantes a:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
}


.redes-flotantes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px)  {
    .redes-flotantes {
        right: 10px;
        bottom: 40px;
    }
        .redes-flotantes a {
            width: 40px;
            height: 40px;
        }
    }



@media (max-width: 480px) {
    .redes-flotantes {
        right: 5px;
        bottom: 30px;
        gap: 10px;
    }

    .redes-flotantes a {
        width: 45px;
        height: 45px;
    }
}



/* FOOTER GENERAL */
.footer {
    background: #625e37;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo */
.footer .logo img {
    width: 200px;
    transition: transform 0.3s ease-in-out;
}

.footer .logo img:hover {
    transform: scale(1.1);
}



/* Columnas de contacto y enlaces */
.footer-column {
    text-align: left;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #cfa52f;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Íconos de contacto */
.footer-column ul li img {
    width: 35px;
    height: 35px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-column ul li a:hover {
    color: #cfa52f;
}

/* Redes Sociales */
.social-media {
    display: flex;
    gap: 15px;
}

.social-media img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
}

.social-media img:hover {
    transform: scale(1.2);
}

/* Línea inferior */
.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #cfa52f;
    padding-top: 10px;
}


@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
    }

    .footer-column ul li {
        justify-content: center;
    }

    .footer .logo img {
        width: 150px; 
    }

    .social-media {
        justify-content: center;
        gap: 10px;
    }

    .social-media img {
        width: 35px;
        height: 35px;
    }
}
