/* Banner de consentimiento de cookies — portado de nacaia.com (assets/css/cookies.css).
   El acento usa el dorado del tema (--nca-gold, que es el mismo #CE9B53 de nacaia.com). */

/* Modal y diseño principal */
.cookie-modal {
    display: none; /* Oculto por defecto; gdpr.js lo muestra si no hay decisión */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cookie-modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cookie-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cookie-logo {
    height: 34px;
    width: auto;
}

.cookie-modal h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1b2233;
}

.cookie-modal p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

/* Opciones de cookies */
.cookie-options {
    text-align: left;
    margin-bottom: 15px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.hidden {
    display: none;
}

/* Interruptor de encendido/apagado */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.cookie-modal input:checked + .slider {
    background-color: var(--nca-gold, #CE9B53);
}

.cookie-modal input:checked + .slider:before {
    transform: translateX(20px);
}

/* Botones */
.cookie-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    background-color: var(--nca-gold, #CE9B53);
    color: white;
}

.cookie-btn.deny {
    background-color: #8a8f9c;
}

.cookie-btn.manage {
    background-color: #555;
}

/* Enlaces */
.cookie-links {
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-links a {
    text-decoration: none;
    color: var(--nca-gold, #CE9B53);
}

.cookie-links a:hover {
    text-decoration: underline;
}

/* Botón discreto para reabrir el modal */
.consent-button {
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: var(--nca-gold, #CE9B53);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 5px 15px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(60%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consent-button:hover {
    transform: translateY(0);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
}

.consent-text {
    display: block;
    text-align: center;
    white-space: nowrap;
}
