/* ========================================
   Cookie Consent Styles (CMP)
   ======================================== */

/* Banner Fijo Inferior */
#simple-cookie-banner {
    display: none;
    /* Oculto por defecto, JS lo muestra */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#simple-cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1 1 500px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #4ebcd4;
    /* Cyan corporativo */
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

#btn-accept-cookies {
    background-color: #25d366;
    /* Verde "Seguro/Aceptar" o Cyan corporativo */
    color: white;
}

#btn-accept-cookies:hover {
    background-color: #20b85a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

#btn-reject-cookies {
    background-color: transparent;
    border: 1px solid #444;
    color: #aaa;
}

#btn-reject-cookies:hover {
    border-color: #666;
    color: white;
}

/* Botón Flotante Configuración */
#cookie-config-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 9998;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#cookie-config-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    opacity: 0.7;
}

#cookie-config-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#cookie-config-btn:hover svg {
    opacity: 1;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-text {
        font-size: 0.85rem;
        width: 100%;
    }

    .cookie-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Botones al 50% cada uno */
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        /* Area de toque mas grande */
    }

    #cookie-config-btn {
        bottom: 80px;
        /* Subir boton flotante para no tapar contenido */
        left: 15px;
    }
}