/* =====================================================
   NEWCASTLE IDIOMAS — COFFEE BREAK + POP-UP V11.1.2
===================================================== */

body.nci-experience-open {
    overflow: hidden !important;
}

.nci-header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.header-inner > .main-nav.nci-main-nav-ready {
    margin-left: auto;
}

.coffee-break-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid rgba(21, 37, 92, .11);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #f3f6ff 100%);
    color: var(--nci-blue, #111f55);
    box-shadow: 0 7px 20px rgba(16, 32, 87, .08);
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.coffee-break-trigger:hover,
.coffee-break-trigger:focus-visible {
    color: var(--nci-red, #e83548);
    border-color: rgba(232, 53, 72, .28);
    box-shadow: 0 10px 25px rgba(16, 32, 87, .13);
    transform: translateY(-2px);
}

.coffee-break-trigger svg {
    width: 29px;
    height: 29px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coffee-break-trigger .coffee-steam path {
    opacity: .76;
    transform-origin: center bottom;
    animation: nciCoffeeSteam 2.7s ease-in-out infinite;
}

.coffee-break-trigger .coffee-steam path:nth-child(2) { animation-delay: .35s; }
.coffee-break-trigger .coffee-steam path:nth-child(3) { animation-delay: .7s; }

@keyframes nciCoffeeSteam {
    0%, 100% { opacity: .28; transform: translateY(2px); }
    50% { opacity: .95; transform: translateY(-2px); }
}

/* Coffee Break */
.coffee-break-backdrop,
.nci-promo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    background: rgba(5, 13, 48, .74);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: opacity .26s ease, visibility .26s ease;
}

.coffee-break-backdrop.is-open,
.nci-promo-backdrop.is-open {
    visibility: visible;
    opacity: 1;
}

.coffee-break-card {
    position: relative;
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
    width: min(650px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .34);
    transform: translateY(18px) scale(.975);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.coffee-break-backdrop.is-open .coffee-break-card {
    transform: translateY(0) scale(1);
}

.coffee-break-close,
.nci-promo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 21, 68, .92);
    color: #fff;
    font: 400 28px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background .2s ease;
}

.coffee-break-close:hover,
.nci-promo-close:hover {
    background: var(--nci-red, #e83548);
    transform: rotate(5deg) scale(1.04);
}

.coffee-break-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .18), transparent 25%),
        linear-gradient(160deg, #0f1f55 0%, #23468f 64%, #e83548 100%);
}

.coffee-break-visual::before,
.coffee-break-visual::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.coffee-break-visual::before {
    width: 140px;
    height: 140px;
    left: -65px;
    bottom: -45px;
}

.coffee-break-visual::after {
    width: 90px;
    height: 90px;
    right: -45px;
    top: 35px;
}

.coffee-break-cup {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 76px;
    filter: drop-shadow(0 15px 20px rgba(6, 15, 48, .28));
    transform: rotate(-4deg);
}

.coffee-break-steam {
    position: absolute;
    z-index: 1;
    width: 9px;
    height: 48px;
    top: calc(50% - 92px);
    border-radius: 50%;
    border-left: 3px solid rgba(255, 255, 255, .82);
    opacity: .72;
    animation: nciLargeSteam 2.8s ease-in-out infinite;
}

.coffee-break-steam.steam-one { margin-left: -34px; }
.coffee-break-steam.steam-two { margin-left: 0; animation-delay: .5s; }
.coffee-break-steam.steam-three { margin-left: 34px; animation-delay: 1s; }

@keyframes nciLargeSteam {
    0%, 100% { transform: translateY(10px) scaleX(.75); opacity: .15; }
    50% { transform: translateY(-6px) scaleX(1); opacity: .8; }
}

.coffee-break-content {
    padding: 46px 48px 38px;
}

