/* ==========================================================================
   MODAL PROMOCIONAL: NUEVA FEATURE COMPARTIR EVENTO
   allTickets - Diseño institucional y responsivo
   ========================================================================== */

.promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 61, 102, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.promo-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.promo-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(14, 61, 102, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.promo-modal-overlay.visible .promo-modal {
    transform: translateY(0) scale(1);
}

/* Botón cerrar X */
.promo-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
}

.promo-modal__close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

/* Header */
.promo-modal__header {
    background: linear-gradient(135deg, #1d71b8 0%, #0E3D66 100%);
    padding: 22px 24px 18px;
    position: relative;
    border-bottom: 4px solid #ffb540;
    color: #ffffff;
    text-align: left;
}

.promo-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: linear-gradient(135deg, #fdd38f 0%, #ffb540 50%, #b37109 100%);
    color: #0E3D66;
    box-shadow: 0 2px 8px rgba(255, 181, 64, 0.4);
    margin-bottom: 10px;
}

.promo-modal__badge i {
    font-size: 11px;
    color: #0E3D66;
}

.promo-modal__title {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.promo-modal__subtitle {
    font-size: 13.5px;
    color: #eaf4fd;
    margin: 6px 0 0 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Body */
.promo-modal__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafcfd;
}

/* Showcase: Simulación de Card con gradientes */
.promo-modal__showcase {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe9f5;
    box-shadow: 0 4px 16px rgba(14, 61, 102, 0.08);
    padding: 14px;
}

/* Gradientes para difuminar arriba y abajo de la card */
.promo-modal__mask-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: linear-gradient(to bottom, #ffffff 25%, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 3;
}

.promo-modal__mask-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: linear-gradient(to top, #ffffff 25%, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 3;
}

/* Card simulada */
.promo-modal__sim-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    filter: blur(0.2px);
    opacity: 0.88;
}

.promo-modal__sim-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.promo-modal__sim-afiche {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d71b8, #0E3D66);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb540;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14, 61, 102, 0.2);
}

.promo-modal__sim-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.promo-modal__sim-place {
    font-size: 11px;
    font-weight: 700;
    color: #1d71b8;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.promo-modal__sim-name {
    font-size: 14px;
    font-weight: 800;
    color: #0E3D66;
    margin: 0;
    line-height: 1.25;
}

.promo-modal__sim-date {
    font-size: 11.5px;
    color: #617b96;
    font-weight: 600;
}

/* Foco Central: Botón y Menú desplegado simulado */
.promo-modal__focus-area {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 4px;
    padding-top: 6px;
}

/* Menú simulado */
.promo-modal__demo-menu {
    background: #ffffff;
    border: 1px solid #c9def0;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px -4px rgba(14, 61, 102, 0.22);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    animation: promoFloat 3s ease-in-out infinite alternate;
}

.promo-modal__demo-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: #0E3D66;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.promo-modal__demo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.promo-modal__demo-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
}

.promo-modal__demo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.promo-modal__demo-icon--wa { background: #25D366; }
.promo-modal__demo-icon--fb { background: #1877F2; }
.promo-modal__demo-icon--tw { background: #000000; }
.promo-modal__demo-icon--tg { background: #229ED9; }
.promo-modal__demo-icon--li { background: #0A66C2; }

.promo-modal__demo-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f7fc;
    border: 1px dashed #1d71b8;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    color: #1d71b8;
    font-weight: 600;
    justify-content: space-between;
}

.promo-modal__demo-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.promo-modal__demo-copy-btn {
    background: #1d71b8;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Botón de compartir con efecto de pulso luminoso */
.promo-modal__demo-btn {
    position: relative;
    background-color: #1d71b8;
    border: 1px solid #1d71b8;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(29, 113, 184, 0.4);
    animation: promoGlowPulse 2s infinite;
    cursor: default;
}

.promo-modal__demo-btn i {
    font-size: 13px;
    color: #ffffff;
}

/* Animaciones */
@keyframes promoGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 113, 184, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(29, 113, 184, 0);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 113, 184, 0);
        transform: scale(1);
    }
}

@keyframes promoFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-4px);
    }
}

/* Bullets de beneficios */
.promo-modal__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.promo-modal__feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eaf4fd;
    font-size: 12.5px;
    font-weight: 600;
    color: #0E3D66;
    line-height: 1.35;
}

.promo-modal__feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #1775bc;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Footer */
.promo-modal__footer {
    padding: 14px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid #eaf4fd;
}

.promo-modal__options {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin: 0 auto;
    user-select: none;
}

.promo-modal__checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #1775bc;
    appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
    background: #fafcfd;
}

.promo-modal__checkbox:checked {
    background: #1d71b8;
    border-color: #1d71b8;
}

.promo-modal__checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.promo-modal__options-label {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 13px;
    color: #18588d;
    font-weight: 600;
    line-height: 1;
}

.promo-modal__btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #ffb540 0%, #b37109 100%);
    color: #ffffff;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 14px -2px rgba(179, 113, 9, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-modal__btn:hover {
    background: linear-gradient(135deg, #fdd38f 0%, #b37109 100%);
    box-shadow: 0 8px 18px -2px rgba(179, 113, 9, 0.5);
    transform: translateY(-1px);
}

/* Responsividad para móviles */
@media screen and (max-width: 520px) {
    .promo-modal {
        border-radius: 16px;
        max-width: 100%;
    }

    .promo-modal__header {
        padding: 18px 16px 14px;
    }

    .promo-modal__title {
        font-size: 17px;
    }

    .promo-modal__subtitle {
        font-size: 12.5px;
    }

    .promo-modal__body {
        padding: 12px 14px;
        gap: 10px;
    }

    .promo-modal__showcase {
        padding: 10px;
    }

    .promo-modal__demo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .promo-modal__demo-copy span {
        max-width: 180px;
    }

    .promo-modal__feature-item {
        font-size: 11.5px;
        padding: 6px 10px;
    }

    .promo-modal__footer {
        padding: 12px 16px 16px;
    }

    .promo-modal__btn {
        padding: 11px;
        font-size: 14px;
    }
}
