/* ============================================================
   BANNER DE COOKIES — HumanData AI
   ============================================================ */

/* Contenedor principal del banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px); /* Ocúltalo abajo inicialmente */
    width: calc(100% - 40px);
    max-width: 800px;
    background: #1E293B; /* Color sólido del tema oscuro */
    border: 1px solid var(--border, #334155);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Evita que bloquee clics cuando está oculto */
}

/* Clase que activa la visibilidad (el JS la añade) */
.cookie-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Contenido interno (texto + botones) */
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

/* Columna de texto */
.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #F8FAFC);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text p {
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
    line-height: 1.5;
    margin: 0;
}

/* Enlaces legales (Términos y Privacidad) */
.cookie-legal-links {
    font-size: 11px;
    margin-top: 10px !important;
    color: var(--text-muted, #94A3B8);
    display: block;
}

.cookie-legal-links a {
    color: var(--primary, #10b981);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-legal-links a:hover {
    color: var(--primary-dark, #059669);
}

/* Columna de botones */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Estilos generales de botones */
.cookie-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

/* Botón de rechazar (outline) */
.cookie-btn-outline {
    background: transparent;
    color: var(--text-main, #F8FAFC);
    border: 1px solid var(--border, #334155);
}

.cookie-btn-outline:hover {
    background: var(--surface-hover, #334155);
    border-color: var(--text-muted, #94A3B8);
}

/* Botón de aceptar (primario) */
.cookie-btn-primary {
    background: var(--primary, #10b981);
    color: #000;
}

.cookie-btn-primary:hover {
    background: var(--primary-dark, #059669);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   RESPONSIVE PARA MÓVILES Y TABLETS
   ============================================================ */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 16px;
        border-radius: 12px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-text h3 {
        font-size: 15px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}