/* ============================================================
   cookie-consent.css - Estilos para el banner de cookies
   ============================================================ */

/* Banner de cookies */
.cookie-banner {
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cookie-banner button {
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-banner button:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.cookie-banner button:active {
    transform: scale(0.98);
}

/* Panel de configuración */
#cookie-settings {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

#cookie-settings input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0F5202;
}

#cookie-settings label {
    cursor: pointer;
    user-select: none;
}

#cookie-settings label:hover {
    background: #f0f8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 5px;
    }
    
    .cookie-banner-content div:first-child {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .cookie-banner-content div:last-child {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner button {
        padding: 8px 15px;
        font-size: 12px;
        flex: 1;
        min-width: 80px;
    }
    
    #cookie-settings {
        min-width: 280px;
        max-width: 90%;
        padding: 20px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px 10px !important;
    }
    
    .cookie-banner p {
        font-size: 12px;
    }
    
    .cookie-banner button {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 60px;
    }
    
    #cookie-settings {
        padding: 15px;
        min-width: 250px;
    }
    
    #cookie-settings h3 {
        font-size: 16px;
    }
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner {
    animation: slideUp 0.5s ease-out;
}

/* Animación para el panel de configuración */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#cookie-settings {
    animation: fadeIn 0.3s ease-out;
}

/* Estilo para el fondo del panel */
#cookie-settings::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    animation: fadeIn 0.3s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}