.coffee-break-title-label {
    margin: 0 0 7px;
    color: var(--nci-blue, #111f55);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.2px;
    line-height: 1.2;
}

.coffee-break-kicker,
.nci-promo-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--nci-red, #e83548);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.coffee-break-content h2 {
    margin: 0;
    color: var(--nci-blue, #111f55);
    font-size: clamp(29px, 4.2vw, 43px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.02;
}

.coffee-break-content h2.is-changing {
    animation: nciPhraseIn .32s ease both;
}

@keyframes nciPhraseIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.coffee-break-translation {
    margin: 12px 0 22px;
    color: #3c4560;
    font-size: 17px;
    font-weight: 400;
}

.coffee-break-example {
    padding: 16px 18px;
    border: 1px solid rgba(20, 36, 89, .1);
    border-left: 4px solid var(--nci-red, #e83548);
    border-radius: 13px;
    background: #f7f8fc;
}

.coffee-break-example > span {
    display: block;
    margin-bottom: 5px;
    color: #8a91a5;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.coffee-break-example p {
    margin: 0;
    color: #26304b;
    font-size: 14px;
    line-height: 1.55;
}

.coffee-break-example-translation {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgba(20, 36, 89, .08);
    color: #687086 !important;
    font-size: 13px !important;
}

.coffee-break-example-translation strong {
    color: #4f586f;
    font-weight: 500;
}

.coffee-break-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
}

.coffee-break-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 18px;
    border-width: 1px;
    font-size: 12px;
    font-weight: 500 !important;
    letter-spacing: .55px;
    text-transform: uppercase !important;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none !important;
    transform: none;
}

.coffee-break-actions .coffee-next {
    border-color: var(--nci-red, #e83548);
    background: var(--nci-red, #e83548);
    background-image: none !important;
    color: #fff;
    filter: none;
}

.coffee-break-actions .coffee-next:hover,
.coffee-break-actions .coffee-next:focus-visible {
    border-color: #c9283b;
    background: #c9283b;
    color: #fff;
    box-shadow: none !important;
    transform: none;
}

.coffee-break-actions .coffee-cta {
    border-color: #d8dde7;
    background: #eef1f5;
    background-image: none !important;
    color: var(--nci-blue, #111f55);
    filter: none;
}

.coffee-break-actions .coffee-cta:hover,
.coffee-break-actions .coffee-cta:focus-visible {
    border-color: #c7ceda;
    background: #dde3eb;
    color: var(--nci-blue, #111f55);
    box-shadow: none !important;
    transform: none;
}

.coffee-break-footnote {
    margin: 17px 0 0;
    color: #8b91a2;
    font-size: 11px;
    font-weight: 400;
}

/* Pop-up promocional reutilizável */
body.nci-promo-active .cookie-bar {
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translateY(110%) !important;
}

.nci-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(360px, 1.08fr);
    width: min(910px, 100%);
    max-height: min(680px, 90dvh);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 36px 110px rgba(0, 0, 0, .38);
    transform: translateY(22px) scale(.975);
    transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}

.nci-promo-backdrop.is-open .nci-promo-card {
    transform: translateY(0) scale(1);
}

.nci-promo-media {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(145deg, #12245d, #e83449);
}

.nci-promo-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(7, 17, 58, .54) 100%);
    pointer-events: none;
}

.nci-promo-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
}


.nci-promo-backdrop.has-image-error .nci-promo-media img {
    display: none;
}

.nci-promo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 56px 46px;
}

.nci-promo-content h2 {
    max-width: 12ch;
    margin: 0;
    color: var(--nci-blue, #111f55);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.03;
}

.nci-promo-text {
    margin: 22px 0 0;
    color: #5f687e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.68;
}

.nci-promo-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.nci-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(17, 31, 85, .08);
    border-radius: 999px;
    background: #f2f5ff;
    color: var(--nci-blue, #111f55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
}

.nci-promo-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}

.nci-promo-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-width: 1px;
    font-size: 12px;
    font-weight: 500 !important;
    letter-spacing: .55px;
    text-transform: uppercase !important;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none !important;
    transform: none;
}

