
/*
 * SANUS V2 — Aviso de cookies
 * Diseño discreto y responsive.
 */

#sanus-cookie-banner[hidden] {
    display: none !important;
}

.sanus-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.07);
    font-family: inherit;
}

.sanus-cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sanus-cookie-message {
    flex: 1;
    min-width: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.sanus-cookie-message strong {
    display: block;
    font-size: 14px;
    color: #123c4a;
    margin-bottom: 2px;
}

.sanus-cookie-message p {
    margin: 0;
}

.sanus-cookie-message a {
    color: #087f91;
    text-decoration: underline;
}

.sanus-cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sanus-cookie-actions button {
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sanus-cookie-actions button:hover {
    background: #f1f5f9;
}

#sanus-cookie-accept {
    background: #087f91;
    border-color: #087f91;
    color: #ffffff;
}

#sanus-cookie-accept:hover {
    background: #066b7a;
}

/* Adaptación a tablets y celulares */
@media (max-width: 767px) {
    .sanus-cookie-content {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sanus-cookie-message {
        font-size: 12px;
    }

    .sanus-cookie-message strong {
        font-size: 13px;
    }

    .sanus-cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sanus-cookie-actions button {
        padding: 10px 5px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sanus-cookie-actions button {
        transition: none;
    }
}


/*
 * SANUS V2 — Panel de preferencias de cookies
 */

#sanus-cookie-preferences[hidden] {
    display: none !important;
}

.sanus-cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
}

.sanus-cookie-preferences-content {
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    color: #334155;
}

.sanus-cookie-preferences-content h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
    color: #123c4a;
}

.sanus-cookie-preferences-content > p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.6;
}

.sanus-cookie-option {
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
}

.sanus-cookie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.sanus-cookie-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #087f91;
}

.sanus-cookie-option p {
    margin: 6px 0 0 27px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.sanus-cookie-preferences-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sanus-cookie-preferences-actions button {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #087f91;
    border-radius: 6px;
    background: #087f91;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#sanus-cookie-close {
    background: #ffffff;
    color: #087f91;
}

.sanus-cookie-preferences-actions button:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .sanus-cookie-preferences {
        padding: 12px;
    }

    .sanus-cookie-preferences-content {
        padding: 20px;
max-height: calc(100vh - 24px);
    }

    .sanus-cookie-preferences-content h2 {
        font-size: 19px;
    }
}


/* SANUS V2 — Prioridad visual del consentimiento */

/* Aviso por encima del botón flotante de WhatsApp */
#sanus-cookie-banner {
    position: fixed !important;
    z-index: 2147483646 !important;
}

/* Panel de preferencias por encima del aviso */
#sanus-cookie-preferences {
    position: fixed !important;
    z-index: 2147483647 !important;
}

/* Respetar el atributo hidden */
#sanus-cookie-banner[hidden],
#sanus-cookie-preferences[hidden] {
    display: none !important;
}
