/* ============================================================
   Ficha de un evento en preventa (Events/Show.cshtml, rama IsPresale)

   La portada a sangre como fondo, el fotógrafo firmando la oferta y los packs
   como placas grandes. Móvil primero: todo se apila y crece hacia los lados
   desde 768 px. Colores y tipos salen de peakshot-theme.css.
   ============================================================ */

.pvx-label {
    display: block;
    margin: 0;
    font-family: var(--font-display);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #9898A8;
}
.pvx-label--ice { color: var(--ice-bright); }
.pvx-dot { width: 4px; height: 4px; background: var(--ice-bright); flex-shrink: 0; }
.pvx-h2 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.625rem);
    line-height: .95;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

/* ---------- Cabecera ---------- */
.pvx-hero {
    position: relative;
    overflow: hidden;
    margin: 0 calc(-1 * var(--ps-pad-x));
    min-height: min(78vh, 640px);
    padding: 96px var(--ps-pad-x) 112px;
    display: flex;
    align-items: flex-end;
    background: var(--black);
}
.pvx-hero__photo,
.pvx-hero > .ps-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: saturate(.85) contrast(1.05);
}
/* El velo: arriba para el navbar, abajo para fundir con la página y a la
   izquierda para el título. Lee sobre cualquier portada, clara u oscura. */
.pvx-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, .55) 0%, rgba(10, 10, 15, .12) 28%, rgba(10, 10, 15, .6) 64%, var(--black) 100%),
        linear-gradient(90deg, rgba(10, 10, 15, .78) 0%, rgba(10, 10, 15, .12) 58%, rgba(10, 10, 15, 0) 100%);
}
.pvx-hero--nocover::after {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 50%, var(--black) 100%);
}
.pvx-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.pvx-hero__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 900px; }

.pvx-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(242, 242, 248, .8);
}
.pvx-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    background: var(--accent);
    color: var(--black);
}
.pvx-status--off { background: var(--warning); }
.pvx-status__dot { width: 6px; height: 6px; background: currentColor; }

.pvx-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.75rem, 10vw, 7.375rem);
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.pvx-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
    font-size: 1rem;
    color: var(--white);
}
.pvx-hero__meta i { margin-right: 4px; opacity: .8; }
@media (max-width: 575px) {
    .pvx-hero__meta { flex-direction: column; align-items: flex-start; }
    .pvx-hero__meta .pvx-dot { display: none; }
}

.pvx-count {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(17, 17, 24, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-left: 2px solid var(--ice);
}
.pvx-count__days { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.pvx-count__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.25rem, 9vw, 5.25rem);
    line-height: .8;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.pvx-count__label,
.pvx-count__today {
    margin: 0;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #9898A8;
    max-width: 10ch;
    line-height: 1.4;
}
.pvx-count__today { max-width: none; font-size: 1rem; color: var(--white); letter-spacing: .12em; }
.pvx-bar { position: relative; height: 2px; background: var(--border); }
.pvx-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.pvx-bar--off > span { background: var(--warning); }
.pvx-count__line { margin: 0; font-size: .875rem; color: #9898A8; }

@media (min-width: 900px) {
    .pvx-hero__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
    .pvx-count { width: 300px; flex-shrink: 0; }
}

/* ---------- El fotógrafo ---------- */
.pvx-author {
    position: relative;
    z-index: 3;
    margin: -72px 0 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    background: var(--charcoal);
    border-left: 2px solid var(--ice);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.pvx-author__face {
    position: relative;
    grid-row: 1;
    min-height: 112px;
    overflow: hidden;
    background: var(--ice-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pvx-author__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pvx-author__rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ice-bright); opacity: .35; }
.pvx-author__mono {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.75rem;
    letter-spacing: -.04em;
    color: var(--white);
}
.pvx-author__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    background: var(--ice);
    color: var(--black);
    font-family: var(--font-display);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.pvx-author__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 18px;
    min-width: 0;
}
.pvx-author .pvx-author__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 3.625rem);
    line-height: .95;
    letter-spacing: -.02em;
    color: var(--white);
    text-decoration: none;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
}
.pvx-author a.pvx-author__name:hover { color: var(--ice-bright); text-decoration: none; }
.pvx-author a.pvx-author__name:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: 3px; }
.pvx-author__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0;
    font-size: .9375rem;
    color: #9898A8;
}
.pvx-author__meta a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-weight: 500;
    color: var(--ice-bright);
    text-decoration: none;
}
.pvx-author__meta a:hover { color: var(--white); }
.pvx-author__promise {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    background: var(--panel);
    border-top: 2px solid var(--black);
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    line-height: 1.18;
    color: var(--white);
}
.pvx-author__promise em { color: var(--ice-bright); }

