/* Sección "Paquetes para tu evento" — solo se carga en /eventos/ */

.mep-section {
    padding: 48px 20px 56px;
}

.mep-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.mep-title {
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.mep-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 0 0 36px;
}

.mep-carousel {
    position: relative;
}

.mep-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 10px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    /* oculta la barra de scroll pero conserva el swipe nativo */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mep-track::-webkit-scrollbar {
    display: none;
}

.mep-card {
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mep-card__media {
    aspect-ratio: 4 / 3;
    background: #fbeaf3;
    overflow: hidden;
}

.mep-card__img,
.mep-card__img--placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mep-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: 1;
}

.mep-card__name {
    font-size: 19px;
    margin: 4px 0 0;
    color: #1a1a2e;
}

.mep-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #12b8bd;
    margin: 0 0 8px;
}

.mep-card__cta {
    margin-top: auto;
    width: 100%;
    max-width: 260px;
    background: #e91e8c;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.mep-card__cta:hover {
    background: #c2185b;
}

.mep-card__cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.25);
}

/* Flechas — ocultas por completo cuando solo hay 1 página (ej. 2 paquetes en desktop) */
.mep-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #f0d9e6;
    color: #e91e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.12);
}

.mep-arrow[hidden] {
    display: none;
}

.mep-arrow--prev {
    left: -14px;
}

.mep-arrow--next {
    right: -14px;
}

.mep-arrow:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.25);
}

.mep-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.mep-dots[hidden] {
    display: none;
}

.mep-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0d9e6;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mep-dot[aria-current="true"] {
    background: #12b8bd;
    width: 22px;
    border-radius: 4px;
}

.mep-dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 184, 189, 0.3);
}

/* Mobile: 1 tarjeta por vista */
@media (max-width: 780px) {
    .mep-track {
        grid-auto-columns: 100%;
        gap: 14px;
    }

    .mep-arrow {
        width: 36px;
        height: 36px;
    }

    .mep-arrow--prev {
        left: 4px;
    }

    .mep-arrow--next {
        right: 4px;
    }

    .mep-title {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mep-track {
        scroll-behavior: auto;
    }

    .mep-card__cta {
        transition: none;
    }
}
