﻿/* ===========================================
   BANNER DE COOKIES - ESTILOS Y ANIMACIONES
   Archivo: wwwroot/css/cookies-banner.css
   =========================================== */

/* BANNER PRINCIPAL */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(27, 75, 140, 0.95) 0%, rgba(52, 152, 219, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1050;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid #F39C12;
    animation: fadeInUp 0.5s ease-out;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownBanner {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* CONTENIDO DEL BANNER */
.cookie-banner-content {
    color: white;
}

.cookie-title {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-description {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* BOTONES */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

    .cookie-buttons .btn {
        font-weight: 600;
        border-width: 2px;
        transition: all 0.3s ease;
    }

        .cookie-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

/* ENLACES */
.cookie-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .cookie-link:hover {
        color: white;
        text-decoration: underline;
    }

/* TOAST NOTIFICATIONS */
.cookie-toast {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}

    .cookie-toast .toast-header {
        border-bottom: none;
    }

/* MODAL STYLES */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cookie-category .card {
    transition: all 0.3s ease;
}

    .cookie-category .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

/* FORM CONTROLS */
.form-check-input:checked {
    background-color: #1B4B8C;
    border-color: #1B4B8C;
}

.form-check-input:focus {
    border-color: #1B4B8C;
    box-shadow: 0 0 0 0.25rem rgba(27, 75, 140, 0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 2rem 0;
    }

    .cookie-buttons {
        justify-content: center;
        margin-top: 1rem;
    }

        .cookie-buttons .btn {
            flex: 1;
            min-width: 110px;
            font-size: 0.9rem;
        }

    .cookie-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .cookie-description {
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

        .cookie-buttons .btn {
            width: 100%;
        }

    .cookie-title {
        font-size: 1rem;
    }

    .cookie-description {
        font-size: 0.85rem;
    }
}
