/* ========================================
   FOOTER.CSS - DPI del Perú
   Estilos para el footer de la página
======================================== */

/* Footer principal */
.footer-section {
    background-color: #e7e7e7;
    color: #333;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.footer-container {
    margin: 0 auto;
}

/* Contenido principal del footer */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr;
    justify-items: center;
    padding: 6vh 8vh;
}

.footer-column h4 {
    color: var(--primary-blue);
    font-size: 2.5vh;
    font-weight: 700;
    margin-bottom: 3vh;
    position: relative;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 2vh;
    padding-left: 3vh;
    position: relative;
}

.footer-column ul li::before {
    content: '•';
    color: var(--secondary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 2.5vh;
}

.footer-column ul li a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 2vh;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--primary-blue);
    transform: translateX(1.5vh);
}

/* Columna de contacto específica */
.contacto-column .contacto-info {
    display: flex;
    flex-direction: column;
    gap: 4vh;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 2.5vh;
}

.contacto-item i {
    color: var(--primary-blue);
    font-size: 2.5vh;
    margin-top: 0.5vh;
}

.contacto-item div {
    font-size: 2vh;
    color: var(--secondary-blue);
    flex: 1;
}

.contacto-item strong {
    color: var(--primary-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 1vh;
}

/* Sección de WhatsApp y redes sociales */
.footer-whatsapp {
    background-color: #ffffff;
    padding: 3vh 8vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-cta {
    color: white;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.whatsapp-cta:hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05) translateY(-0.2vh);
}

.whatsapp-cta:active {
    transform: scale(0.98) translateY(0vh);
    transition: all 0.1s ease;
}

.whatsapp-icon {
    background: var(--secondary-light-blue);
    width: 7vh;
    height: 7vh;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vh;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.whatsapp-cta:hover .whatsapp-icon {
    transform: rotate(10deg) scale(1.05);
}

.whatsapp-cta:hover .whatsapp-icon i {
    transform: scale(1.05);
    animation: whatsappBounce 0.6s ease-in-out;
}

/* Animación de rebote para WhatsApp */
@keyframes whatsappBounce {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-5deg); }
    75% { transform: scale(1.3) rotate(5deg); }
}

.whatsapp-text {
    font-size: 2.5vh;
    color: white;
    background: var(--secondary-blue);
    margin-left: -2.5vh;
    padding: 1vh 2vh 1vh 4vh;
    border-radius: 0 5vh 5vh 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.whatsapp-cta:hover .whatsapp-text {
    color: #ffffff;
    padding-right: 1.5vh;
    padding-left: 4.5vh;
    letter-spacing: 0.05vh;
}

.whatsapp-text-container {
    display: flex;
    align-items: center;
    gap: 2vh;
}

.whatsapp-text-span {
    color: var(--secondary-blue);
    font-weight: 800;
    display: block;
    font-size: 2.5vh;
    opacity: 0.9;
}

/* Redes sociales */
.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5vh;
    color: var(--secondary-blue);
}

.social-icons {
    display: flex;
    gap: 1.2vh;
}

.social-icon {
    width: 6.5vh;
    height: 6.5vh;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    background-color: var(--secondary-blue);
    font-size: 3vh;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0.2vh solid var(--secondary-blue);
}

.social-icon:hover {
    transform: translateY(-0.3vh) scale(1.1);
    border-color: var(--primary-white);
    box-shadow: 0 0vh 2vh rgba(0, 0, 0, 0.2);
}

.social-icon.facebook:hover {
    background: #1877f2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.social-icon.youtube:hover {
    background: #ff0000;
}

.social-icon.tiktok:hover {
    background: #000000;
}

/* Copyright */
.footer-copyright {
    background: var(--gradient-bg);
    text-align: center;
    padding: 3.5vh 0;
}

.footer-copyright p {
    margin: 0;
    color: #ffffff;
    font-size: 2vh;
    font-weight: 500;
}

.link-footer {
    color: var(--secondary-blue);
    text-decoration: none;
}

.phone-number-whatsapp-footer {
    color: var(--b);
    text-decoration: none;

}

@media (max-width: 992px) {
    .footer-content {
        justify-items: left;
        grid-template-columns: 1fr 1fr;
        gap: 4vh;
    }
    
    .footer-whatsapp {
        flex-direction: column;
        gap: 2vh;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .whatsapp-text-container {
        flex-direction: column;
    }

    .whatsapp-icon {
        width: 6vh;
        height: 6vh;
        font-size: 2.3vh;
    }
    
    .social-icons {
        gap: 1vh;
    }
}

@media (max-width: 480px) {
    .whatsapp-text-container {
        gap: 1.5vh;
    }

    .footer-content {
        gap: 3vh;
        padding: 5vh;
        justify-items: start;
    }

    .footer-column:not(.contacto-column) {
        grid-column: 1;
    }

    .footer-column.contacto-column {
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .contacto-item {
        gap: 1.2vh;
    }
    
    .contacto-item div {
        font-size: 1.5vh;
        line-height: 1.4;
    }

    .contacto-item i {
        font-size: 1.5vh;
    }

    .footer-column h4 {
        font-size: 2vh;
        margin-bottom: 1vh;
    }

    .footer-column ul li a {
        font-size: 1.5vh;
        margin-bottom: 0.5vh;
    }

    .footer-column ul li {
        margin-bottom: 0.5vh;
    }

    .footer-whatsapp {
        padding: 2vh 1.5vh;
    }
    
    .whatsapp-text span {
        font-size: 1.4vh;
    }

    .whatsapp-text {
        font-size: 2vh;
    }

    .whatsapp-text-span {
        font-size: 2vh;
    }

    .social-icon {
        font-size: 2vh;
        width: 5vh;
        height: 5vh;
    }
    
    .footer-copyright p {
        font-size: 1.5vh;
    }
} 