/* Banner de alerta humanitaria GEM × EnMano */

/* Modal por encima del header (.no-header z-index: 9999) */
#gemReliefModal.gem-relief-modal-wrap {
    z-index: 10050 !important;
}

body.modal-open .modal-backdrop {
    z-index: 10040 !important;
}

/* Logo más abajo (desktop) */
@media (min-width: 992px) {
    img#logo-envio {
        top: -6px !important;
    }
}

.gem-relief-banner {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
    transition: filter 0.2s ease;
    border: 0;
    text-align: left;
}

.gem-relief-banner__wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.gem-relief-banner__edge {
    flex: 1 1 0;
    min-width: 0;
}

.gem-relief-banner__edge--left {
    background: #ffcc00;
}

.gem-relief-banner__edge--right {
    background: #cf142b;
}

.gem-relief-banner__wrap > .container {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.gem-relief-banner__wrap > .container > .row {
    margin-left: 0;
    margin-right: 0;
}

.gem-relief-banner__wrap > .container > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .gem-relief-banner__wrap > .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gem-relief-banner__wrap > .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gem-relief-banner__wrap > .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gem-relief-banner__wrap > .container {
        max-width: 1140px;
    }
}

.gem-relief-banner__main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 1rem;
    min-height: 44px;
    background: #00247d;
}

.gem-relief-banner:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.gem-relief-banner:hover .gem-relief-banner__main,
.gem-relief-banner:focus .gem-relief-banner__main {
    filter: brightness(1.06);
}

.gem-relief-banner:hover,
.gem-relief-banner:focus {
    filter: none;
    outline: none;
}

.gem-relief-banner__flag {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.25rem;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.gem-relief-banner__pulse {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 2rem;
    height: 2rem;
    margin-top: -1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: gem-relief-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes gem-relief-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.gem-relief-banner__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gem-relief-banner__text strong {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.gem-relief-banner__sep {
    margin: 0 0.35rem;
    opacity: 0.75;
}

.gem-relief-banner__detail {
    font-weight: 500;
}

.gem-relief-banner__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.gem-relief-banner__cta i {
    font-size: 0.65rem;
}

/* Modal */
.gem-relief-modal-wrap .modal-backdrop.show {
    opacity: 0.72;
}

.gem-relief-modal-dialog {
    max-width: 640px;
}

.gem-relief-modal {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(165deg, #0a1628 0%, #111827 48%, #0f172a 100%);
    color: #e5e7eb;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gem-relief-modal__accent {
    display: flex;
    height: 5px;
    width: 100%;
}

.gem-relief-modal__stripe {
    flex: 1 1 0;
}

.gem-relief-modal__stripe--yellow {
    background: #ffcc00;
}

.gem-relief-modal__stripe--blue {
    background: #00247d;
}

.gem-relief-modal__stripe--red {
    background: #cf142b;
}

.gem-relief-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gem-relief-modal__close:hover,
.gem-relief-modal__close:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.gem-relief-modal__body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.gem-relief-modal__partnership {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.gem-relief-modal__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gem-relief-modal__logo--enmano img {
    width: 72px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.gem-relief-modal__logo--gem img {
    width: min(220px, 52vw);
}

.gem-relief-modal__times {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
}

.gem-relief-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.12);
    color: #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gem-relief-modal__eyebrow .flag-icon {
    width: 1.1rem;
    height: 0.8rem;
    border-radius: 2px;
}

.gem-relief-modal__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.gem-relief-modal__lead {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.gem-relief-modal__lead strong {
    color: #fff;
}

.gem-relief-modal__highlights {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.gem-relief-modal__highlight {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gem-relief-modal__highlight i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    font-size: 1.15rem;
    color: #ffcc00;
}

.gem-relief-modal__highlight strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #fff;
    font-size: 0.95rem;
}

.gem-relief-modal__highlight p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #94a3b8;
}

.gem-relief-modal__note {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid #cf142b;
    background: rgba(207, 20, 43, 0.08);
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.gem-relief-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gem-relief-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 180px;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gem-relief-modal__btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.gem-relief-modal__btn--whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.gem-relief-modal__btn--whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

.gem-relief-modal__btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.gem-relief-modal__btn--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Sección informativa home — EnMano × GEM */
.gem-relief-section {
    position: relative;
    padding: 0 0 3rem;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 42%, #fffbeb 100%);
    overflow: hidden;
}

.gem-relief-section__accent {
    display: flex;
    height: 6px;
    width: 100%;
    margin-bottom: 2rem;
}

.gem-relief-section__stripe {
    flex: 1 1 0;
}

.gem-relief-section__stripe--yellow {
    background: #ffcc00;
}

.gem-relief-section__stripe--blue {
    background: #00247d;
}

.gem-relief-section__stripe--red {
    background: #cf142b;
}

.gem-relief-section__panel {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 36, 125, 0.1);
    box-shadow:
        0 18px 45px rgba(0, 36, 125, 0.1),
        0 0 0 1px rgba(255, 204, 0, 0.15);
    animation: gem-section-rise 0.75s ease-out both;
}

.gem-relief-section__panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        120deg,
        #ffcc00,
        #00247d,
        #cf142b,
        #ffcc00
    );
    background-size: 260% 260%;
    animation: gem-section-border-shimmer 6s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

.gem-relief-section__glow {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    width: min(520px, 90%);
    height: 8rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.28) 0%, rgba(0, 36, 125, 0.08) 45%, transparent 72%);
    animation: gem-section-glow 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gem-section-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gem-section-glow {
    0%,
    100% {
        opacity: 0.55;
        transform: translateX(-50%) scale(0.96);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.04);
    }
}

@keyframes gem-section-border-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 260% 50%;
    }
}

