/* Banner de consentimiento de cookies (lw-consent.js).
   En archivo propio para poder cargarlo también desde el blog. */
.lw-consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 100000;
    width: calc(100% - 32px);
    max-width: 720px;
    padding: 20px 22px;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(10, 22, 94, .18);
    color: #464956;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    transform: translateX(-50%);
}
.lw-consent[hidden],
.lw-consent [hidden] { display: none !important; }

.lw-consent__texto {
    margin: 0 30px 14px 0;
    color: #464956;
    font-size: 14px;
}
.lw-consent__enlace {
    color: #012977;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lw-consent__estado {
    margin: 0 0 12px;
    color: #0A165E;
    font-size: 13px;
    font-weight: 600;
}

/* Dos columnas iguales: los botones miden lo mismo aunque un texto sea más largo */
.lw-consent__acciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
/* Aceptar y Rechazar comparten clase: misma prominencia */
.lw-consent__btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 2px solid #0A165E;
    border-radius: 10px;
    background: #0A165E;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.lw-consent__btn:hover {
    border-color: #012977;
    background: #012977;
}

.lw-consent__cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #464956;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.lw-consent__cerrar:hover { background: #f1f3f8; }

.lw-consent__btn:focus-visible,
.lw-consent__cerrar:focus-visible,
.lw-consent__enlace:focus-visible,
[data-lw-consent-abrir]:focus-visible {
    outline: 3px solid #7C3AFF;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .lw-consent {
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: 50vh;
        padding: 16px 16px 18px;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
    }
    .lw-consent__texto { font-size: 13.5px; }
}
