/* ════════════════════════════════════════════════════════════════════
   MEC EVENT PAGE TEMPLATE v1 (mec-ep-*)
   Styles for the auto-generated event pages injected by
   MEC_Event_Page_Template. Values follow the "MEC Neon Void" design
   system (MEC-PAGE/04-sistema-de-diseno.md); P1-5 will migrate them
   to global --mec-* tokens.
   ════════════════════════════════════════════════════════════════════ */

/* --- top bar --------------------------------------------------------- */
.mec-ep-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 4px;
}

.mec-ep-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .14em;
    text-decoration: none;
    color: #F4F1FF;
}

.mec-ep-logo b {
    color: #A855F7;
}

.mec-ep-back {
    color: #A9A3C2;
    text-decoration: none;
    font-size: .85rem;
}

.mec-ep-back:hover {
    color: #F4F1FF;
}

.mec-ep-topbtn {
    margin-left: auto;
    padding: 9px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
}

.mec-ep-topbar-sec,
.mec-ep-section,
.mec-ep-footer {
    background: #070312;
}

/* --- hero ------------------------------------------------------------ */
.mec-ep-hero {
    position: relative;
    overflow: hidden;
    background: #070312;
}

.mec-ep-hero > .elementor-container {
    position: relative;
    z-index: 2;
}

.mec-ep-hero-bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(1.3) brightness(.6);
    transform: scale(1.15);
    pointer-events: none;
}

.mec-ep-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 3, 18, .25), rgba(7, 3, 18, .78) 78%, #070312);
    pointer-events: none;
}

.mec-ep-flyer img {
    border-radius: 20px;
    border: 1px solid rgba(244, 241, 255, .18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 24px rgba(168, 85, 247, .45);
    animation: mec-ep-float 7s ease-in-out infinite;
}

@keyframes mec-ep-float {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50% { transform: translateY(-14px) rotate(.6deg); }
}

.mec-ep-eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #00C2FF;
    margin: 0 0 4px;
}

.mec-ep-title h1,
.mec-ep-title .elementor-heading-title {
    text-transform: uppercase;
    line-height: 1.1;
    color: #F4F1FF;
}

.mec-ep-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.mec-ep-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(16, 10, 36, .6);
    border: 1px solid rgba(168, 85, 247, .25);
    font-size: .78rem;
    color: #F4F1FF;
}

.mec-ep-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00C2FF;
}

.mec-ep-sub {
    color: #A9A3C2;
    max-width: 46ch;
}

.mec-ep-btn .elementor-button {
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
    border-radius: 999px;
    padding: 16px 32px;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(168, 85, 247, .45);
    animation: mec-ep-pulse 2.6s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}

.mec-ep-btn .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(168, 85, 247, .65);
}

@keyframes mec-ep-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(168, 85, 247, .4); }
    50% { box-shadow: 0 0 42px rgba(0, 194, 255, .55); }
}

/* --- headings / cards ------------------------------------------------- */
.mec-ep-h2 .elementor-heading-title,
.mec-ep-h3 .elementor-heading-title {
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mec-ep-card {
    background: rgba(16, 10, 36, .55);
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 20px;
    padding: 26px;
    margin: 10px;
}

.mec-ep-muted {
    color: #A9A3C2;
}

/* --- info list --------------------------------------------------------- */
ul.mec-ep-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

ul.mec-ep-info li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

ul.mec-ep-info li span {
    font-size: .64rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #A9A3C2;
}

ul.mec-ep-info li strong {
    color: #F4F1FF;
}

.mec-ep-spotify {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, .4);
    color: #34D399;
    font-size: .85rem;
    text-decoration: none;
}

.mec-ep-spotify:hover {
    background: rgba(52, 211, 153, .1);
    color: #34D399;
}

/* --- venue --------------------------------------------------------------- */
.mec-ep-venue {
    color: #A9A3C2;
}

.mec-ep-venue strong {
    color: #F4F1FF;
    font-size: 1.05rem;
}

.mec-ep-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, .25);
    color: #F4F1FF;
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
}

.mec-ep-ghost:hover {
    border-color: #C084FC;
    color: #C084FC;
}

/* --- social pills ----------------------------------------------------------- */
.mec-ep-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mec-ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, .25);
    background: rgba(16, 10, 36, .5);
    color: #F4F1FF;
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
}

.mec-ep-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
}

.mec-ep-pill:hover {
    border-color: #00C2FF;
    box-shadow: 0 0 24px rgba(0, 194, 255, .35);
    transform: translateY(-2px);
    color: #F4F1FF;
}

