:root {
    --chito-alert-red: #b83a34;
    --chito-alert-navy: #173850;
    --chito-alert-cream: #f7f2e8;
    --chito-alert-gold: #f0d284;
}

.chito-postponement-bar {
    position: relative;
    z-index: 9990;
    background: var(--chito-alert-navy);
    color: #fff;
    border-top: 4px solid var(--chito-alert-red);
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.chito-postponement-bar__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.chito-postponement-bar__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--chito-alert-red);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.chito-postponement-bar__copy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    line-height: 1.35;
}

.chito-postponement-bar__copy strong {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.chito-postponement-bar__copy span {
    color: #f7ead0;
}

.chito-postponement-bar__button {
    appearance: none;
    border: 1px solid rgba(255,255,255,.55);
    background: #fff;
    color: var(--chito-alert-navy);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.chito-postponement-bar__button:hover,
.chito-postponement-bar__button:focus-visible {
    background: var(--chito-alert-gold);
    outline: none;
}

.chito-postponement-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.chito-postponement-modal.is-open {
    display: flex;
}

.chito-postponement-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 38, .78);
    backdrop-filter: blur(3px);
}

.chito-postponement-modal__dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    background: var(--chito-alert-cream);
    color: var(--chito-alert-navy);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
}

.chito-postponement-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(23,56,80,.92);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.chito-postponement-modal__content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.chito-postponement-modal__text {
    padding: 44px 42px 40px;
}

.chito-postponement-modal__eyebrow {
    margin: 0 0 12px;
    color: var(--chito-alert-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .055em;
    font-size: .82rem;
}

.chito-postponement-modal h2 {
    margin: 0 0 14px;
    color: var(--chito-alert-navy);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: .98;
}

.chito-postponement-modal__lead {
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.chito-postponement-modal__facts {
    margin: 0 0 22px;
    padding: 18px 20px 18px 38px;
    background: #fff;
    border-left: 5px solid var(--chito-alert-red);
    border-radius: 12px;
}

.chito-postponement-modal__facts li + li {
    margin-top: 9px;
}

.chito-postponement-modal__note {
    margin: 0 0 24px;
    color: #52636f;
    line-height: 1.55;
}

.chito-postponement-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chito-postponement-modal__primary,
.chito-postponement-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 850;
    text-decoration: none;
}

.chito-postponement-modal__primary {
    background: var(--chito-alert-red);
    color: #fff;
}

.chito-postponement-modal__secondary {
    background: var(--chito-alert-gold);
    color: var(--chito-alert-navy) !important;
    border: 2px solid rgba(23,56,80,.14);
}

.chito-postponement-modal__primary {
    color: #fff !important;
}

.chito-postponement-modal__primary:hover,
.chito-postponement-modal__primary:focus-visible {
    background: #9f2f2a;
    color: #fff !important;
}

.chito-postponement-modal__secondary:hover,
.chito-postponement-modal__secondary:focus-visible {
    background: #f6df9f;
    color: var(--chito-alert-navy) !important;
}

.chito-postponement-modal__visual {
    margin: 0;
    min-height: 100%;
    background: #efe5d2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-left: 1px solid rgba(23,56,80,.08);
}

.chito-postponement-modal__visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 690px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(23,56,80,.12);
}

body.chito-postponement-lock {
    overflow: hidden;
}

@media (max-width: 760px) {
    .chito-postponement-bar__inner {
        grid-template-columns: auto 1fr;
        gap: 10px;
        padding: 12px 0;
    }
    .chito-postponement-bar__button {
        grid-column: 1 / -1;
        width: 100%;
    }
    .chito-postponement-modal {
        padding: 12px;
    }
    .chito-postponement-modal__content {
        grid-template-columns: 1fr;
    }
    .chito-postponement-modal__text {
        padding: 38px 22px 24px;
    }
    .chito-postponement-modal__visual {
        display: none;
    }
    .chito-postponement-modal__actions {
        flex-direction: column;
    }
    .chito-postponement-modal__primary,
    .chito-postponement-modal__secondary {
        width: 100%;
    }
}

/* Refuerzo de adopciones tras el aplazamiento */
.chito-postponement-bar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.chito-postponement-bar__adopt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--chito-alert-gold);
    color: var(--chito-alert-navy) !important;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.chito-postponement-bar__adopt:hover,
.chito-postponement-bar__adopt:focus-visible {
    background: #f6df9f;
    color: var(--chito-alert-navy) !important;
    outline: none;
}

.chito-postponement-modal__primary {
    background: var(--chito-alert-gold);
    color: var(--chito-alert-navy) !important;
    border: 2px solid rgba(23,56,80,.12);
}

.chito-postponement-modal__primary:hover,
.chito-postponement-modal__primary:focus-visible {
    background: #f6df9f;
    color: var(--chito-alert-navy) !important;
}

.chito-postponement-modal__secondary {
    background: #fff;
    color: var(--chito-alert-red) !important;
    border: 2px solid var(--chito-alert-red);
}

.chito-postponement-modal__secondary:hover,
.chito-postponement-modal__secondary:focus-visible {
    background: #fff4f2;
    color: #9f2f2a !important;
}

@media (max-width: 900px) {
    .chito-postponement-bar__inner {
        grid-template-columns: auto 1fr;
    }
    .chito-postponement-bar__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .chito-postponement-bar__actions > * {
        flex: 1 1 0;
    }
}

@media (max-width: 520px) {
    .chito-postponement-bar__actions {
        flex-direction: column;
    }
    .chito-postponement-bar__actions > * {
        width: 100%;
    }
}
