/* ==============================
   BANNER DE COOKIES
   ============================== */

.aviso-cookies {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    max-width: 520px;
    width: calc(100% - 40px);
    background: #ffffff;
    color: #333;
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 99999;

    /* estado oculto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.3s ease;
}

.aviso-cookies.mostrar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* ==============================
   CONTENIDO
   ============================== */

.aviso-cookies .galleta {
    width: 40px;
    margin-bottom: 10px;
}

.aviso-cookies .titulo {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.aviso-cookies .parrafo {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* ==============================
   BOTONES
   ============================== */

.aviso-cookies .boton {
    display: inline-block;
    margin: 5px 6px 0 0;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.aviso-cookies .boton.aceptar {
    background: #ff6b00;
    color: #fff;
}

.aviso-cookies .boton.rechazar {
    background: #ddd;
    color: #333;
}

.aviso-cookies .boton.configurar {
    background: transparent;
    color: #ff6b00;
    text-decoration: underline;
}

/* ==============================
   ENLACE
   ============================== */

.aviso-cookies .enlace {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #555;
}

/* ==============================
   FONDO OSCURO
   ============================== */

.fondo-aviso-cookies {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: none;
}

.fondo-aviso-cookies.mostrar {
    display: block;
}

/* ==============================
   MODAL CONFIGURACIÓN
   ============================== */

.modal-cookies {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.modal-cookies.activo {
    display: flex;
}

.modal-cookies .contenido-modal {
    background: #fff;
    max-width: 500px;
    width: calc(100% - 40px);
    padding: 25px;
    border-radius: 12px;
}

.modal-header-cookies {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cerrar-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

