/* ==============================================================================
   ACCURETTA INGENIERÍA - ESTILOS PIE DE PÁGINA (COMPONENT-FOOTER.CSS)
   DISEÑO CORPORATIVO B2B EN REJILLA DE 3 COLUMNAS Y CONTRASTE DE ALTO IMPACTO
   ============================================================================== */

.modular-footer {
    background-color: #020617; /* Fondo azul noche extra oscuro para máximo contraste */
    border-top: 2px solid var(--primary); /* Línea de acentuación superior en azul ingeniería */
    padding: 5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    color: #F8FAFC; /* Architectural White para textos generales del footer */
}

/* Rejilla Principal de 3 Columnas */
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Columna individual del Footer */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Encabezados de los Widgets */
.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent); /* GeoTech Green para los títulos */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Línea decorativa debajo del título */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--precision); /* Laser Gold para la línea de acento */
}

/* Widget 1: Identidad Institucional Centrada y de Gran Tamaño */
.footer-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-logo-img-large {
    height: 150px; /* Aumentado a 150px (el doble) para máxima visibilidad y recordación de marca */
    width: auto;
    object-fit: contain;
    /* filter removido para mantener colores originales de marca */
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
}

.footer-logo-img-large:hover {
    transform: scale(1.04);
}

.footer-powerful-phrase {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.45;
    letter-spacing: 0.01em;
    border-bottom: 2px solid var(--accent); /* GeoTech Green accent line */
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.footer-about-text {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--support); /* Technical Silver */
    text-align: center;
}

/* Widget 2: Contacto & Canales */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--support);
    display: flex;
    flex-direction: column;
}

.footer-contact-list li strong {
    color: var(--precision); /* Laser Gold para etiquetas de contacto */
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.footer-contact-list li a {
    color: var(--support);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-list li a:hover {
    color: var(--accent); /* Verde al pasar el cursor */
    padding-left: 3px;
}

/* Widget 3: Especialidades (Menú rápido de servicios) */
.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-menu-list a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--support);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.footer-menu-list a::before {
    content: '▪';
    color: var(--accent);
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}

.footer-menu-list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-menu-list a:hover::before {
    color: var(--precision);
}

/* --- BARRA INFERIOR DE COPYRIGHT Y NAVEGACIÓN SECUNDARIA --- */
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Menú Secundario General Horizontal */
.footer-secondary-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-secondary-menu a {
    text-decoration: none;
    color: var(--support);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

/* Enlaces legales */
.footer-legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--secondary);
}

.footer-legal-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Texto RAG/SEO Discreto e Indexable */
.footer-rag-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.6;
    color: #94a3b8; /* Contraste óptimo WCAG AA sobre fondo oscuro */
    text-align: justify;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

/* --- ADAPTABILIDAD RESPONSIVA --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .modular-footer {
        padding: 4rem 1.5rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .footer-secondary-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modular-footer {
        padding: 3rem 1rem 1rem 1rem !important;
    }

    .footer-grid {
        gap: 1.8rem !important;
        padding-bottom: 1.8rem !important;
    }

    .footer-logo-img-large {
        height: 90px !important;
    }

    .footer-powerful-phrase {
        font-size: 0.85rem !important;
    }

    .footer-about-text {
        font-size: 0.82rem !important;
    }

    .footer-column h4 {
        font-size: 0.95rem !important;
    }

    .footer-secondary-menu a {
        font-size: 0.8rem !important;
    }

    .footer-compliance-text {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
    }
}

/* ==============================================================================
   ESTILOS ADICIONALES: WIDGET DE REDES SOCIALES
   ============================================================================== */
.footer-social-widget {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.footer-social-widget h5 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.social-icons-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Efectos hover por red social */
.social-icon-link.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px);
}

.social-icon-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(214, 36, 159, 0.4);
    transform: translateY(-3px);
}

.social-icon-link.linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
    transform: translateY(-3px);
}


.social-icon-link.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

.social-icon-link.youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
}