.nci-promo-actions .btn-primary {
    border-color: var(--nci-red, #e83548);
    background: var(--nci-red, #e83548);
    background-image: none !important;
    color: #fff;
    filter: none;
}

.nci-promo-actions .btn-primary:hover,
.nci-promo-actions .btn-primary:focus-visible {
    border-color: #c9283b;
    background: #c9283b;
    color: #fff;
    box-shadow: none !important;
    transform: none;
}

.nci-promo-secondary {
    border-color: #d8dde7;
    background: #eef1f5;
    background-image: none !important;
    color: var(--nci-blue, #111f55);
    filter: none;
}

.nci-promo-secondary:hover,
.nci-promo-secondary:focus-visible {
    border-color: #c7ceda;
    background: #dde3eb;
    color: var(--nci-blue, #111f55);
    box-shadow: none !important;
    transform: none;
}

.nci-promo-note {
    margin: 18px 0 0;
    color: #989ead;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .nci-promo-card {
        grid-template-columns: minmax(230px, .82fr) minmax(330px, 1.18fr);
    }

    .nci-promo-content { padding: 42px 40px 38px; }
    .nci-promo-media,
    .nci-promo-media img { min-height: 480px; }
}

@media (max-width: 767px) {
    .header-inner > .main-nav.nci-main-nav-ready { margin-left: 0; }
    .nci-header-tools { margin-left: auto; }

    .coffee-break-trigger,
    .nav-toggle {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 13px;
    }

    .coffee-break-trigger svg { width: 27px; height: 27px; }

    .coffee-break-backdrop,
    .nci-promo-backdrop {
        align-items: center;
        padding: 14px;
    }

    .coffee-break-card {
        grid-template-columns: 1fr;
        width: min(440px, 100%);
        max-height: 91dvh;
        overflow-y: auto;
        border-radius: 23px;
    }

    .coffee-break-visual {
        min-height: 128px;
    }

    .coffee-break-cup { font-size: 57px; }
    .coffee-break-steam { top: 15px; height: 38px; }
    .coffee-break-content { padding: 27px 24px 24px; }
    .coffee-break-content h2 { font-size: clamp(27px, 8.4vw, 36px); }
    .coffee-break-translation { margin: 10px 0 17px; font-size: 15px; }
    .coffee-break-actions { flex-direction: column; align-items: stretch; }
    .coffee-break-actions .btn { width: 100%; }
    .coffee-break-footnote { text-align: center; }

    .nci-promo-card {
        display: flex;
        flex-direction: column;
        width: min(460px, 100%);
        max-height: 92dvh;
        overflow-y: auto;
        border-radius: 24px;
    }

    .nci-promo-media,
    .nci-promo-media img {
        width: 100%;
        min-height: 0;
        height: 180px;
    }

    .nci-promo-media img { object-position: center 28%; }
    .nci-promo-content { padding: 27px 24px 24px; }
    .nci-promo-eyebrow { margin-bottom: 9px; font-size: 9px; }

    .nci-promo-content h2 {
        max-width: 14ch;
        font-size: clamp(29px, 8.4vw, 38px);
        letter-spacing: -1.1px;
        line-height: 1.02;
    }

    .nci-promo-text { margin-top: 14px; font-size: 13px; line-height: 1.58; }
    .nci-promo-tags { gap: 7px; margin-top: 15px; }
    .nci-promo-badge { padding: 7px 10px; font-size: 10px; }
    .nci-promo-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 19px; }
    .nci-promo-actions .btn { width: 100%; min-height: 45px; }
    .nci-promo-secondary { justify-content: center; min-height: 45px; }
    .nci-promo-note { margin-top: 12px; font-size: 9px; }
    .nci-promo-close { top: 11px; right: 11px; width: 36px; height: 36px; }
}

@media (max-width: 390px), (max-height: 650px) and (max-width: 767px) {
    .nci-promo-media,
    .nci-promo-media img { height: 128px; }
    .nci-promo-content { padding: 22px 21px 20px; }
    .nci-promo-content h2 { font-size: 28px; }
    .nci-promo-text { margin-top: 11px; }
    .nci-promo-tags { gap: 5px; margin-top: 11px; }
    .nci-promo-badge { padding: 6px 8px; font-size: 9px; }
    .nci-promo-actions { margin-top: 15px; }
    .nci-promo-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .coffee-break-trigger .coffee-steam path,
    .coffee-break-steam,
    .coffee-break-content h2.is-changing {
        animation: none !important;
    }

    .coffee-break-card,
    .nci-promo-card,
    .coffee-break-backdrop,
    .nci-promo-backdrop {
        transition-duration: .01ms !important;
    }
}
