.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-top: 1px solid #dcdcdc;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-family: system-ui, sans-serif;
    font-size: 0.9rem;
    color: #333333;
    z-index: 9999;
    overflow: hidden;
}

.cookie-text {
    flex: 1 1 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-btn.primary {
    background: #0066cc;
    color: #ffffff;
}

.cookie-btn.secondary {
    background: #f0f0f0;
    color: #333333;
}

@media (min-width: 700px) {
    .cookie-text {
        flex: 1 1 auto;
        max-width: 70%;
    }

    .cookie-buttons {
        flex: 1 1 auto;
        max-width: 30%;
        justify-content: flex-end;
    }
}

/* ============================= */
/* MODAL DE CONFIGURACIÓN DE COOKIES */
/* ============================= */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* JS lo cambia a flex */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
}

.cookie-modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 480px;
    width: 90%;
    color: #333;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    font-family: system-ui, sans-serif;
}

.cookie-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cookie-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
