/* ======================================================
   GX115 · Pie de página con el diseño de la portada (gammaxg.com)
   Medidas, colores y efectos copiados del pie de la portada (#footer de index.php).
   Lo usan las páginas informativas (cronograma, testimonios, legales) y las 8 guías.
   Prefijo gxp- para no chocar con los estilos de cada página.
   ====================================================== */

.gxpie {
    position: relative; z-index: 20;
    box-sizing: border-box; width: 100%;
    margin: auto 0 0; /* abajo del todo en páginas cortas */
    padding: 130px 10% 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #0a142c;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.gxpie *, .gxpie *::before, .gxpie *::after { box-sizing: border-box; }
.gxpie p { margin: 0; }
.gxpie a { text-decoration: none; }

/* ---------- Sello GAMMA VENTURE GROUP (arriba a la izquierda) ---------- */
.gxp-venture {
    position: absolute; left: 10%; top: 55px; z-index: 90;
    display: flex; align-items: center; gap: 14px;
    text-align: left; cursor: default;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
}
.gxp-venture-bar {
    width: 2px; height: 30px; border-radius: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, rgba(59, 130, 246, .1) 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, .5);
    transition: all .4s ease;
}
.gxp-venture-info { display: flex; flex-direction: column; gap: 4px; }
.gxp-venture-kicker {
    font-size: .5rem; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
    color: #94a3b8; transition: color .3s ease;
}
.gxp-venture-brand {
    font-size: .8rem; font-weight: 300; letter-spacing: 3px; text-transform: uppercase;
    color: #e6e6e6; transition: all .3s ease; white-space: nowrap;
}
.gxp-venture-brand b { font-weight: 600; color: #848181; }
.gxp-venture:hover .gxp-venture-bar { height: 36px; box-shadow: 0 0 18px #3b82f6; }
.gxp-venture:hover .gxp-venture-kicker { color: #e6e6e6; }
.gxp-venture:hover .gxp-venture-brand { color: #fff; text-shadow: 0 0 15px rgba(59, 130, 246, .35); }
.gxp-venture:hover .gxp-venture-brand b { color: #e6e6e6; text-shadow: 0 0 15px rgba(59, 130, 246, .8); }

/* ---------- Libro + GUÍAS + LEGALES (arriba a la derecha) ---------- */
.gxp-menus {
    position: absolute; right: 10%; top: 60px; z-index: 100;
    display: flex; align-items: center; justify-content: flex-end; gap: 25px;
}
.gxp-libro {
    display: flex; align-items: center; gap: 8px; min-height: 44px;
    color: #94a3b8; font-size: .55rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    opacity: .6; transition: all .4s cubic-bezier(.23, 1, .32, 1);
}
.gxp-libro i { font-size: 1rem; color: inherit; transition: .4s; }
.gxp-libro:hover, .gxp-libro:focus-visible { opacity: 1; color: #fff; outline: none; }
.gxp-libro:hover i, .gxp-libro:focus-visible i { color: #3b82f6; text-shadow: 0 0 12px rgba(59, 130, 246, .6); transform: scale(1.1); }

.gxp-trigger { position: relative; display: inline-block; }
.gxp-btn {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    margin: 0; padding: 12px 22px; border-radius: 50px; cursor: pointer;
    font-family: inherit; font-size: .6rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; line-height: 1;
    color: #fff; background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    transition: .4s;
}
.gxp-btn i { color: #3b82f6; font-size: .7rem; }
.gxp-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }

.gxp-content {
    position: absolute; right: 0; bottom: 100%; padding-bottom: 15px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: .4s cubic-bezier(.4, 0, .2, 1);
}
.gxp-menu {
    display: flex; flex-direction: column; gap: 8px; min-width: 180px; padding: 12px;
    background: rgba(10, 20, 44, .95); border: 1px solid #3b82f6; border-radius: 20px;
    -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
    box-shadow: 0 -15px 40px rgba(59, 130, 246, .2);
}
.gxp-trigger-guias .gxp-menu { min-width: 250px; }
.gxp-menu a {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 12px 15px; border-radius: 12px; text-align: left;
    color: #fff; font-size: .6rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    transition: .3s;
}
.gxp-menu a i { color: #3b82f6; opacity: .8; width: 16px; text-align: center; transition: .3s; }
.gxp-menu a:hover, .gxp-menu a:focus-visible { background: rgba(59, 130, 246, .15); color: #3b82f6; outline: none; }
.gxp-menu a:hover i { opacity: 1; }
.gxp-menu a[aria-current="page"] { color: #3b82f6; background: rgba(59, 130, 246, .08); }

/* Abierto: al pasar el mouse (computadora), con el teclado o al tocar el botón (celular) */
@media (hover: hover) {
    .gxp-trigger:hover .gxp-content { opacity: 1; visibility: visible; transform: translateY(0); }
    .gxp-trigger:hover .gxp-btn { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, .2); background: rgba(59, 130, 246, .1); color: #3b82f6; }
}
.gxp-trigger:focus-within .gxp-content,
.gxp-trigger.is-open .gxp-content { opacity: 1; visibility: visible; transform: translateY(0); }
.gxp-trigger:focus-within .gxp-btn,
.gxp-trigger.is-open .gxp-btn { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, .2); background: rgba(59, 130, 246, .1); color: #3b82f6; }
.gxp-trigger.is-closed .gxp-content { opacity: 0 !important; visibility: hidden !important; }

/* ---------- Centro: aviso, copyright y redes ---------- */
.gxp-aviso {
    max-width: 640px; margin: 0 auto 34px !important;
    font-size: .75rem; line-height: 1.7; font-weight: 400; color: #94a3b8;
}
.gxp-aviso strong { color: #3b82f6; font-weight: 600; }
.gxp-act { margin: -18px auto 22px !important; font-size: .7rem; color: #94a3b8; letter-spacing: .5px; }
.gxp-contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0 auto 30px; }
.gxp-contacto a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #cbd5e1; font-size: .8rem; transition: color .3s; }
.gxp-contacto a:hover { color: #fff; }
.gxp-contacto i { color: #3b82f6; }
.gxp-copy { opacity: .3; letter-spacing: 5px; font-size: .7rem; line-height: 1.6; margin: 0 0 20px !important; text-transform: uppercase; }
.gxp-redes { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.gxp-social {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1);
    color: #fff; font-size: 1.3rem;
    transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
}
.gxp-social:hover, .gxp-social:focus-visible {
    border-color: #3b82f6; background: #3b82f6; color: #fff; outline: none;
    transform: translateY(-8px) rotate(360deg); box-shadow: 0 0 25px #3b82f6;
}

/* ---------- Tablet y celular (como la portada en celular) ---------- */
@media (max-width: 1024px) {
    .gxpie { padding: 60px 5% 40px; display: flex; flex-direction: column; align-items: center; }
    .gxp-menus { order: 1; }
    .gxp-centro { order: 2; width: 100%; }
    .gxp-venture { order: 3; }
    .gxp-menus {
        position: relative; right: auto; top: auto;
        justify-content: center; gap: 20px; margin-bottom: 40px;
    }
    .gxp-content { right: 50%; transform: translateX(50%) translateY(-10px); }
    .gxp-trigger:focus-within .gxp-content,
    .gxp-trigger.is-open .gxp-content { transform: translateX(50%) translateY(0); }
    .gxp-venture {
        position: relative; left: auto; top: auto;
        justify-content: center; margin-top: 30px;
    }
}
@media (max-width: 1024px) and (hover: hover) {
    .gxp-trigger:hover .gxp-content { transform: translateX(50%) translateY(0); }
}
@media (max-width: 768px) {
    .gxp-libro span { display: none; }
    .gxp-libro i { font-size: 1.2rem; }
    .gxp-libro { opacity: .8; padding: 0 6px; }
    .gxp-btn { padding: 12px 18px; letter-spacing: 3px; }
    .gxp-menus { gap: 14px; }
    .gxp-aviso { font-size: .72rem; }
    .gxp-copy { font-size: .6rem; letter-spacing: 3px; line-height: 1.5; }
    .gxp-redes { gap: 16px; }
    .gxp-venture-bar { height: 22px; }
    .gxp-venture-kicker { font-size: .45rem; letter-spacing: 2.5px; }
    .gxp-venture-brand { font-size: .6rem; letter-spacing: 2px; }
}
@media (max-width: 360px) {
    .gxp-menus { gap: 8px; }
    .gxp-btn { padding: 12px 14px; letter-spacing: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .gxp-social:hover, .gxp-social:focus-visible { transform: none; }
}

/* Blindaje: algunas páginas (legales) dan estilos propios a todos los párrafos y enlaces */
.gxpie .gxp-centro, .gxpie .gxp-centro p {
    text-align: center !important; margin-left: auto !important; margin-right: auto !important;
    text-indent: 0 !important; float: none !important;
}
.gxpie .gxp-aviso { font-size: .75rem !important; line-height: 1.7 !important; color: #94a3b8 !important; max-width: 640px !important; }
.gxpie .gxp-act { font-size: .7rem !important; color: #94a3b8 !important; }
.gxpie .gxp-copy { font-size: .7rem !important; color: #fff !important; }
@media (max-width: 768px) {
    .gxpie .gxp-aviso { font-size: .72rem !important; }
    .gxpie .gxp-copy { font-size: .6rem !important; }
}

/* Mientras un menú está abierto, el pie se pone por encima del contenido de la página
   (así el menú, que abre hacia arriba, no queda tapado). */
.gxpie.is-menu-open,
.gxpie:has(.gxp-trigger:hover),
.gxpie:has(.gxp-trigger:focus-within),
.gxpie:has(.gxp-trigger.is-open) { z-index: 999; }

/* Tablet y celular: el menú se centra en la pantalla (no en el botón), así nunca se sale por los costados */
@media (max-width: 1024px) {
    .gxp-menus { position: relative; }
    .gxp-trigger { position: static; }
    .gxp-content { right: auto; left: 50%; transform: translateX(-50%) translateY(-10px); max-width: calc(100vw - 24px); }
    .gxp-trigger:focus-within .gxp-content,
    .gxp-trigger.is-open .gxp-content { transform: translateX(-50%) translateY(0); }
    .gxp-menu { max-width: calc(100vw - 24px); }
}
@media (max-width: 1024px) and (hover: hover) {
    .gxp-trigger:hover .gxp-content { transform: translateX(-50%) translateY(0); }
}

/* GX121: menú hacia abajo cuando arriba no hay espacio (lo decide gx-pie.js) */
.gxp-trigger.gxp-abajo .gxp-content { bottom: auto; top: 100%; padding-bottom: 0; padding-top: 15px; transform: translateY(10px); }
.gxp-trigger.gxp-abajo.is-open .gxp-content, .gxp-trigger.gxp-abajo:focus-within .gxp-content { transform: translateY(0); }
@media (hover: hover) { .gxp-trigger.gxp-abajo:hover .gxp-content { transform: translateY(0); } }
.gxp-trigger.gxp-abajo .gxp-menu { box-shadow: 0 15px 40px rgba(59, 130, 246, .2); }
