@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variables de colores */
:root {
    --color-crema: #F5F5DC;
    --color-crema-claro: #FFFEF7;
    --color-azul-celeste: #5B9BD5;
    --color-azul-oscuro: #4A90A4;
    --color-texto-oscuro: #2C3E50;
    --color-texto-medio: #5A6C7D;
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- Estilos Generales del Footer --- */
.pie-de-pagina {
    background: linear-gradient(135deg, var(--color-azul-celeste) 0%, var(--color-azul-oscuro) 100%);
    color: white;
    padding: 2rem 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--sombra-suave);
    margin-top: 3rem;
}

.footer-contenedor {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: 0 4px 15px rgba(91, 155, 213, 0.3);
}

/* --- Copyright --- */
.footer-copyright {
    order: 2;
    flex: 1;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* --- Redes Sociales --- */
.footer-redes {
    order: 1;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-redes a {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-redes a:hover {
    transform: translateY(-3px) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-redes a svg {
    width: 24px;
    height: 24px;
}

/* --- Contenedor de WhatsApp --- */
.footer-whatsapp {
    order: 3;
    flex: 0 0 auto;
}

/* --- Botón de WhatsApp --- */
.boton-whatsapp {
    background-color: white;
    color: var(--color-azul-oscuro);
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
}

.boton-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--color-azul-celeste);
}

.boton-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Media Queries para Diseño Adaptable (Responsive) --- */

/* Pantallas pequeñas (menos de 768px) */
@media (max-width: 767px) {
    .pie-de-pagina {
        padding: 1.5rem 1rem;
    }
    
    .footer-contenedor {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright {
        order: 3;
        width: 100%;
    }
    
    .footer-redes {
        order: 1;
        justify-content: center;
        width: 100%;
    }
    
    .footer-whatsapp {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .boton-whatsapp {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
    }
}

/* Pantallas muy pequeñas (menos de 480px) */
@media (max-width: 479px) {
    .pie-de-pagina {
        padding: 1.25rem 0.75rem;
    }
    
    .footer-redes {
        gap: 1rem;
    }
    
    .footer-redes a {
        width: 36px;
        height: 36px;
    }
    
    .footer-redes a svg {
        width: 20px;
        height: 20px;
    }
    
    .boton-whatsapp {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .boton-whatsapp span {
        display: none;
    }
    
    .boton-whatsapp::after {
        content: "WhatsApp";
    }
}

/* Pantallas medianas (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-contenedor {
        padding: 0 1.5rem;
    }
}

/* Pantallas grandes (1024px en adelante) */
@media (min-width: 1024px) {
    .pie-de-pagina {
        padding: 2rem 2rem;
    }
    
    .footer-contenedor {
        padding: 0;
    }
}
