/* ═══════════════════════════════════════════
   METANOIA CDMX 2027 — event.css
   Loaded after /assets/css/base.css
═══════════════════════════════════════════ */

:root {
    --green:       #167766;   /* header bar            */
    --green-deep:  #063434;   /* speakers section      */
    --gold:        #fdd188;   /* date, section title   */
    --gold-muted:  #cca86c;   /* speaker role          */
    --gold-ring:   #a08249;   /* photo border          */
    --mint:        #93e2c2;   /* speaker name / place  */
    --mint-dark:   #5bb48c;   /* "próximamente"        */
    --photo-bg:    #97c7b1;
    --red:         #fe0000;
    --zoom-blue:   #2d8cff;

    /* base.css theme hooks */
    --teal:                 var(--mint);
    --header-bg:            var(--green);
    --header-bg-scrolled:   var(--green);
    --tab-bg:               var(--red);
    --tickets-bg:           var(--red);
    --tickets-bg-hover:     #d00000;

    --header-h: 78px;
    --serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
}

/* ═══════════ HEADER ═══════════ */

#site-header {
    height: var(--header-h);
    padding: 0 2rem 0 0;
    justify-content: flex-end;
}
#site-header.scrolled { border-bottom: none; box-shadow: 0 4px 18px rgba(0,0,0,.35); }

/* Flag hangs over the header and into the hero */
.flag {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(150px, 24vw, 310px);
    pointer-events: auto;
    z-index: 2;
}
.flag img { width: 100%; height: auto; }

#main-nav { gap: 1.6rem; margin-right: max(0px, calc((100vw - 1280px) / 2 + 8vw)); }

.nav-links { gap: 2.6rem; }
.nav-links a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold); }

.nav-links .nav-btn-boletos {
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.social-icons { gap: 0.55rem; }
.social-icons a { font-size: 0.85rem; }
.social-icons a:hover { color: var(--gold); }

/* Boletos side tab */
#boletos-trigger {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1.1rem 0.6rem;
    border-radius: 12px 0 0 12px;
}
#boletos-panel { border-right-color: var(--red); }
#boletos-panel .panel-title { color: var(--gold); }
#boletos-panel a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ═══════════ HERO ═══════════ */

#hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 3vw) 1.5rem 6vw;
    background: #120a05 url('../../assets/media/cdmx2027-hero-bg.webp') center top / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Lema sits on the left half; the Virgin in the bg owns the right */
.lema-graphic {
    width: min(100%, 560px);
    margin-left: 6%;
}

.event-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin-top: clamp(4rem, 14vw, 11rem);
}

.event-when {
    text-align: right;
    padding-right: clamp(1rem, 2.5vw, 1.75rem);
    border-right: 3px solid #268d7c;
}

.event-date {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.event-time {
    margin-top: 0.6rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
}

.event-where {
    max-width: 240px;
    text-align: center;
    color: #fdf2d8;
}

.venue-logo { width: 100%; max-width: 230px; margin: 0 auto; }

.venue-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}
.venue-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}
.venue-address {
    margin-top: 0.5rem;
    font-size: 0.66rem;
    line-height: 1.35;
    font-weight: 600;
}

/* ═══════════ SEPARATOR (wave) ═══════════ */

.separator {
    position: relative;
    z-index: 2;
    margin-top: -7vw;      /* wave overlaps bottom of hero */
    line-height: 0;
}
.separator img { width: 100%; height: auto; display: block; }

/* ═══════════ SPEAKERS ═══════════ */

#speakers {
    background: var(--green-deep);
    padding: 1.5rem 1.5rem 2.5rem;
    text-align: center;
}

#speakers .section-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.speakers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* centers the shorter last row */
    gap: 1.5rem 1.75rem;
    max-width: 780px;
    margin: 0 auto;
}

.speaker-card {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
    line-height: 1.12;
    font-family: 'Open Sans', sans-serif;
}

.speaker-photo-wrap {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-ring);
    background: var(--photo-bg);
    margin-bottom: 1rem;
}
.speaker-photo { width: 100%; height: 100%; object-fit: cover; }

.speaker-name {
    max-width: 200px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mint);
}

.speaker-live {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    color: var(--mint);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.zoom-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    border-radius: 50%;
    background: var(--zoom-blue);
    color: #fff;
    font-size: 0.85em;
}
.zoom-badge i { font-size: 0.55em; }
.zoom-word {
    color: var(--zoom-blue);
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    margin-right: -0.15rem;
}