@media (min-width: 576px) {
    .pvx-author { grid-template-columns: 136px minmax(0, 1fr); }
    .pvx-author__face { min-height: 152px; }
    .pvx-author__mono { font-size: 4rem; }
    .pvx-author__body { padding: 22px 28px; }
}
@media (min-width: 1100px) {
    .pvx-author { margin-top: -88px; grid-template-columns: 200px minmax(0, 1fr) minmax(320px, 420px); }
    .pvx-author__face { min-height: 220px; }
    .pvx-author__mono { font-size: 6.5rem; }
    .pvx-author__badge { height: 26px; padding: 0 10px; font-size: .6875rem; }
    .pvx-author__body { padding: 32px 40px; gap: 12px; }
    .pvx-author__promise {
        grid-column: auto;
        align-self: stretch;
        display: grid;
        align-content: center;
        padding: 32px 40px;
        border-top: 0;
        border-left: 2px solid var(--black);
    }
}

/* ---------- Packs ---------- */
.pvx-packs { padding-top: 64px; display: flex; flex-direction: column; gap: 24px; }
.pvx-packs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.pvx-packs__list { margin: 0; font-size: .9375rem; color: #9898A8; }
.pvx-packs__list strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.pvx-notice {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: var(--panel);
    box-shadow: inset 2px 0 0 var(--warning);
}
.pvx-notice i { color: var(--warning); font-size: 1.25rem; line-height: 1.3; }
.pvx-notice p { margin: 0; font-size: .9375rem; line-height: 1.5; color: #9898A8; }
.pvx-notice strong { display: block; font-weight: 500; color: var(--white); }

.pvx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: var(--black); }
@media (min-width: 768px) {
    .pvx-grid[data-count="2"],
    .pvx-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .pvx-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pvx-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 18px 18px;
    background: var(--charcoal);
    min-width: 0;
}
.pvx-pack.is-featured { background: var(--panel); box-shadow: inset 0 2px 0 var(--ice); }
.pvx-pack.is-off { opacity: .55; }
.pvx-pack__flag {
    position: absolute;
    top: 0;
    right: 0;
    height: 28px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: var(--ice);
    color: var(--black);
    font-family: var(--font-display);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.pvx-pack__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.pvx-pack__qty { display: flex; align-items: flex-end; gap: 10px; margin: 0; }
.pvx-pack__num {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5.5rem, 16vw, 10.5rem);
    line-height: .74;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
.pvx-pack__num--word { font-size: clamp(3.5rem, 10vw, 6.5rem); line-height: .8; }
.pvx-pack__unit {
    max-width: 6ch;
    padding-bottom: 4px;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #9898A8;
}
.pvx-pack__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.pvx-pack__amount {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 6vw, 3.375rem);
    line-height: .9;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.pvx-pack__per { font-size: .875rem; color: #9898A8; text-align: right; }
.pvx-pack__per s { color: var(--muted); }
.pvx-pack__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9898A8;
    overflow-wrap: anywhere;
}
.pvx-pack__foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 2px solid var(--border);
}
.pvx-pack__by { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .875rem; line-height: 1.4; color: #9898A8; }
.pvx-pack__by strong { font-weight: 500; color: var(--white); }
.pvx-pack__by .pvx-save { color: var(--accent); }
.pvx-mini {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ice-dim);
    border: 1px solid var(--ice);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    color: var(--white);
}
.pvx-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pvx-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-display);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .15s ease;
}
.pvx-cta:hover { background: var(--accent-dark); color: var(--black); }
.pvx-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.pvx-cta--off { background: transparent; border: 1px solid var(--border-light); color: var(--muted); cursor: default; }
.pvx-cta--off:hover { background: transparent; color: var(--muted); }

@media (min-width: 576px) {
    .pvx-pack { padding: 40px 32px 28px; gap: 24px; }
    .pvx-pack__foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 575px) {
    .pvx-cta { width: 100%; }
}

/* ---------- Cómo funciona ---------- */
.pvx-steps { padding: 64px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.pvx-steps__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.pvx-steps__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 500;
    color: var(--ice-bright);
    text-decoration: none;
}
.pvx-steps__more:hover { color: var(--white); }
.pvx-steps__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 900px) { .pvx-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pvx-steps__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px;
    background: var(--charcoal);
}
.pvx-steps__n {
    grid-row: span 2;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 1;
    color: var(--ice-dim);
    font-variant-numeric: tabular-nums;
}
.pvx-steps__list strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.pvx-steps__list li > span:last-child { font-size: .9375rem; font-weight: 300; line-height: 1.5; color: #9898A8; }
@media (min-width: 900px) {
    .pvx-steps__list li { grid-template-columns: minmax(0, 1fr); padding: 28px 28px 30px; row-gap: 10px; }
    .pvx-steps__n { grid-row: auto; font-size: 2.5rem; }
    .pvx-steps__list strong { font-size: 1.5rem; }
}
.pvx-promise {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--muted);
}
.pvx-promise i { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    .pvx-cta { transition: none; }
}
