/**
 * Layout: Footer
 * Estilos para el pie de página, widgets y copyright.
 */
.footer {
    background: var(--color-primary);
    color: #ccc;
    padding: 60px 20px 30px;
    border-top: 5px solid var(--color-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* Bloques Expandibles (details/summary) */
.footer-block > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    color: #fff;
}

.footer-block > summary::-webkit-details-marker {
    display: none;
}

.footer-block-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.footer-block > summary .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-block:not([open]) > summary .fa-chevron-down {
    transform: rotate(-90deg);
}

/* Columnas: Contacto, Mapa, Acreditaciones */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 45px;
    text-align: left;
}

/* Contacto */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.footer-contact-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-list i {
    width: 16px;
    text-align: center;
    color: var(--color-secondary);
}

.footer-contact-list a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: #fff;
}

/* Redes Sociales */
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* Mapa */
.footer-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 6px;
}

/* Acreditaciones */
.footer-accreditations-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-accreditations-grid li,
.footer-accreditations-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.footer-accreditations-grid li {
    background: #fff;
    border-radius: 6px;
    padding: 8px;
}

.footer-accreditations-grid a {
    width: 100%;
    transition: transform 0.3s ease;
}

.footer-accreditations-grid a:hover {
    transform: scale(1.05);
}

.footer-accreditations-grid img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sitios Relacionados */
.footer-links {
    margin-bottom: 45px;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: #fff;
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.footer-widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.footer-widget ul li:last-child {
    border-bottom: none;
}

.footer-widget a {
    color: #bbb;
    transition: color 0.2s;
}

.footer-widget a:hover {
    color: #947e1e;
    padding-left: 5px;
}

/* Copyright */
.footer-copy {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-columns {
        gap: 30px;
    }
    .footer-links ul {
        flex-direction: column;
        align-items: center;
    }
    .footer-links a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .footer-widgets {
        text-align: center;
    }
}