/* =============================================================================
   KORIPASS — EVENT CSS  v2.0
   Hero · Countdown · TrustStrip · Lineup · InfoGrid · Gallery · FAQ · FooterCTA
   ============================================================================= */

/* ── WRAPPER ─────────────────────────────────────────────────────────────────── */
.kp-event {
    background: var(--kp-bg);
    min-height: 100vh;
}

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.kp-event__hero {
    position: relative;
    aspect-ratio: 16 / 5;
    overflow: hidden;
}

.kp-event__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kp-event__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(19, 17, 20, 0.25) 0%,
        rgba(19, 17, 20, 0.55) 50%,
        rgba(19, 17, 20, 0.96) 100%
    );
}

/* Glow ambiental gold */
.kp-event__hero-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(200px, 55vw, 700px);
    height: clamp(90px, 22vw, 300px);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(210, 159, 34, 0.18), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}


.kp-event__hero > svg {
    position: absolute;
    bottom: 30px;
    right: 40px;
    opacity: 0.12;
    pointer-events: none;
    width: 60px;
    height: 60px;
    border-radius: 6px;
}

/* ── BODY ─────────────────────────────────────────────────────────────────────── */
.kp-event__body {
    max-width: var(--kp-container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 100px;
}

/* ── TOP ROW ──────────────────────────────────────────────────────────────────── */
.kp-event__top-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 52px;
    padding-top: 40px;
    align-items: start;
}

/* Título wrap */
.kp-event__title-wrap { flex: 1; }

.kp-event__title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--kp-text);
    margin: 10px 0 0;
    text-wrap: balance;
}

.kp-event__subtitle {
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--kp-text-dim);
    line-height: 1.5;
}

/* Chips */
.kp-event__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.kp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--kp-text-dim);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--kp-line);
    white-space: nowrap;
}

/* ── CTA WRAP ─────────────────────────────────────────────────────────────────── */
.kp-event__cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 90px;
    background: var(--kp-surface);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius-lg);
    padding: 28px;
}

/* ── VENUE SELECTOR ───────────────────────────────────────────────────────────── */
.kp-venue-selector__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kp-text-faint);
    margin-bottom: 10px;
}

.kp-venue-selector__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-venue-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--kp-line);
    background: transparent;
    color: var(--kp-text-dim);
    cursor: pointer;
    transition: border-color var(--kp-transition), background var(--kp-transition), color var(--kp-transition);
    text-align: left;
    font-family: var(--kp-font-brand);
    font-size: 0.9rem;
}

.kp-venue-btn:hover {
    border-color: var(--kp-line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--kp-text);
}

.kp-venue-btn.is-active {
    border-color: var(--kp-accent);
    background: rgba(210, 159, 34, 0.1);
    color: var(--kp-text);
}

.kp-venue-btn__city {
    flex: 1;
    font-weight: 700;
}

.kp-venue-btn__date {
    font-size: 0.82rem;
    color: var(--kp-text-faint);
}

.kp-venue-btn__price {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--kp-accent);
}

/* ── PRECIO ───────────────────────────────────────────────────────────────────── */
.kp-event__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.kp-event__price-from {
    font-size: 0.78rem;
    color: var(--kp-text-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kp-event__price-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--kp-text);
    letter-spacing: -0.02em;
}

.kp-event__price-currency {
    font-size: 0.82rem;
    color: var(--kp-text-faint);
    font-weight: 600;
}

/* ── PRUEBA SOCIAL ────────────────────────────────────────────────────────────── */
.kp-event__social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--kp-text-faint);
}

.kp-event__social-proof strong { color: var(--kp-text); }

.kp-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: kp-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes kp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

/* ── REDES DEL EVENTO ─────────────────────────────────────────────────────────── */
.kp-event__social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid var(--kp-line);
}

.kp-event__social-label {
    font-size: 0.78rem;
    color: var(--kp-text-faint);
    font-weight: 600;
}

.kp-event__social-icons {
    display: flex;
    gap: 8px;
}

/* ── COUNTDOWN ────────────────────────────────────────────────────────────────── */
.kp-event__countdown {
    margin-top: 48px;
    text-align: center;
}

.kp-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--kp-surface);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius-lg);
    padding: 20px 32px;
}

.kp-countdown__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.kp-countdown__num {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--kp-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.kp-countdown__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--kp-text-faint);
    margin-top: 4px;
    font-weight: 700;
}

.kp-countdown__sep {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(210, 159, 34, 0.35);
    margin-bottom: 16px;
    align-self: flex-start;
    margin-top: 8px;
}

/* ── SCARCITY BAR ─────────────────────────────────────────────────────────────── */
.kp-scarcity {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-scarcity__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.kp-scarcity__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kp-gold-deep), var(--kp-accent));
    transition: width 0.6s var(--kp-ease);
}