.speaker-title {
    max-width: 200px;
    margin-top: 0.1rem;
    font-size: 0.92rem;
    color: var(--gold-muted);
}

.speaker-place {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mint);
}

.speakers-more {
    margin-top: 1.75rem;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.2vw, 2.4rem);
    text-transform: uppercase;
    color: var(--mint-dark);
}

/* ═══════════ BOLETOS / TAQUILLA ═══════════ */

.tickets-info {
    background: #042727;
    border-top: 1px solid rgba(253, 209, 136, .18);
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
    text-align: center;
    scroll-margin-top: var(--header-h);
}

.tickets-info .section-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gold);
}

.tickets-subtitle {
    margin-top: 0.4rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--mint);
}
.tickets-subtitle i { color: var(--gold); margin-right: 0.3rem; }

.tickets-grid {
    display: grid;
    grid-template-columns: 1fr 1.9fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    text-align: left;
    align-items: start;
}

.ticket-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(147, 226, 194, .18);
    border-radius: 18px;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #d9ece4;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);   /* clears the fixed header on #taquilla */
}
.ticket-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 209, 136, .2); }

.ticket-card-head { display: flex; align-items: center; gap: 0.85rem; }

.ticket-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--gold);
    font-size: 1.15rem;
}

.ticket-card-title {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--gold);
}

.ticket-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ticket-text { margin-top: 1rem; }

.ticket-list { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.75rem; }
.ticket-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.ticket-list i { color: var(--mint); margin-top: 0.3rem; width: 1.1em; text-align: center; flex: 0 0 auto; }

.ticket-hours {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, .25);
}
.ticket-hours-title { font-weight: 800; color: var(--gold); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.04em; }
.ticket-hours-title i { margin-right: 0.35rem; }
.ticket-hours dl { margin-top: 0.5rem; display: grid; gap: 0.35rem; }
.ticket-hours dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(147, 226, 194, .2); padding-bottom: 0.35rem; }
.ticket-hours dl div:last-child { border-bottom: none; padding-bottom: 0; }
.ticket-hours dt { font-weight: 600; }
.ticket-hours dd { font-weight: 800; color: #fff; white-space: nowrap; }

.ticket-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    padding: 0.8rem 1.3rem;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--tickets-bg);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background .2s ease, transform .2s ease;
}
.ticket-button:hover { background: var(--tickets-bg-hover); transform: translateY(-2px); }

@media (max-width: 768px) {
    .tickets-grid { grid-template-columns: 1fr; }
    .ticket-hours dl div { flex-direction: column; gap: 0; }
    .ticket-button { width: 100%; justify-content: center; }
}

/* ═══════════ GALLERY ═══════════ */

#gallery {
    background: #000;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1060px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ═══════════ VIDEO ═══════════ */

#video-section {
    background: #000;
    padding: 2rem 1.5rem clamp(4rem, 8vw, 7rem);
}

.video-wrap {
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 7.2;
    background: #575757;
    border-radius: clamp(20px, 4vw, 48px);
    overflow: hidden;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-ring {
    width: clamp(80px, 14vw, 140px);
    fill: none;
    stroke: #e43635;
    stroke-width: 5;
}

/* ═══════════ FOOTER ═══════════ */

#site-footer { background: #000; border-top: 1px solid #141414; }

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1024px) {
    .lema-graphic { margin: 0 auto; display: block; }
    .event-info   { margin-top: 3rem; }
    #hero         { min-height: 0; padding-top: calc(var(--header-h) + 6rem); padding-bottom: 10vw; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    #site-header { padding: 0 1rem; height: var(--header-h); }
    #main-nav.open { background: var(--green); }
    #main-nav.open .nav-links a { font-size: 1rem; }
    .flag { width: 130px; }

    #hero { padding-top: calc(var(--header-h) + 4rem); background-position: 70% top; }
    .lema-graphic { width: 88%; }

    .event-info  { flex-direction: column; gap: 1.25rem; }
    .event-when  { text-align: center; border-right: none; padding: 0 0 1.1rem; border-bottom: 3px solid #268d7c; }

    .speakers-grid { gap: 1.5rem 0.75rem; }
    .speaker-card  { flex: 0 0 calc(50% - 0.5rem); max-width: 210px; }
    .speaker-photo-wrap { width: 140px; height: 140px; }
    .speaker-name, .speaker-title, .speaker-place { font-size: 0.8rem; }
    .speaker-live { font-size: 0.75rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .video-wrap   { aspect-ratio: 16 / 9; }
}
