/* =======================================
   ESTILOS DEL BANNER DE COOKIES
   Encapsulados en #wcr-cookie-banner
======================================= */
#wcr-cookie-banner {
    position: fixed;
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: 500px;
    background-color: rgba(50, 50, 50, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    font-family: Arial, sans-serif;
    padding: 14px 16px;
    display: none;  /* ✅ CAMBIA ESTO */
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}


#wcr-cookie-banner .wcr-banner-text {
    line-height: 1.4;
    margin-block: 14px;
}

#wcr-cookie-banner .wcr-banner-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

#wcr-cookie-banner .wcr-btn-primary,
#wcr-cookie-banner .wcr-btn-outline {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

#wcr-cookie-banner .wcr-btn-primary {
    background-color: #0073aa;
    color: #fff;
    border: none;
}

#wcr-cookie-banner .wcr-btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

#wcr-cookie-banner .wcr-close-banner {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* =======================================
   ICONO FLOTANTE DE CONFIGURACIÓN
======================================= */
#wcr-cookie-icon {
    position: fixed;
    bottom: 25px;
    right: 90px; /* deja espacio al scroll-top */
    background-color: #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* =======================================
   MODAL DE CONFIGURACIÓN DE COOKIES
======================================= */
#wcr-cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* fondo negro suave */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Modal visible */
#wcr-cookie-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Caja */
#wcr-cookie-modal .wcr-modal-content {
    background: #fefefe;
    border-radius: 10px;
    max-width: 420px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

#wcr-cookie-modal .wcr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

#wcr-cookie-modal .wcr-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

#wcr-cookie-modal .wcr-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#wcr-cookie-modal .wcr-modal-body label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

#wcr-cookie-modal .wcr-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

#wcr-cookie-modal .wcr-btn-primary,
#wcr-cookie-modal .wcr-btn-outline {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

#wcr-cookie-modal .wcr-btn-primary {
    background-color: #0073aa;
    color: #fff;
    border: none;
}

#wcr-cookie-modal .wcr-btn-outline {
    background-color: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

#wcr-cookie-modal .wcr-modal-body input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* FORZAR color de enlaces SOLO dentro del banner de cookies */
#wcr-cookie-banner a,
#wcr-cookie-banner a:where(:not(.wp-element-button)),
#wcr-cookie-banner a:visited {
    color: #ffffff;
    text-decoration: underline;
}

#wcr-cookie-banner a:hover,
#wcr-cookie-banner a:focus {
    color: #dddddd;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 480px) {
    #wcr-cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px 14px;
        font-size: 13px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    #wcr-cookie-banner .wcr-banner-buttons {
        flex-direction: column;
        gap: 6px;
    }

    #wcr-cookie-modal .wcr-modal-content {
        width: 95%;
        padding: 16px;
        font-size: 13px;
    }

    #wcr-cookie-modal .wcr-modal-body label {
        font-size: 13px;
        gap: 5px;
    }

    #wcr-cookie-modal .wcr-btn-primary,
    #wcr-cookie-modal .wcr-btn-outline {
        padding: 8px 16px;
        font-size: 13px;
    }

    #wcr-cookie-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 20px;
    }
}