/* public/css/footer.css */

.footer-custom {
    background-color: #2a2a2a; /* Fondo gris oscuro estilo militar */
    background-image: url('../images/textura_footer.png');
    background-repeat: repeat;
    color: #ffffff;
}

/* Cinta superior dorada */
.footer-nav {
    background-color: #d4af37; /* Dorado exacto */
    padding: 15px 0;
}

.footer-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1a1a1a; /* Texto oscuro sobre el dorado */
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Botón flecha arriba */
.btn-up {
    background: #f1ebd9; /* Color crema */
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-up:hover {
    background: #ffffff;
    transform: translateY(-3px);
}

.footer-content {
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Títulos blancos como en la imagen */
.footer-title,
.footer-html-content h5, 
.footer-html-content h4, 
.footer-html-content h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: #ffffff !important; 
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center; /* Alinea los iconos cuadrados con el texto */
    gap: 12px;
    color: #e5e7eb;
}

.footer-col ul a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-col ul a:hover {
    color: var(--color-gold);
}

/* Sobrescribir el color dorado que viene del HTML para hacerlo blanco como la imagen */
.footer-col .text-gold {
    color: #ffffff !important;
}

/* Iconos de contacto (Ubicación, Teléfono, Correo) - Blancos y sin fondo */
.footer-col ul li i.fa-solid {
    color: #ffffff !important;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Iconos de Redes Sociales - Cuadrados cremas con icono oscuro */
.footer-col ul li a i.fa-brands,
.social-circle-btn i.fa-brands {
    background-color: #eaddc4 !important; /* Fondo crema */
    color: #1f2937 !important; /* Icono gris oscuro */
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Bordes redondeados sutiles */
    font-size: 1.1rem;
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-col ul li a:hover i.fa-brands,
.social-circle-btn:hover i.fa-brands {
    background-color: #ffffff !important;
    transform: scale(1.05);
}

/* Limpiar estilos de botones sociales genéricos si están sueltos */
.social-circle-btn {
    background: transparent !important;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    color: #e5e7eb;
}

.map-container {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.map-container iframe {
    width: 100% !important;
    height: 160px !important;
    border-radius: 8px;
    border: none;
}

.reclamaciones-icon {
    font-size: 4.5rem;
    color: #ffffff;
    display: block;
    text-align: center;
    margin-top: 10px;
    transition: transform 0.3s;
}

.reclamaciones-icon:hover {
    transform: scale(1.05);
}

/* Barra de Copyright con la delgada línea dorada encima */
.copyright-bar {
    border-top: 1px solid rgba(212, 175, 55, 0.4); 
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.85rem;
    color: #e5e7eb;
    text-align: center;
}

.copyright-bar-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 15px;
    transition: color 0.2s;
}

.copyright-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Soporte para el texto/enlaces inyectados desde el Panel Admin (Columnas Dinámicas) */
.footer-html-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-html-content li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-html-content a, .footer-link-item {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-html-content a:hover, .footer-link-item:hover {
    color: var(--color-gold);
}

/* ========================================= */
/* --- RESPONSIVE FOOTER --- */
/* ========================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-nav .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul li {
        justify-content: center;
    }
    
    .copyright-bar-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright-links a {
        margin: 0 10px;
    }
}