/**
 * ESTILOS DEL BANNER DE COOKIES
 * Conforme RGPD - Kambalache
 */

/* Overlay oscuro de fondo */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Contenedor principal del banner */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: bottom 0.4s ease;
}

#cookie-banner.cookie-banner-visible {
    bottom: 0;
}

#cookie-banner.cookie-banner-visible .cookie-banner-overlay {
    opacity: 1;
}

/* Contenido del banner */
.cookie-banner-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
    z-index: 10000;
}

/* Header del banner */
.cookie-banner-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5A 100%);
    color: white;
    padding: 20px 30px;
    border-bottom: 3px solid #FF5722;
}

.cookie-banner-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Cuerpo del banner */
.cookie-banner-body {
    padding: 30px;
    color: #333;
    line-height: 1.6;
}

.cookie-banner-body p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

/* Configuración de cookies */
.cookie-config {
    max-height: 400px;
    overflow-y: auto;
}

.cookie-type {
    background: #f8f8f8;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

.cookie-type-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-type-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.cookie-type-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-type-header label {
    margin: 0;
    cursor: pointer;
    font-size: 16px;
}

.cookie-type-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    padding-left: 32px;
}

/* Footer del banner */
.cookie-banner-footer {
    padding: 20px 30px;
    background: #f8f8f8;
    border-top: 2px solid #eee;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botones */
.btn-cookie {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cookie:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-cookie-aceptar {
    background: #4CAF50;
    color: white;
}

.btn-cookie-aceptar:hover {
    background: #45a049;
}

.btn-cookie-rechazar {
    background: #f44336;
    color: white;
}

.btn-cookie-rechazar:hover {
    background: #da190b;
}

.btn-cookie-configurar {
    background: #2196F3;
    color: white;
}

.btn-cookie-configurar:hover {
    background: #0b7dda;
}

/* Links del footer */
.cookie-banner-links {
    padding: 15px 30px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.cookie-banner-links a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

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

/* Botón flotante para reabrir configuración */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background: #FF5722;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-banner-header {
        padding: 15px 20px;
    }
    
    .cookie-banner-header h3 {
        font-size: 20px;
    }
    
    .cookie-banner-body {
        padding: 20px;
    }
    
    .cookie-banner-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        padding: 12px 20px;
    }
    
    .cookie-type {
        padding: 15px;
    }
    
    .cookie-settings-btn {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

/* Scrollbar personalizada para la configuración */
.cookie-config::-webkit-scrollbar {
    width: 8px;
}

.cookie-config::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cookie-config::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

.cookie-config::-webkit-scrollbar-thumb:hover {
    background: #FF5722;
}