.kp-scarcity__bar--hot .kp-scarcity__fill {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
    animation: kp-scarcity-pulse 2.5s ease-in-out infinite;
}

@keyframes kp-scarcity-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

.kp-scarcity__label {
    font-size: 0.82rem;
    color: var(--kp-text-faint);
    font-weight: 600;
}

.kp-scarcity__bar--hot + .kp-scarcity__label {
    color: #fca5a5;
    font-weight: 700;
}

/* ── TRUST STRIP ──────────────────────────────────────────────────────────────── */
.kp-trust-strip {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: var(--kp-surface);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius-lg);
}

.kp-trust-strip__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.kp-trust-strip__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(210, 159, 34, 0.1);
    border: 1px solid rgba(210, 159, 34, 0.2);
    color: var(--kp-accent);
}

.kp-trust-strip__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--kp-text);
    line-height: 1.2;
}

.kp-trust-strip__desc {
    font-size: 0.8rem;
    color: var(--kp-text-faint);
    margin-top: 3px;
    line-height: 1.4;
}

/* ── LINEUP ───────────────────────────────────────────────────────────────────── */
.kp-event__lineup {
    margin-top: 72px;
}

.kp-event__section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600;
    color: var(--kp-text);
    margin: 10px 0 28px;
}

.kp-event__section-title.kp-serif {
    font-weight: 500;
}

.kp-lineup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kp-lineup-card {
    position: relative;
    padding: 22px 20px;
    border-radius: var(--kp-radius);
    border: 1px solid var(--kp-line);
    background: linear-gradient(160deg, var(--kp-surface), var(--kp-surface-2));
    overflow: hidden;
    transition: border-color var(--kp-transition), transform 0.3s var(--kp-ease);
}

.kp-lineup-card:hover {
    border-color: var(--kp-line-strong);
    transform: translateY(-3px);
}

.kp-lineup-card__kmark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0.12;
    pointer-events: none;
}
.kp-lineup-card__kmark img { display: block; border-radius: 4px; }

.kp-lineup-card__name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--kp-text);
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.kp-lineup-card__role {
    font-size: 0.8rem;
    color: var(--kp-text-faint);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* ── INFO GRID ────────────────────────────────────────────────────────────────── */
.kp-event__info-grid {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

.kp-event__info-table {
    margin-top: 24px;
    border-radius: var(--kp-radius);
    overflow: hidden;
    border: 1px solid var(--kp-line);
}

.kp-event__info-row {
    display: flex;
    padding: 14px 18px;
    gap: 16px;
    border-bottom: 1px solid var(--kp-line);
}

.kp-event__info-row:last-child { border-bottom: none; }

.kp-event__info-row--alt {
    background: rgba(255, 255, 255, 0.025);
}

.kp-event__info-key {
    flex: 0 0 120px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kp-text-faint);
}

.kp-event__info-val {
    flex: 1;
    font-size: 0.95rem;
    color: var(--kp-text);
    font-weight: 500;
}

.kp-event__about-text {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--kp-text-dim);
    line-height: 1.7;
}

.kp-event__about-text p { margin-bottom: 1em; }

/* ── MAPA ─────────────────────────────────────────────────────────────────────── */
.kp-event__map-wrap { flex: 1; }

.kp-event__address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--kp-text-dim);
    margin: 0 0 14px;
}

.kp-event__map {
    border-radius: var(--kp-radius);
    overflow: hidden;
    border: 1px solid var(--kp-line);
    background: var(--kp-surface);
}

.kp-event__map iframe {
    display: block;
    filter: grayscale(0.3) contrast(0.9) brightness(0.85);
}

.kp-event__map-placeholder {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kp-event__map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(210, 159, 34, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 159, 34, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
}

.kp-event__map-placeholder-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--kp-text-dim);
}

.kp-event__map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--kp-accent);
    text-decoration: none;
    transition: color var(--kp-transition);
}

.kp-event__map-link:hover { color: var(--kp-gold-light); }

/* ── GALERÍA ──────────────────────────────────────────────────────────────────── */
.kp-event__gallery-section { margin-top: 72px; }

.kp-gallery-carousel {
    position: relative;
}

.kp-gallery__track-wrap {
    overflow: hidden;
    border-radius: var(--kp-radius);
}

.kp-gallery__track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s var(--kp-ease);
    will-change: transform;
}

.kp-gallery__item {
    flex: 0 0 calc(33.333% - 11px);
    border-radius: var(--kp-radius);
    overflow: hidden;
}

.kp-gallery__link {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.kp-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kp-gallery__link:hover .kp-gallery__img { transform: scale(1.06); }

.kp-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 17, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--kp-text);
}

