/* Footer global LBB: cierre institucional compartido por todas las páginas públicas. */
.lbb-circular-footer {
    --footer-primary: #014478;
    --footer-deep: #031b4e;
    --footer-accent: #2cafd8;
    --footer-ice: #eef7fa;
    --footer-white: #ffffff;
    --footer-muted: #688094;
    --footer-line: #dce8ee;
    position: relative;
    overflow: hidden;
    padding: 27px 24px 0;
    color: var(--footer-white);
    background: #285f80;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.lbb-circular-footer::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 72px;
    height: 3px;
    content: "";
    background: var(--footer-accent);
    transform: translateX(-50%);
    z-index: 2;
}

/* Fondo institucional: mapa existente como textura suave sin afectar la lectura. */
.lbb-circular-footer::after {
    position: absolute;
    inset: 16px 0 42px;
    content: "";
    background: rgba(255, 255, 255, 0.075);
    -webkit-mask: url("../img/footer.webp") center 46% / min(760px, 70vw) auto no-repeat;
    mask: url("../img/footer.webp") center 46% / min(760px, 70vw) auto no-repeat;
    pointer-events: none;
}

.lbb-circular-footer__inner {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    margin: 0 auto;
    text-align: center;
}

/* Identidad LBB: isotipo central dentro de un contenedor circular. */
.lbb-circular-footer__logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto 17px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    outline: 1px solid transparent;
    outline-offset: 3px;
    transition: border-color 180ms ease, outline-color 180ms ease, transform 180ms ease;
}

.lbb-circular-footer__logo:hover,
.lbb-circular-footer__logo:focus-visible {
    border-color: var(--footer-white);
    outline-color: var(--footer-white);
    transform: translateY(-1px);
}

.lbb-circular-footer__logo img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}

/* Identidad Dorignac: adapta su marca circular sin mezclarla con los datos de LBB. */
.lbb-circular-footer--dorignac .lbb-circular-footer__logo img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

/* Navegación del footer: enlaces breves con indicador de interacción. */
.lbb-circular-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lbb-circular-footer__nav a {
    position: relative;
    color: var(--footer-white);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.lbb-circular-footer__nav a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--footer-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.lbb-circular-footer__nav a:hover::after,
.lbb-circular-footer__nav a:focus-visible::after {
    transform: scaleX(1);
}

/* Contactos LBB: información real en una línea adaptable. */
.lbb-circular-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 25px;
    margin: 20px 0 0;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.lbb-circular-footer__contacts a,
.lbb-circular-footer__contacts > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e3f0f5;
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.lbb-circular-footer__contacts i {
    color: #7dd3ed;
}

.lbb-circular-footer__contacts a:hover,
.lbb-circular-footer__contacts a:focus-visible {
    color: var(--footer-white);
    transform: translateY(-1px);
}

/* Redes sociales: controles compactos integrados a los datos de contacto. */
.lbb-circular-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 2px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.lbb-circular-footer__social a {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--footer-white);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.lbb-circular-footer__social i {
    color: inherit;
}

.lbb-circular-footer__social a:hover,
.lbb-circular-footer__social a:focus-visible {
    border-color: var(--footer-white);
    color: var(--footer-primary);
    background: var(--footer-white);
    transform: translateY(-2px);
}

/* Cierre legal: franja discreta de ancho completo. */
.lbb-circular-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 12px max(24px, calc((100vw - 1080px) / 2));
    color: #dbeaf1;
    background: #174b6b;
    font-size: 0.72rem;
    line-height: 1.45;
}

.lbb-circular-footer__bottom p {
    margin: 0;
}

.lbb-circular-footer__credits {
    text-align: right;
}

.lbb-circular-footer__credits a {
    color: var(--footer-white);
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 3px;
}

@media (max-width: 700px) {
    .lbb-circular-footer {
        padding-top: 24px;
    }

    .lbb-circular-footer__nav ul {
        gap: 12px 20px;
    }

    .lbb-circular-footer__contacts {
        align-items: center;
        flex-direction: column;
        gap: 11px;
        margin-top: 18px;
        padding: 13px 0;
    }

    .lbb-circular-footer__social {
        margin: 2px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        border-left: 0;
    }

    .lbb-circular-footer__bottom {
        align-items: center;
        flex-direction: column;
        /* Reserva inferior para los controles flotantes del index en pantallas táctiles. */
        padding: 12px 72px 72px;
        text-align: center;
    }

    .lbb-circular-footer__credits {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .lbb-circular-footer__nav ul {
        column-gap: 17px;
    }

    .lbb-circular-footer__contacts a {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbb-circular-footer *,
    .lbb-circular-footer *::before,
    .lbb-circular-footer *::after {
        transition-duration: 0.01ms !important;
    }
}
