/* Acceso flotante a los canales de contacto */
.contacto-lateral {
    position: fixed;
    z-index: 1100;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font: 15px/1.4 Arial, sans-serif;
    color: #18283b;
}

.contacto-lateral details { position: relative; }

.contacto-lateral summary {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 0;
    list-style: none;
    cursor: pointer;
    border: 1px solid #ffffff40;
    border-radius: 16px;
    background: #050a30;
    color: #fff;
    box-shadow: 0 6px 20px #050a3033;
}

.contacto-lateral summary::-webkit-details-marker { display: none; }
.contacto-lateral[data-fondo="oscuro"] summary { background: #fff; color: #050a30; }
.contacto-lateral summary svg { grid-area: 1 / 1; }
.contacto-lateral .punto-contacto { fill: #e49703; stroke: none; }
.contacto-lateral .icono-cerrar,
.contacto-lateral details[open] .icono-contacto,
.contacto-lateral details[open] .abrir-contacto,
.contacto-lateral details:not([open]) .cerrar-contacto { display: none; }
.contacto-lateral summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.contacto-lateral details[open] .icono-cerrar { display: block; }

.contacto-lateral ul {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    width: min(304px, calc(100vw - 88px));
    max-height: 55vh;
    overflow-y: auto;
    padding: 12px;
    margin: 0;
    list-style: none;
    border: 1px solid #e8e2da;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px #050a3026;
}
.contacto-lateral details:not([open]) ul { display: none; }
.contacto-lateral li:nth-child(-n+2) { grid-column: 1 / -1; }
.contacto-lateral a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #18283b;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contacto-lateral .fila-contacto {
    overflow: hidden;
    border-radius: 10px;
    background: #f7f3ee;
}
.contacto-lateral .fila-contacto a {
    justify-content: center;
    box-sizing: border-box;
    min-height: 0;
    max-height: 80px;
    text-align: center;
}
.contacto-lateral .fila-contacto[data-cubierto] a {
    visibility: hidden;
    max-height: 0;
    padding-block: 0;
}
.contacto-lateral .accion-contacto {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: inherit;
    background: #050a30;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.contacto-lateral .accion-contacto:hover { background: #18283b; }
.contacto-lateral .fila-contacto :focus-visible { outline-offset: -4px; }
.contacto-lateral .accion-contacto[aria-expanded="true"] {
    min-height: 40px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .contacto-lateral .accion-contacto { transition: min-height .22s ease, border-radius .22s ease; }
    .contacto-lateral .fila-contacto a { transition: max-height .22s ease, padding-block .22s ease; }
}
.contacto-lateral li:nth-child(n+3) a { background: #f7f3ee; }
.contacto-lateral a:hover { background: #f1ece4; text-decoration: underline; }
.contacto-lateral svg, footer a svg { flex: 0 0 auto; }
.contacto-lateral :focus-visible { outline: 2px solid #955333; outline-offset: 2px; }
.contacto-lateral summary:focus-visible { outline-color: #050a30; box-shadow: 0 0 0 5px #fff; }
footer a:has(svg) { display: inline-flex; align-items: center; gap: 9px; }
body > footer { padding-bottom: 76px; }
.video-estado { margin: 12px 0 0; }

@media (max-width: 700px) {
    .contacto-lateral {
        top: auto;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        transform: none;
    }
    .contacto-lateral ul {
        top: auto;
        right: 0;
        bottom: 60px;
        transform: none;
        width: min(304px, calc(100vw - 24px));
        max-height: 45vh;
    }
}
