/* web/static/web/css/piepagina.css */

/* Estructura principal del footer */
.pie-pagina {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 4rem 0 0;
    margin-top: 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Asegura columnas iguales */
    gap: 3rem;
    padding: 0 4rem; /* Aumentamos el padding lateral */
    width: 100%; /* Aseguramos que ocupe todo el ancho disponible */
}


/* Ajustamos el contenido de cada columna */
.footer-main, 
.footer-info, 
.footer-hours {
    width: 100%; /* Asegura que cada columna use todo su espacio disponible */
}

/* Sección Principal - Branding */
.footer-brand h2,
.footer-info h3,
.footer-hours h3 {
    color: var(--accent-color);
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 1.8rem;
}

.footer-brand h2 {
    font-size: 1.8rem;
}

.footer-info h3,
.footer-hours h3 {
    font-size: 2rem;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Redes Sociales */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--light-color);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Secciones de Información */
.footer-contact li,
.schedule li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.schedule .closed {
    color: rgba(255, 255, 255, 0.7);
}

/* Enlaces Legales */
.footer-legal {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.legal-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Copyright */
.footer-bottom {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Schedule específico */
.schedule {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule .horario-grupo {
    margin-bottom: 12px;
}

.schedule .dias {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    /* Cambiamos el color para asegurar buen contraste */
    color: #ffffff; /* Color claro para contrastar con el fondo oscuro del footer */
}

.schedule .closed {
    color: #ff6b6b;
    font-style: italic;
    font-weight: 500;
}

.schedule .horarios-detalle {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule .horario-bloque {
    font-size: 0.95em;
}

.schedule li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.schedule li span {
    font-weight: 600;
    margin-right: 5px;
}

.schedule li .closed {
    color: #ff6b6b;
    font-style: italic;
}

/* Media Queries para pantallas grandes (1600px+) */
@media (min-width: 1600px) {
    .pie-pagina {
        padding: 5rem 0 0;
    }
    
    .footer-grid {
        max-width: 1400px;
        gap: 4rem;
    }
    
    .footer-brand h2 {
        font-size: 2.2rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 2.4rem;
    }
    
    .footer-slogan {
        font-size: 1.2rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer-contact li,
    .schedule li {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 1rem;
    }
}

/* Media Queries para escritorios y portátiles (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .footer-grid {
        max-width: 1100px;
        gap: 3.5rem;
    }
}

/* Media Queries para tablets grandes (992px - 1199px) - continuación */
@media (min-width: 992px) and (max-width: 1199px) {
    .pie-pagina {
        padding: 3.5rem 0 0;
    }
    
    .footer-grid {
        gap: 2.5rem;
        padding: 0 3rem;
    }
    
    .footer-brand h2 {
        font-size: 1.7rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.8rem;
    }
    
    .footer-slogan {
        font-size: 0.95rem;
    }
    
    .schedule .horario-grupo {
        margin-bottom: 10px;
    }
}

/* Media Queries para tablets pequeñas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .pie-pagina {
        padding: 3rem 0 0;
    }
    
    .footer-grid {
        padding: 0 3rem;
        gap: 2rem;
    }
    
    .footer-brand h2 {
        font-size: 1.5rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact li,
    .schedule li {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal, 
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-legal {
        margin-top: 2.5rem;
    }
}

/* Media Queries para móviles grandes (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .pie-pagina {
        padding: 2.5rem 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .footer-main,
    .footer-info,
    .footer-hours {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li,
    .schedule li {
        justify-content: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .separator {
        display: none;
    }
    
    .footer-brand h2,
    .footer-info h3,
    .footer-hours h3 {
        margin-bottom: 1.2rem;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    .schedule .horario-grupo {
        margin-bottom: 10px;
    }
    
    .schedule .dias {
        justify-content: center;
    }
    
    .schedule .horarios-detalle {
        align-items: center;
    }
}

/* Media Queries para móviles medianos (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .pie-pagina {
        padding: 2rem 0 0;
    }
    
    .footer-grid {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .footer-brand h2 {
        font-size: 1.4rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-contact li,
    .schedule li {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal, 
    .footer-bottom {
        padding: 1.2rem 0;
    }
    
    .footer-legal {
        margin-top: 2rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    .schedule .horario-grupo {
        margin-bottom: 8px;
    }
    
    .schedule .horario-bloque {
        font-size: 0.9em;
    }
}

/* Media Queries para móviles pequeños (320px - 375px) */
@media (max-width: 375px) {
    .pie-pagina {
        padding: 1.5rem 0 0;
    }
    
    .footer-grid {
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .footer-brand h2 {
        font-size: 1.3rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-slogan {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact li,
    .schedule li {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .footer-legal, 
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-legal {
        margin-top: 1.5rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    .schedule .horario-grupo {
        margin-bottom: 7px;
    }
    
    .schedule .horario-bloque {
        font-size: 0.85em;
    }
    
    .legal-links a {
        font-size: 0.9rem;
    }
}

/* Media Query para dispositivos muy pequeños */
@media (max-width: 320px) {
    .footer-brand h2 {
        font-size: 1.2rem;
    }
    
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.3rem;
    }
    
    .footer-contact li,
    .schedule li {
        font-size: 0.8rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .schedule .horario-bloque {
        font-size: 0.8em;
    }
    
    .legal-links a {
        font-size: 0.85rem;
    }
}

/* Media Query para orientación landscape en dispositivos pequeños */
@media (max-width: 767px) and (orientation: landscape) {
    .pie-pagina {
        padding: 1.5rem 0 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* Restaurar las 3 columnas en landscape */
        gap: 1rem;
    }
    
    .footer-brand h2,
    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-slogan {
        margin-bottom: 1rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .footer-legal, 
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-legal {
        margin-top: 1.5rem;
    }
}