.kp-gallery__link:hover .kp-gallery__overlay { opacity: 1; }

.kp-gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--kp-line);
    background: rgba(19, 17, 20, 0.8);
    backdrop-filter: blur(8px);
    color: var(--kp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--kp-transition), background var(--kp-transition);
    z-index: 2;
}

.kp-gallery__btn:hover {
    border-color: var(--kp-line-strong);
    background: rgba(19, 17, 20, 1);
}

.kp-gallery__btn--prev { left: -20px; }
.kp-gallery__btn--next { right: -20px; }
.kp-gallery__btn:disabled { opacity: 0.3; cursor: default; }

/* Lightbox */
.kp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.kp-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.kp-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--kp-radius);
    object-fit: contain;
}

.kp-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--kp-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--kp-transition);
}

.kp-lightbox__close:hover { background: rgba(255,255,255,0.1); }

/* ── FAQ ──────────────────────────────────────────────────────────────────────── */
.kp-event__faq-section { margin-top: 72px; }

.kp-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kp-faq__item {
    border-radius: var(--kp-radius);
    border: 1px solid var(--kp-line);
    overflow: hidden;
    transition: border-color var(--kp-transition);
}

.kp-faq__item:has(.kp-faq__question[aria-expanded="true"]) {
    border-color: var(--kp-line-strong);
}

.kp-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--kp-text);
    font-family: var(--kp-font-brand);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background var(--kp-transition);
}

.kp-faq__question:hover { background: rgba(255,255,255,0.03); }
.kp-faq__question[aria-expanded="true"] { color: var(--kp-accent); }

.kp-faq__q-text { flex: 1; }

.kp-faq__icon {
    flex-shrink: 0;
    color: var(--kp-text-faint);
    transition: transform 0.3s var(--kp-ease), color 0.3s;
    display: flex;
}

.kp-faq__question[aria-expanded="true"] .kp-faq__icon {
    transform: rotate(180deg);
    color: var(--kp-accent);
}

.kp-faq__answer {
    padding: 0 20px 18px;
    font-size: 0.93rem;
    color: var(--kp-text-dim);
    line-height: 1.65;
}

.kp-faq__answer:not([hidden]) { display: block; }

/* ── EXTRA SECTION ────────────────────────────────────────────────────────────── */
.kp-event__extra-section { margin-top: 60px; }

/* ── FOOTER CTA ───────────────────────────────────────────────────────────────── */
.kp-event__footer-cta {
    margin-top: 80px;
    position: relative;
    border-radius: var(--kp-radius-lg);
    border: 1px solid var(--kp-line);
    overflow: hidden;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(160deg, var(--kp-surface), var(--kp-surface-2));
}

.kp-event__footer-cta-content {
    position: relative;
    z-index: 2;
}

.kp-event__footer-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--kp-text);
    margin: 10px 0 0;
}

.kp-event__footer-cta-title em {
    font-style: italic;
    color: var(--kp-accent);
}

.kp-event__footer-cta-desc {
    margin-top: 14px;
    font-size: 1.05rem;
    color: var(--kp-text-dim);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.kp-event__footer-cta .kp-btn {
    margin-top: 28px;
}

.kp-event__footer-cta .kp-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
}

/* ── STICKY CTA MOBILE ────────────────────────────────────────────────────────── */
.kp-event__sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(19, 17, 20, 0.94);
    border-top: 1px solid var(--kp-line);
    backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 0.35s var(--kp-ease);
}

.kp-event__sticky-cta.is-visible {
    transform: translateY(0);
    aria-hidden: auto;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .kp-event__top-row { grid-template-columns: 1fr 340px; gap: 36px; }
    .kp-lineup-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .kp-event__top-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kp-event__cta-wrap {
        position: static;
    }

    .kp-event__info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kp-trust-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kp-lineup-grid { grid-template-columns: repeat(2, 1fr); }

    .kp-countdown { padding: 16px 20px; }
    .kp-countdown__num { font-size: 2.2rem; }

    .kp-event__sticky-cta { display: block; }
}

@media (max-width: 600px) {
    .kp-event__title { font-size: 2rem; }

    .kp-gallery__item { flex: 0 0 calc(80% - 8px); }

    .kp-lineup-grid { grid-template-columns: 1fr 1fr; }

    .kp-event__footer-cta { padding: 40px 20px; }

    .kp-gallery__btn--prev { left: -12px; }
    .kp-gallery__btn--next { right: -12px; }
}

@media (max-width: 400px) {
    .kp-countdown { padding: 14px 12px; gap: 4px; }
    .kp-countdown__cell { min-width: 44px; }
    .kp-countdown__num { font-size: 1.8rem; }
    .kp-lineup-grid { grid-template-columns: 1fr; }
}
