/* Banner de cookies — discreto, no bloquea la navegación */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.96);
    color: #f3f4f6;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #d1d5db;
}

.cookie-consent__text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: #bfdbfe;
}

.cookie-consent__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: #fbbf24;
    color: #111827;
    transition: background 0.15s ease, transform 0.1s ease;
}

.cookie-consent__btn:hover {
    background: #f59e0b;
}

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

@media (max-width: 600px) {
    .cookie-consent {
        padding: 0.875rem 0.875rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    }
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent__btn {
        width: 100%;
    }
}

/* Evitar solapamiento con FABs del footer */
body.cookie-consent-open .footer-fab-group {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    body.cookie-consent-open .footer-fab-group {
        bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    }
}
