/* =========================================================
   00 - BASE
   Rutas: todas las páginas
   (familia elegida en inc/00-cargador.php)
   Traslado sin cambios de diseño (lote L-2026-10-17-ekipa-recursos-traslado):
   copia literal del fragmento 11 de Code Snippets «Pie de pagina» (alcance footer-content), primer <style>,
   servido el 2026-10-17, sha256 7095565ecabf6701e880eb64f1b8e9440c22feb64014c28a6fa907fa119f4f64.
   copia literal del fragmento 12 de Code Snippets «BOTÓN WHATSAPP FLOTANTE GLOBAL EKIPA» (footer-content), su <style>,
   servido el 2026-10-17, sha256 221b3b5263d84a0d14260b2c54353fcdb374fb1234bfbc9ecad0d36dd2f76076.
   El origen se vacía en un lote posterior.
   ========================================================= */

/* 1. TRAMPA DE CONVERSIÓN (PRE-FOOTER B2B) */
.ekp-prefooter {
    background-color: #f97316;
    padding: 50px 20px;
    text-align: center;
    color: #ffffff;
}

.ekp-prefooter-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ekp-prefooter h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
}

.ekp-prefooter p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.ekp-prefooter-btn {
    background-color: #111827;
    color: #ffffff !important;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.ekp-prefooter-btn:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
}

/* 2. FOOTER PRINCIPAL */
.ekp-footer-light {
    background-color: #ffffff;
    color: #111827;
    padding: 70px 20px 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border-top: 1px solid #e5e7eb;
}

.ekp-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.ekp-col-title {
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ekp-footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
    display: block;
}

.ekp-brand-text {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 20px;
}

.ekp-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ekp-footer-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ekp-footer-list a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.ekp-footer-list a:hover {
    text-decoration: underline !important;
    color: #f97316 !important;
}

/* ENLACE DESACTIVADO */
.ekp-footer-disabled-text {
    color: #6b7280;
    font-weight: 700;
    cursor: not-allowed;
}

/* ICONOS */
.ekp-icon {
    color: #f97316;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.ekp-icon-link {
    color: #f97316;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.ekp-icon-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #25D366;
    flex-shrink: 0;
}

.ekp-link-ruta {
    text-decoration: underline !important;
    font-weight: 600;
    color: #111827 !important;
    display: inline-block;
    margin-left: 27px;
    margin-top: -5px;
}

.ekp-link-ruta:hover {
    color: #f97316 !important;
}

/* 3. BARRA INFERIOR */
.ekp-footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
}

.ekp-footer-bottom a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
}

.ekp-footer-bottom a:hover {
    color: #111827;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .ekp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ekp-footer-grid > div:first-child {
        grid-column: 1 / -1;
        margin-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .ekp-footer-grid {
        grid-template-columns: 1fr;
    }

    .ekp-prefooter h3 {
        font-size: 1.5rem;
    }

    .ekp-prefooter-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .ekp-footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* BOTÓN WHATSAPP FLOTANTE GLOBAL EKIPA */
.ekp-wa-float {
    position: fixed;
    bottom: 80px; /* Elevado para no tapar avisos legales */
    right: 25px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ekp-wa-float:hover {
    background-color: #20b858;
    transform: scale(1.1);
}

/* Efecto de pulso para atraer la mirada sin ser molesto */
.ekp-wa-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: ekp-wa-pulse 2s infinite;
}

@keyframes ekp-wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Ajuste táctico para móviles */
@media (max-width: 768px) {
    .ekp-wa-float { 
        bottom: 70px; /* Elevado en móvil */
        right: 20px; 
        width: 55px; 
        height: 55px; 
    }
}

/* ---------------------------------------------------------
   Antes style= del pie (fragmento 11)
   Lote L-2026-10-18-ekipa-recursos-vaciado: mismo valor que el atributo; !important conserva la
   prioridad que tenía el style= sobre las demás reglas.
   --------------------------------------------------------- */
.ekp-footer-separado{margin-top:10px!important}
