/* ============================================================
   LINEAEROTICA.ORG COOKIE CONSENT - BOTTOM BAR
   ============================================================ */

.cookie-consent-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    padding: 14px 18px;
    background: transparent;
    pointer-events: none;
}

.cookie-consent-overlay.is-visible {
    display: block;
}

.cookie-consent-box {
    width: min(1100px, 100%);
    max-height: 70vh;
    margin: 0 auto;
    padding: 18px 20px;
    overflow-y: auto;

    background: #fff;
    color: #181818;

    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;

    box-shadow:
        0 12px 45px rgba(0,0,0,.28);

    font-family: inherit;

    pointer-events: auto;
}

.cookie-consent-head {
    display: grid;
    grid-template-columns: 150px 1fr 34px;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.cookie-consent-brand {
    display: inline-flex;
    align-items: center;

    color: #111;

    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.04em;

    white-space: nowrap;
}

.cookie-consent-brand strong {
    color: #ff2d63;
}

.cookie-consent-title {
    margin: 0;

    color: #181818;

    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.cookie-consent-close {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    padding: 0;

    background: transparent;
    color: #111;

    border: 1px solid #999;
    border-radius: 6px;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.cookie-consent-text {
    max-width: 940px;

    margin: 0 0 14px;

    color: #444;

    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cookie-consent-btn {
    min-height: 42px;

    padding: 9px 22px;

    border: 0;
    border-radius: 7px;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.cookie-consent-btn-primary,
.cookie-consent-btn-reject {
    min-width: 145px;

    background:
        linear-gradient(
            135deg,
            #ff2d63,
            #a13cff
        );

    color: #fff;
}

.cookie-consent-btn-secondary {
    min-width: 155px;

    background: #f3f3f3;
    color: #333;

    border: 1px solid #ddd;
}

.cookie-consent-links {
    display: flex;
    flex-wrap: wrap;

    gap: 6px 14px;

    margin-top: 12px;

    font-size: 11px;
}

.cookie-consent-links a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-preferences {
    display: none;

    margin-top: 16px;
    padding-top: 8px;

    border-top: 1px solid #e5e5e5;
}

.cookie-preferences.is-visible {
    display: block;
}

.cookie-pref-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;

    padding: 11px 0;

    border-bottom: 1px solid #ededed;
}

.cookie-pref-row strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;
}

.cookie-pref-row p {
    margin: 0;

    color: #666;

    font-size: 11px;
    line-height: 1.4;
}

.cookie-pref-toggle {
    width: 42px;
    height: 22px;

    accent-color: #ff2d63;
}

.cookie-pref-save {
    width: auto;

    margin-top: 13px;
}

.cookie-settings-floating {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 99990;

    display: none;

    padding: 7px 11px;

    background: #151515;
    color: #fff;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;

    box-shadow:
        0 7px 25px rgba(0,0,0,.25);

    font: inherit;
    font-size: 10px;

    cursor: pointer;
}

.cookie-settings-floating.is-visible {
    display: block;
}


@media (max-width: 700px) {

    .cookie-consent-overlay {
        padding: 8px;
    }

    .cookie-consent-box {
        padding: 15px;

        border-radius: 12px;
    }

    .cookie-consent-head {
        grid-template-columns: 1fr 32px;
        gap: 10px;
    }

    .cookie-consent-brand {
        display: none;
    }

    .cookie-consent-title {
        font-size: 15px;
    }

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

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent-btn {
        min-width: 0;
        padding-inline: 10px;
    }

    .cookie-consent-btn-secondary {
        grid-column: 1 / -1;
    }

    .cookie-consent-links {
        justify-content: center;
    }
}

/* COOKIE BOX COMPACT V2 START */

/* Contenedor general: sin overlay invasivo */
.cookie-consent-overlay {
    position: fixed !important;
    inset: auto 24px 24px auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    background: transparent !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

.cookie-consent-overlay.is-visible {
    display: flex !important;
}

/* Caja compacta */
.cookie-consent-panel {
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: 420px !important;
    min-width: 320px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    padding: 18px 18px 14px !important;
    box-sizing: border-box !important;
    background: #f4f4f4 !important;
    color: #222 !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.35) !important;
    pointer-events: auto !important;
}

/* Cabecera */
.cookie-consent-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.cookie-consent-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.cookie-consent-close {
    flex: 0 0 auto !important;
}

/* Texto */
.cookie-consent-body,
.cookie-consent-text {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px 0 !important;
}

/* Botones */
.cookie-consent-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.cookie-consent-actions .btn,
.cookie-consent-actions button,
.cookie-consent-panel button {
    min-height: 44px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

/* Links legales */
.cookie-consent-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    align-items: center !important;
}

.cookie-consent-links a {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Móvil */
@media (max-width: 640px) {
    .cookie-consent-overlay {
        inset: auto 12px 12px 12px !important;
        justify-content: center !important;
    }

    .cookie-consent-panel {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 14px !important;
        padding: 16px 14px 14px !important;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr !important;
    }
}

/* COOKIE BOX COMPACT V2 END */