/* Enlaces generales de texto en el pie de página: Azul hielo sutil (no blanco puro) con animación hover */
.modular-footer p a,
.footer-contact-list a {
    color: #CBD5E1 !important; /* Azul hielo suave - acorde al fondo oscuro sin ser blanco puro */
    text-decoration: none !important;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.3s ease, background-size 0.3s ease !important;
}

.modular-footer p a:hover,
.footer-contact-list a:hover {
    color: var(--accent) !important;
    background-size: 100% 1.5px !important;
}

/* Nota RAG de gobernanza: especificidad alta para ganar sobre .modular-footer p a */
.modular-footer .footer-rag-text a,
.footer-bottom .footer-rag-text a {
    color: #cbd5e1 !important; /* Contraste accesible WCAG AA */
    text-decoration: underline !important;
    text-underline-offset: 2px;
    font-weight: 400 !important;
    background-image: none !important;
    transition: color 0.3s ease !important;
}

.modular-footer .footer-rag-text a:hover,
.footer-bottom .footer-rag-text a:hover {
    color: var(--accent) !important;
    background-image: none !important;
}

/* Menús de pie de página en Technical Silver (#D7DDE3) - sin subrayado */
.footer-menu-list a,
.footer-secondary-menu a,
.footer-legal-links a {
    color: var(--support) !important;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.footer-menu-list a:hover,
.footer-secondary-menu a:hover,
.footer-legal-links a:hover {
    color: var(--accent) !important;
}

/* --- BLOQUE DE COMPLIANCE Y GOBERNANZA TÉCNICA UNIFICADO --- */
.footer-compliance-block {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background-color: var(--secondary); /* Titanium Gray #5C6670 */
    border-top: 5px solid var(--accent); /* GeoTech Green #00A870 */
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    transition: var(--transition-smooth);
}

.footer-compliance-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 168, 112, 0.1);
}

.compliance-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #F8FAFC;
    display: block;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-left: 4px solid var(--precision); /* Laser Gold */
    padding-left: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.compliance-text {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #E2E8F0; /* Technical Silver muy suave para alto contraste en fondo gris */
    text-align: justify;
    margin: 0;
}

.compliance-text a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    text-decoration-color: var(--precision) !important;
    text-underline-offset: 4px;
    font-weight: 600 !important;
    background-image: none !important;
    transition: var(--transition-smooth) !important;
}

.compliance-text a:hover {
    color: var(--precision) !important;
    text-decoration-color: #FFFFFF !important;
}

.compliance-strong {
    color: #FFFFFF;
    font-weight: 700;
}

/* --- CRÉDITOS Y COPYRIGHT UNIFICADOS --- */
.footer-credits-unified {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(215, 221, 227, 0.7); /* Technical Silver con opacidad */
    line-height: 1.7;
}

.footer-credits-unified p {
    margin: 6px 0;
}

/* Enlaces del diseñador en créditos: invisibles hasta hover para evitar contaminación visual */
.footer-credits-unified a {
    color: rgba(215, 221, 227, 0.85) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    background-image: none !important;
    transition: color 0.3s ease !important;
}

.footer-credits-unified a:hover {
    color: var(--accent) !important;
    background-image: none !important;
}

/* --- ESTILOS DE SUBMENÚ DESPLEGABLE EN EL PIE DE PÁGINA (SUBE HACIA ARRIBA) --- */
.footer-dropdown {
    position: relative;
}

.footer-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #0b1329; /* Fondo azul marino profundo */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem 0;
    list-style: none;
    min-width: 250px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.footer-dropdown:hover .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.footer-dropdown-menu li {
    width: 100%;
    text-align: left;
}

.footer-dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
    color: var(--support) !important;
    white-space: nowrap;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.footer-dropdown-menu a:hover {
    color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.03);
}

/* Resaltado del elemento de menú activo en el pie de página */
.footer-secondary-menu a.active,
.footer-dropdown-menu a.active {
    color: var(--accent) !important;
    font-weight: 700 !important;
}

