/**
 * Estilos Principales para Global Expeditions Footer
 * Plugin: global-expeditions-footer
 * Versión: 1.2.0
 *
 * Paleta de colores oficial:
 * - Verde azulado principal (fondo global): #26786F
 * - Verde azulado base (barra inferior): #1F6961
 * - Naranja principal (acentos y subrayados): #F58220
 * - Naranja hover (interacciones): #FF7900
 * - Celeste de acento / iconos: #55BFEA
 * - Blanco puro: #FFFFFF
 * - Blanco hielo secundario (textos legibles): #F1F5F9
 * - Gris suave / subtítulos: #E2E8F0
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL DEL FOOTER
   ========================================================================== */
.site-footer {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ge-custom-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #26786F;
    color: #F1F5F9;
    position: relative;
    width: 100%;
    clear: both;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Línea de acento en la parte superior del footer */
.ge-footer__top-accent {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #F58220 0%, #FF7900 50%, #55BFEA 100%);
    display: block;
}

.ge-footer__container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 60px 24px 50px 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. CUADRÍCULA DE 4 COLUMNAS
   ========================================================================== */
.ge-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    box-sizing: border-box;
}

.ge-footer__col {
    box-sizing: border-box;
    min-width: 0;
}

/* ==========================================================================
   3. COLUMNA 1: MARCA Y CONTACTO
   ========================================================================== */
.ge-footer__brand-wrap {
    margin-bottom: 26px;
}

.ge-footer__logo-link {
    display: inline-block;
    text-decoration: none !important;
    outline: none;
}

.ge-footer__logo-link:focus-visible {
    outline: 2px solid #55BFEA;
    outline-offset: 4px;
    border-radius: 4px;
}

.ge-footer__logo {
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.ge-footer__tagline {
    font-size: 14.5px !important;
    color: #E2E8F0 !important;
    margin: 12px 0 0 0 !important;
    font-style: italic;
    line-height: 1.45 !important;
}

.ge-footer__heading {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 8px;
    line-height: 1.3 !important;
}

/* Subrayado decorativo naranja bajo los encabezados */
.ge-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: #F58220;
    border-radius: 2px;
}

.ge-footer__contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.ge-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
    color: #F1F5F9;
    line-height: 1.4;
    word-break: break-word;
}

.ge-footer__contact-icon {
    color: #55BFEA;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ge-footer__contact-text {
    color: #F1F5F9;
}

.ge-footer__contact-link {
    color: #F1F5F9 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
    outline: none;
}

.ge-footer__contact-link:hover {
    color: #F58220 !important;
}

.ge-footer__contact-link:focus-visible {
    outline: 2px solid #55BFEA;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   4. COLUMNAS DE NAVEGACIÓN (DESTINOS, EXPERIENCIAS, LEGALES)
   ========================================================================== */
.ge-footer__nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ge-footer__nav-link {
    color: #F1F5F9 !important;
    text-decoration: none !important;
    font-size: 14.5px;
    line-height: 1.35;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
    outline: none;
}

.ge-footer__nav-link:hover {
    color: #F58220 !important;
    transform: translateX(4px);
}

.ge-footer__nav-link:focus-visible {
    outline: 2px solid #55BFEA;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   5. BARRA INFERIOR (COPYRIGHT Y ENLACES LEGALES SECUNDARIOS)
   ========================================================================== */
.ge-footer__bottom {
    background-color: #1F6961;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 22px 0;
    width: 100%;
    box-sizing: border-box;
}

.ge-footer__bottom-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ge-footer__copyright {
    font-size: 13.5px !important;
    color: #E2E8F0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.ge-footer__bottom-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ge-footer__bottom-link {
    font-size: 13.5px;
    color: #E2E8F0 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
    outline: none;
}

.ge-footer__bottom-link:hover {
    color: #F58220 !important;
}

.ge-footer__bottom-link:focus-visible {
    outline: 2px solid #55BFEA;
    outline-offset: 2px;
    border-radius: 2px;
}

.ge-footer__bottom-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

/* ==========================================================================
   6. PREVENCIÓN SEGURA DE DUPLICADOS CON EL TEMA
   ========================================================================== */
.site-footer:has(.ge-custom-footer) > .site-info,
.site-footer:has(.ge-custom-footer) > .footer-widgets,
.ge-custom-footer ~ .site-info,
.ge-custom-footer ~ .footer-widgets {
    display: none !important;
}

/* ==========================================================================
   7. RESPONSIVE / ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 992px) {
    .ge-footer__container {
        padding: 50px 20px 40px 20px;
    }

    .ge-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 32px;
    }

    .ge-footer__col--brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .ge-footer__container {
        padding: 40px 16px 30px 16px;
    }

    .ge-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ge-footer__col--brand {
        grid-column: span 1;
    }

    .ge-footer__heading {
        margin-bottom: 14px !important;
    }

    .ge-footer__bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

/* ==========================================================================
   8. PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ge-footer__nav-link,
    .ge-footer__contact-link,
    .ge-footer__bottom-link {
        transition: none !important;
        transform: none !important;
    }
}
