/* ============================================
   Cookie Banner — Dilus Living
   Cargado en todas las páginas
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #021B33;
    color: #F4F2E8;
    z-index: 9999;
    padding: 1.25rem 2rem;
    border-top: 1px solid #0a2e4a;
    animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner--hidden {
    display: none !important;
}

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

.cookie-banner__text {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.6;
}

.cookie-banner__text strong {
    color: #fff;
    font-weight: 500;
}

.cookie-banner__text a {
    color: #A69E90;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.cookie-banner__text a:hover {
    color: #fff;
    opacity: 1;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-shrink: 0;
}

/* Botones — misma lógica que .btn del sitio */
.cookie-btn {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.cookie-btn:hover {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Aceptar — equivalente a .btn-primary */
.cookie-btn--accept {
    background: #fff;
    color: #021B33;
    border-color: #fff;
}

.cookie-btn--accept:hover {
    background: #A69E90;
    border-color: #A69E90;
    color: #fff;
}

/* Link "Gestionar cookies" en el footer */
.cookie-reopen {
    cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.25rem 1.75rem;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
