﻿.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem; /* CAMBIO: Ahora a la derecha */
    left: auto; /* Aseguramos que no se pegue a la izquierda */
    width: 100%;
    max-width: 400px; /* Un poco más angosto para que se vea elegante a la derecha */
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-family: 'Helvetica', sans-serif;
    display: none;
    animation: slideUp 0.5s ease-out;
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .cookie-banner {
        right: 1rem;
        bottom: 1rem;
        left: 1rem; /* En móviles sí ocupamos todo el ancho */
        width: auto;
    }
}

.cookie-banner__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-banner__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-cookie {
    width: 100%;
    padding: 0.65rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    text-decoration: none; /* Para cuando es <a> */
    display: inline-block;
}

/* Botón Principal (Oscuro) */
.btn-cookie--primary {
    background-color: #1f2937;
    color: white;
}

    .btn-cookie--primary:hover {
        background-color: #111827;
        color: white;
    }

/* Botón Secundario (Gris) */
.btn-cookie--secondary {
    background-color: #f3f4f6;
    color: #374151;
}

    .btn-cookie--secondary:hover {
        background-color: #e5e7eb;
        color: #111827;
    }

.cookie-banner__links {
    margin-top: 1rem;
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

    .cookie-banner__links a {
        color: #6b7280;
        text-decoration: none;
    }

        .cookie-banner__links a:hover {
            text-decoration: underline;
        }

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
