/**
 * footer.css
 * Estilos específicos para el componente footer
 * 
 * Este archivo contiene solo los estilos específicos del footer que no pueden
 * manejarse a través de las clases utilitarias definidas en utilities.css.
 * 
 * Estructura:
 * 1. Contenedor principal
 * 2. Logo y eslogan
 * 3. Enlaces de navegación
 * 4. Redes sociales
 * 5. Copyright
 * 6. Botón WhatsApp
 * 7. Media Queries
 */

/* 1. Contenedor principal
   ========================================================================== */
footer {
    background-color: var(--color-footer);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 0;
    position: flex;
}

/* 2. Logo y eslogan
   ========================================================================== */
.footer-logo {
    width: 220px;
    height: auto;
}
/*
.footer-slogan {
    color: var(--color-secondary);
}
*/
/* 3. Enlaces de navegación
   ========================================================================== */
.footer-links {
    /* Añadir un gap mínimo entre columnas */
    gap: var(--spacing-2xl);
}

.footer-column ul {
    list-style: none;
    padding: 1;
    margin: 1;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-default);
}

.footer-column ul li a:hover,
.footer-column ul li a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* 4. Redes sociales
   ========================================================================== */
   .footer-social {
    display: flex;
    gap: var(--spacing-md); /* Aumentar el gap de md a lg para más separación */
}
   .social-icon {
    /* Añadir dimensiones al contenedor */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:last-child {
    margin-right: 0; /* Eliminar margen del último icono */
}

.social-icon img {
    /* Ajustar la imagen al tamaño del contenedor */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la proporción de la imagen */
    transition: transform var(--transition-default);
}

.social-icon:hover img {
    transform: translateY(-3px);
}
/* 5. Copyright
   ========================================================================== */
.footer-bottom {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #f9aeac;
}

.footer-bottom a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-default);
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    text-decoration: underline;
}

/* 6. Botón WhatsApp
   ========================================================================== */
.whatsapp-button {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-default);
    z-index: 999;
    padding: 0; /* Eliminar cualquier padding */
}

.whatsapp-button img {
    width: 90px; /* Icono significativamente más grande */
    height: 90px;
    padding: 0; /* Eliminar cualquier padding */
    margin: 0; /* Eliminar cualquier margen */
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* 7. Media Queries
   ========================================================================== */
@media (max-width: var(--breakpoint-lg)) {
    .footer-brand {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: var(--breakpoint-md)) {
    .social-icon {
        /* Mantener el tamaño consistente en tablets */
        width: 40px;
        height: 40px;
    }
}

@media (max-width: var(--breakpoint-sm)) {
    .whatsapp-button {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 65px;
        height: 65px;
    }

    .whatsapp-button img {
        width: 55px;
        height: 55px;
    }

    .footer-logo {
        width: 100px;
    }
}

/* Soporte para prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .footer-column ul li a,
    .footer-bottom a,
    .social-icon img,
    .whatsapp-button {
        transition: none;
    }
}
