/* ==========================================================
   MUDANZA VIAJES — Popup de aviso de viajes próximos
   ========================================================== */

/* Overlay */
.mv-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
    animation: mv-fade-in 0.3s ease;
}

@keyframes mv-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Tarjeta */
.mv-popup-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
    animation: mv-slide-up 0.35s cubic-bezier(.2, .8, .4, 1);
    overflow: hidden;
}

@keyframes mv-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Botón cerrar */
.mv-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .07);
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 2;
}
.mv-popup-close:hover { background: rgba(0, 0, 0, .14); color: #333; }

/* Icono camión */
.mv-popup-icon {
    font-size: 44px;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1;
}

/* Imagen del viaje */
.mv-popup-img {
    width: calc(100% + 64px);
    margin: -36px -32px 22px;
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Slides */
.mv-popup-slides { position: relative; }
.mv-popup-slide  { display: none; }
.mv-popup-slide.is-active { display: block; }

/* Título */
.mv-popup-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
    text-align: center;
}

/* Ruta visual */
.mv-popup-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.mv-popup-route-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mv-popup-route-dot--o { background: #27ae60; }
.mv-popup-route-dot--d { background: #e74c3c; }
.mv-popup-route-arrow  { color: #aaa; font-size: 14px; }

/* Fecha y badge */
.mv-popup-date {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mv-popup-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    background: #e8f4fd;
    color: #1565c0;
}
.mv-popup-badge--urgent {
    background: #fff3e0;
    color: #e65100;
    animation: mv-pulse 1.5s ease-in-out infinite;
}
@keyframes mv-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .65; }
}

/* Cuerpo */
.mv-popup-body {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px;
    text-align: center;
}

/* Botón CTA */
.mv-popup-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity .2s, transform .15s;
    letter-spacing: .2px;
}
.mv-popup-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Dots navegación */
.mv-popup-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 20px;
}
.mv-popup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #dde3ed;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.mv-popup-dot.is-active { transform: scale(1.35); }

/* ==========================================================
   SUSCRIPCIÓN — [mv_suscribirse]
   ========================================================== */
.mv-subscribe-box {
    background: #f0f6fc;
    border: 1.5px solid #c3d9f0;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.mv-subscribe-icon {
    font-size: 38px;
    margin-bottom: 10px;
}
.mv-subscribe-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 8px;
}
.mv-subscribe-sub {
    font-size: 14px;
    color: #636a74;
    margin: 0 0 20px;
    line-height: 1.5;
}
.mv-subscribe-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.mv-sub-input {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    border: 1.5px solid #c3d9f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .18s;
}
.mv-sub-input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}
.mv-sub-btn {
    background: #1e3a5f;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
    flex-shrink: 0;
}
.mv-sub-btn:hover { background: #163050; }
.mv-sub-btn:disabled { opacity: .55; cursor: not-allowed; }

.mv-sub-msg {
    margin-top: 14px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.mv-sub-msg.ok  { background: #d4f4e2; color: #1a6640; border: 1px solid #a3dcbe; }
.mv-sub-msg.err { background: #fde8e8; color: #8b1c1c; border: 1px solid #f5b0b0; }

.mv-subscribe-legal {
    font-size: 11.5px;
    color: #9ea5ad;
    margin: 14px 0 0;
}

/* Responsive popup */
@media (max-width: 520px) {
    .mv-popup-card { padding: 28px 20px 24px; }
    .mv-popup-title { font-size: 17px; }
    .mv-popup-img { width: calc(100% + 40px); margin: -28px -20px 18px; height: 140px; }
    .mv-subscribe-row { flex-direction: column; }
    .mv-sub-input, .mv-sub-btn { width: 100%; }
}