/* --- footer -------------------------------------------------------------------- */
.mec-ep-footer {
    border-top: 1px solid rgba(169, 163, 194, .15);
}

.mec-ep-footline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 4px 120px;
    color: #A9A3C2;
    font-size: .85rem;
}

.mec-ep-footline nav {
    display: flex;
    gap: 18px;
}

.mec-ep-footline a {
    color: #A9A3C2;
    text-decoration: none;
}

.mec-ep-footline a:hover {
    color: #F4F1FF;
}

/* --- sticky mobile CTA ------------------------------------------------------------ */
.mec-ep-sticky {
    display: none;
}

@media (max-width: 720px) {
    .mec-ep-sticky {
        display: block;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 50;
        background: rgba(16, 10, 36, .85);
        border: 1px solid rgba(168, 85, 247, .25);
        border-radius: 999px;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 8px 12px;
    }

    .mec-ep-hero-bg {
        filter: blur(30px) saturate(1.3) brightness(.55);
    }
}

/* ════════════════════════════════════════════════════════════════════
   P1-4 WIDGETS (template v2): MEC Event Hero, Event Info, Venue Map,
   Organizer Profile, Social Links.
   ════════════════════════════════════════════════════════════════════ */

/* --- MEC Event Hero ---------------------------------------------------- */
.mec-hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
    background: #070312;
}

.mec-hero__bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(46px) saturate(1.3) brightness(.6);
    transform: scale(1.15);
    pointer-events: none;
}

.mec-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 3, 18, .25), rgba(7, 3, 18, .78) 78%, #070312);
    pointer-events: none;
}

.mec-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 110px 22px 80px;
}

.mec-hero__flyer img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(244, 241, 255, .18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 24px rgba(168, 85, 247, .45);
    animation: mec-ep-float 7s ease-in-out infinite;
}

.mec-hero__eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #00C2FF;
    margin: 0 0 6px;
}

.mec-hero__title {
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: #F4F1FF;
    text-wrap: balance;
}

.mec-hero__sub {
    color: #A9A3C2;
    max-width: 46ch;
    margin: 14px 0 0;
}

.mec-hero__cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.mec-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(168, 85, 247, .45);
    animation: mec-ep-pulse 2.6s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}

.mec-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(168, 85, 247, .65);
    color: #fff;
}

.mec-ep-badge {
    display: inline-block;
    background: #CCFF00;
    color: #131505;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}

.mec-ep-badge--done {
    background: rgba(169, 163, 194, .25);
    color: #A9A3C2;
}

/* --- shared widget panel ------------------------------------------------- */
.mec-w-panel {
    background: rgba(16, 10, 36, .55);
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 20px;
    padding: 26px;
}

.mec-w-heading {
    margin: 0 0 16px;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #F4F1FF;
}

/* --- MEC Venue Map ---------------------------------------------------------- */
.mec-w-map__facade {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 230px;
    margin-bottom: 14px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 55% 45%, rgba(168, 85, 247, .25), transparent 40%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 194, 255, .12) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 194, 255, .12) 39px 40px),
        #1A1240;
}

.mec-w-map__pin {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
    box-shadow: 0 0 24px rgba(168, 85, 247, .45);
}

.mec-w-map__frame {
    display: none;
    width: 100%;
    height: 230px;
    border: 0;
    border-radius: 14px;
    margin-bottom: 14px;
}

.mec-w-map.is-loaded .mec-w-map__facade {
    display: none;
}

.mec-w-map.is-loaded .mec-w-map__frame {
    display: block;
}

/* --- MEC Organizer Profile ----------------------------------------------------- */
.mec-w-org {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mec-w-org__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.mec-w-org__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #A855F7 0%, #00C2FF 100%);
    box-shadow: 0 0 24px rgba(168, 85, 247, .45);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.mec-w-org__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mec-w-org__name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #F4F1FF;
}

.mec-w-org__meta {
    font-size: .85rem;
    color: #A9A3C2;
}

.mec-w-org__btn {
    margin-left: auto;
    margin-top: 0;
}

/* --- responsive -------------------------------------------------------------------- */
@media (max-width: 880px) {
    .mec-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 90px;
    }

    .mec-hero__flyer {
        max-width: 250px;
    }

    .mec-hero__bg {
        filter: blur(30px) saturate(1.3) brightness(.55);
    }
}

/* --- accessibility ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .mec-ep-flyer img,
    .mec-ep-btn .elementor-button,
    .mec-hero__flyer img,
    .mec-hero__btn {
        animation: none !important;
    }

    .mec-ep-btn .elementor-button:hover,
    .mec-ep-pill:hover,
    .mec-hero__btn:hover {
        transform: none;
    }
}