.gem-relief-section__partnership {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.15rem;
}

.gem-relief-section__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gem-relief-section__logo--enmano img {
    width: 84px;
}

.gem-relief-section__logo--gem img {
    width: min(260px, 62vw);
}

.gem-relief-section__times {
    font-size: 1.75rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1;
}

.gem-relief-section__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.2), rgba(0, 36, 125, 0.08));
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    animation: gem-section-badge-pulse 2.4s ease-in-out infinite;
}

.gem-relief-section__eyebrow-flag {
    width: 1.15rem;
    height: 0.85rem;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@keyframes gem-section-badge-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 204, 0, 0);
    }
}

.gem-relief-section__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.85rem;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
}

.gem-relief-section__lead {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #334155;
}

.gem-relief-section__lead strong {
    color: #00247d;
}

.gem-relief-section__highlights {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.gem-relief-section__highlight {
    height: 100%;
    padding: 1.1rem 1rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: gem-section-rise 0.75s ease-out both;
}

.gem-relief-section__highlight--1 {
    animation-delay: 0.12s;
}

.gem-relief-section__highlight--2 {
    animation-delay: 0.22s;
}

.gem-relief-section__highlight--3 {
    animation-delay: 0.32s;
}

.gem-relief-section__highlight:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 36, 125, 0.22);
    box-shadow: 0 12px 28px rgba(0, 36, 125, 0.1);
}

.gem-relief-section__highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00 0%, #f59e0b 100%);
    color: #1e293b;
    font-size: 1rem;
}

.gem-relief-section__highlight h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.gem-relief-section__highlight p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #64748b;
}

.gem-relief-section__note {
    position: relative;
    z-index: 1;
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid #cf142b;
    border-radius: 0 0.65rem 0.65rem 0;
    background: linear-gradient(90deg, rgba(207, 20, 43, 0.07), rgba(255, 255, 255, 0));
}

.gem-relief-section__note p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #334155;
}

.gem-relief-section__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gem-relief-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 200px;
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gem-relief-section__btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.gem-relief-section__btn--whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.gem-relief-section__btn--whatsapp:hover {
    color: #fff;
    background: #1ebe57;
}

.gem-relief-section__btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    animation: gem-section-cta-pulse 2.8s ease-in-out infinite;
}

.gem-relief-section__btn--primary:hover {
    color: #fff;
}

@keyframes gem-section-cta-pulse {
    0%,
    100% {
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    }
    50% {
        box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45), 0 0 0 6px rgba(37, 99, 235, 0.12);
    }
}

@media (max-width: 767px) {
    .gem-relief-banner__main {
        flex-wrap: wrap;
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
    }

    .gem-relief-banner__text {
        flex: 1 1 100%;
        font-size: 0.84rem;
    }

    .gem-relief-banner__detail {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.78rem;
        opacity: 0.95;
    }

    .gem-relief-banner__sep {
        display: none;
    }

    .gem-relief-banner__cta {
        margin-left: auto;
    }

    .gem-relief-modal__body {
        padding: 1.35rem 1.15rem 1.15rem;
    }

    .gem-relief-modal__actions {
        flex-direction: column;
    }

    .gem-relief-modal__btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .gem-relief-section {
        padding-bottom: 2.25rem;
    }

    .gem-relief-section__panel {
        padding: 1.35rem 1.1rem 1.25rem;
    }

    .gem-relief-section__highlights .col-md-4 {
        margin-bottom: 0.75rem;
    }

    .gem-relief-section__highlights .col-md-4:last-child {
        margin-bottom: 0;
    }

    .gem-relief-section__actions {
        flex-direction: column;
    }

    .gem-relief-section__btn {
        flex: 1 1 auto;
        width: 100%;
    }
}
