/* assets/css/cookie-banner.css */

/* Banner principal */
.rgpd-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid #e0e0e0;
    display: none; /* Se activa por JS */
}

.rgpd-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.rgpd-banner-text {
    flex: 1;
    text-align: left;
    color: #333;
}

.rgpd-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Botones */
.rgpd-btn {
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.rgpd-btn-accept {
    background: #2271b1;
    color: white !important;
}

.rgpd-btn-accept:hover {
    background: #135e96;
}

.rgpd-btn-reject {
    background: #f0f0f0;
    color: #333 !important;
    border: 1px solid #ccc;
}

.rgpd-btn-reject:hover {
    background: #e0e0e0;
}

.rgpd-btn-config {
    background: transparent;
    color: #2271b1 !important;
    border: 1px solid #2271b1;
}

.rgpd-btn-config:hover {
    background: #f0f8ff;
}

/* Modal de Configuración */
.rgpd-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

.rgpd-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.rgpd-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.rgpd-modal-close:hover {
    color: #333;
}

.rgpd-modal-options {
    margin: 20px 0;
}

.rgpd-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rgpd-option label {
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

.rgpd-option input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    margin: 0 !important;
}

.rgpd-option p {
    margin: 8px 0 0 28px !important;
    font-size: 13px !important;
    color: #666 !important;
}

.rgpd-modal-buttons {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .rgpd-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .rgpd-banner-text {
        text-align: center;
    }
    
    .rgpd-banner-buttons {
        justify-content: center;
    }
}
