/* Consentimiento de cookies · MiLanding (19/11/2026). Autocontenido: no depende de los estilos de la página. */
.mlc, .mlc-overlay, .mlc-open { font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; box-sizing: border-box; }
.mlc *, .mlc-overlay *, .mlc-open { box-sizing: border-box; }
.mlc[hidden], .mlc-overlay[hidden], .mlc-open[hidden] { display: none !important; }

/* Banner: abajo a la izquierda; el JS sube --mlc-offset para quedar ENCIMA de la barra fija y del botón de WhatsApp */
.mlc {
    position: fixed; z-index: 90;
    left: max(16px, env(safe-area-inset-left)); bottom: calc(var(--mlc-offset, 16px) + env(safe-area-inset-bottom));
    width: min(560px, calc(100vw - 32px));
    background: #121A12; color: #F2F3EC; border: 1px solid rgba(242, 243, 236, .22); border-radius: 18px;
    padding: 18px 20px; box-shadow: 0 18px 50px rgba(18, 26, 18, .35);
    max-height: calc(100vh - var(--mlc-offset, 16px) - 24px); overflow: auto;
}
.mlc-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mlc-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #D9DFD3; }
.mlc a { color: #B8F23A; text-underline-offset: 3px; }
.mlc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Botones: «Aceptar todas» y «Rechazar» idénticos (misma jerarquía visual); «Configurar» con contorno */
.mlc-btn {
    flex: 1 1 140px; min-height: 44px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    background: #F2F3EC; color: #121A12; border: 2px solid #F2F3EC;
}
.mlc-btn:hover { background: #B8F23A; border-color: #B8F23A; }
.mlc-btn-alt { background: transparent; color: #F2F3EC; border-color: rgba(242, 243, 236, .6); }
.mlc-btn-alt:hover { background: rgba(242, 243, 236, .14); border-color: #F2F3EC; }
.mlc-btn:focus-visible, .mlc-x:focus-visible, .mlc-open:focus-visible, .mlc a:focus-visible, .mlc-cat input:focus-visible { outline: 3px solid #B8F23A; outline-offset: 3px; }

/* Diálogo de preferencias */
.mlc-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(18, 26, 18, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mlc-dialog {
    width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #121A12; color: #F2F3EC;
    border: 1px solid rgba(242, 243, 236, .22); border-radius: 20px; padding: 22px 22px 20px; outline: none;
}
.mlc-dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mlc-dhead h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.mlc-x { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(242, 243, 236, .4); background: transparent; color: #F2F3EC; font-size: 18px; cursor: pointer; flex: none; }
.mlc-x:hover { background: rgba(242, 243, 236, .14); }
.mlc-cat { padding: 14px 0; border-top: 1px solid rgba(242, 243, 236, .18); }
.mlc-cat:first-of-type { margin-top: 14px; }
.mlc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mlc-cat-h label { font-size: 16px; font-weight: 600; }
.mlc-cat p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #C9D1C4; }

/* Interruptores (checkbox role=switch) */
.mlc-cat input[type=checkbox] {
    -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px;
    background: #4A5248; border: 2px solid rgba(242, 243, 236, .55); cursor: pointer;
}
.mlc-cat input[type=checkbox]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #F2F3EC; transition: transform .15s ease; }
.mlc-cat input[type=checkbox]:checked { background: #B8F23A; border-color: #B8F23A; }
.mlc-cat input[type=checkbox]:checked::after { transform: translateX(22px); background: #121A12; }
.mlc-cat input[type=checkbox]:disabled { opacity: .75; cursor: not-allowed; }

/* Botón discreto para reabrir las preferencias */
.mlc-open {
    position: fixed; z-index: 55; left: max(16px, env(safe-area-inset-left)); bottom: calc(var(--mlc-offset, 16px) + env(safe-area-inset-bottom));
    min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    font-size: 14px; font-weight: 600; background: #F2F3EC; color: #121A12; border: 1px solid rgba(18, 26, 18, .45); box-shadow: 0 6px 20px rgba(18, 26, 18, .18);
}
.mlc-open:hover { background: #B8F23A; }

@media (max-width: 480px) { .mlc { padding: 16px; } .mlc-btn { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .mlc-cat input[type=checkbox]::after { transition: none; } }

/* 1/12/2026: Rama pidió quitar el botón flotante «Cookies». El banner de la primera visita sigue igual. Para volver: borrar esta regla (respaldo en /root/backups/milanding-cookies-20261201/). */
.mlc-open, .mlc-open[hidden] { display: none !important; }
