/* =========================================================
   ELGSIS · FOOTER
   Distribución equilibrada en cuatro columnas
   ========================================================= */

.site-footer {
    position: relative;
    background: #082d4a;
    color: rgba(255, 255, 255, .82);
}

/* Mantener un ancho generoso sin alterar contenedores globales */
.site-footer .site-footer__grid,
.site-footer .site-footer__bottom {
    width: min(100% - 48px, 1380px);
    max-width: 1380px;
    margin-inline: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.16fr 1.12fr 1.22fr 1fr;
    gap: clamp(28px, 3.1vw, 52px);
    align-items: start;
    padding-top: 62px;
    padding-bottom: 54px;
}

.site-footer__grid > * {
    min-width: 0;
}

/* Iconos y encabezado enlazado */
.site-footer__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-footer__heading-link { color: #fff !important; }
.site-footer__heading-link:hover { color: #f2b900 !important; }
.site-footer__contact-item { display: flex; align-items: flex-start; gap: 11px; }
.site-footer__icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    fill: none;
    stroke: #f2b900;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Cabeceras de columnas */
.site-footer h2 {
    position: relative;
    margin: 0 0 21px;
    padding-bottom: 13px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.site-footer h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f2b900;
}

/* Marca */
.site-footer__logo {
    margin: 14px 0 19px;
}

.site-footer__logo img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 85px;
}

.site-footer__brand p {
    max-width: 300px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .89rem;
    line-height: 1.72;
}

.site-footer__brand .site-footer__company {
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
}

/* Enlaces simples: sin cajas ni viñetas */
.site-footer a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover {
    color: #f2b900;
}

.site-footer a:focus-visible {
    outline: 2px solid #f2b900;
    outline-offset: 3px;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li + li {
    margin-top: 11px;
}

.site-footer__links a,
.site-footer__links li > span {
    font-size: .88rem;
    line-height: 1.55;
}

.site-footer__links li > span {
    color: rgba(255, 255, 255, .55);
}

/* Dirección, teléfonos y correos */
.site-footer__contact {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: .89rem;
    font-style: normal;
    line-height: 1.65;
}

.site-footer__contact p {
    margin: 0 0 12px;
}

.site-footer__contact a {
    overflow-wrap: anywhere;
}

.site-footer__hint {
    color: rgba(255, 255, 255, .58);
    font-size: .84em;
}

/* Opciones de cada área, con separación sutil */
.site-footer__area-links {
    margin-top: 24px;
    padding-top: 0;
}

.site-footer__area-links li:first-child a {
    color: #fff;
    font-weight: 700;
}

.site-footer__area-links li:first-child a:hover {
    color: #f2b900;
}

/* Enlaces útiles / Servicios */
.site-footer__resource-group + .site-footer__resource-group {
    margin-top: 29px;
}

.site-footer__service-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 11px;
}

.site-footer__service-links li + li {
    margin-top: 0;
}

/* Derechos y crédito */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
}

.site-footer__credit a {
    color: rgba(255, 255, 255, .85);
    font-weight: 700;
}

.site-footer__credit a:hover {
    color: #f2b900;
}

/* Tabletas: dos columnas */
@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 46px;
    }
}

/* Móviles: una columna */
@media (max-width: 650px) {
    .site-footer .site-footer__grid,
    .site-footer .site-footer__bottom {
        width: calc(100% - 36px);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 48px;
        padding-bottom: 44px;
    }

    .site-footer__brand p {
        max-width: none;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 20px;
        padding-bottom: 22px;
    }
}


/* =========================================================
   ACCESOS FLOTANTES GLOBALES · WhatsApp / Volver arriba
   ========================================================= */
.elgsis-floating-tools {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.elgsis-floating-tools__button {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.elgsis-floating-tools__button svg { width: 26px; height: 26px; display: block; }
.elgsis-floating-tools__button--whatsapp { background: #25d366; color: #fff; }
.elgsis-floating-tools__button--top { background: #f0c500; color: #0d2931; }
.elgsis-floating-tools__button:hover { transform: translateY(-3px); box-shadow: 0 9px 25px rgba(0, 0, 0, .27); }
.elgsis-floating-tools__button:focus-visible { outline: 3px solid #0d2931; outline-offset: 3px; }
.elgsis-floating-tools__button[hidden] { display: none !important; }
@media (max-width: 650px) {
    .elgsis-floating-tools { right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); gap: 10px; }
    .elgsis-floating-tools__button { width: 46px; height: 46px; }
    .elgsis-floating-tools__button svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .elgsis-floating-tools__button { transition: none; }
}
