/* ============================================================
   /preventa — la página que explica la preventa
   Primitivas en ps-system.css (.ps-page, .ps-slab, .ps-btn). La tarjeta de
   las preventas abiertas es la de la galería (gallery.css).

   Es zona del atleta: el acento es el verde, incluido el serif del título.
   La única pieza violeta es la franja "¿Eres fotógrafo?", que es suya.
   ============================================================ */

.pl { padding-bottom: 0; }

.pl-h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--ps-fs-display);
    line-height: .95;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}

.pl-sec { padding: 96px 0 0; scroll-margin-top: 72px; }
.pl-sec__head { display: flex; flex-direction: column; gap: 14px; }

/* Verde de atleta sobre la geometría de .ps-btn */
.pl-btn { height: 52px; padding: 0 28px; }
.pl-btn--athlete { background: var(--accent); }
.pl-btn--athlete:hover { background: var(--accent-dark); }
.pl-btn--athlete:focus-visible { outline-color: var(--accent); }

/* ------------------------------------------------------------
   Cabecera: foto a sangre bajo un velo que oscurece por la izquierda,
   donde cae el título. Rompe el padding de .ps-page como .ps-plate.
   ------------------------------------------------------------ */
.pl-hero {
    position: relative;
    overflow: hidden;
    margin: 0 calc(-1 * var(--ps-pad-x));
    padding: 96px var(--ps-pad-x) 120px;
    background: var(--charcoal);
}
.pl-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 35%;
    filter: grayscale(.55) brightness(.75);
}
.pl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, var(--black) 0%, rgba(10, 10, 15, 0) 30%),
        linear-gradient(90deg, rgba(10, 10, 15, .97) 0%, rgba(10, 10, 15, .9) 38%, rgba(10, 10, 15, .55) 70%, rgba(10, 10, 15, .35) 100%);
}
.pl-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 64px;
    align-items: center;
}
.pl-hero__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pl-hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.25rem, 7.2vw, 6.5rem);
    line-height: .86;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
}
.pl-hero__title em {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: .92em;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    color: var(--accent);
}
.pl-hero__lead {
    max-width: 540px;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    color: #C4C4D0;
}
.pl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* La carpeta de ejemplo: lo que el comprador recibe, antes de leer nada. */
.pl-folder { position: relative; }
.pl-folder__card { background: var(--panel); border: 1px solid var(--border-light); }
.pl-folder__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}
.pl-folder__who { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pl-folder__kicker {
    font-family: var(--font-display);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}
.pl-folder__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.pl-folder__bib {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #C4C4D0;
    font-variant-numeric: tabular-nums;
}
.pl-folder__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ps-mortar);
    background: var(--black);
}
.pl-folder__shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pl-folder__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-folder__shot.is-picked::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 2px solid var(--accent);
}
.pl-folder__shot.is-picked::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 22px;
    height: 22px;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0F' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pl-folder__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: .875rem;
    font-weight: 300;
    color: var(--text-secondary);
}
.pl-folder__dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-display);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.pl-folder__note {
    margin: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #202029;
    border-left: 2px solid var(--accent);
    font-size: .875rem;
    line-height: 1.35;
    color: #D8D8E2;
}
.pl-folder__note svg { flex-shrink: 0; color: var(--accent); }

/* ------------------------------------------------------------
   Cómo funciona
   ------------------------------------------------------------ */
.pl-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ps-mortar);
    margin: 44px 0 20px;
}
.pl-track > span { display: flex; align-items: center; }
.pl-track > span::before { content: ''; width: 12px; height: 12px; background: var(--accent); flex-shrink: 0; }
.pl-track > span:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--border-light); }
.pl-track em {
    margin-left: 14px;
    font-family: var(--font-display);
    font-style: normal;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.pl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ps-mortar);
}
.pl-step {
    min-height: 300px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--panel);
    border-left: 2px solid var(--border-light);
}
.pl-step--last { border-left-color: var(--accent); }
.pl-step__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: auto;
    padding-bottom: 24px;
    color: var(--accent);
}
.pl-step__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 6rem;
    line-height: .8;
    letter-spacing: -.03em;
    color: var(--border-light);
    font-variant-numeric: tabular-nums;
}
.pl-step__title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin: 0;
}
.pl-step__text,
.pl-perk__text {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ------------------------------------------------------------
   Por qué en preventa
   ------------------------------------------------------------ */
.pl-why {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    align-items: center;
}
.pl-why__photo { position: relative; height: 560px; margin: 0; overflow: hidden; background: var(--charcoal); }
.pl-why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; display: block; }
.pl-why__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, .92) 0%, rgba(10, 10, 15, .15) 55%, transparent 100%);
}
.pl-why__photo figcaption {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 36px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pl-why__claim {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 4.2vw, 3.375rem);
    line-height: .92;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--white);
    max-width: 9ch;
}
.pl-why__body { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.pl-perks { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.pl-perk { display: flex; gap: 22px; padding: 24px 0; border-top: 1px solid var(--border); }
.pl-perk > div { display: flex; flex-direction: column; gap: 6px; }
.pl-perk__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    color: var(--accent);
}
.pl-perk__title { font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; color: var(--white); margin: 0; }

/* ------------------------------------------------------------
   Preventas abiertas: el carril de la galería sobre una placa carbón
   ------------------------------------------------------------ */
.pl-open {
    margin: 96px calc(-1 * var(--ps-pad-x)) 0;
    padding: 88px var(--ps-pad-x) 96px;
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 72px;
}
.pl-open__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.pl-open__sub {
    max-width: 360px;
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ------------------------------------------------------------
   Preguntas frecuentes: <details> nativo, se abre sin JavaScript
   ------------------------------------------------------------ */
.pl-faq {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}
.pl-faq__sub {
    max-width: 380px;
    margin: 8px 0 0;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
}
.pl-faq__list { display: flex; flex-direction: column; gap: var(--ps-mortar); }
.pl-q { background: var(--panel); border-left: 2px solid var(--border); }
.pl-q[open] { border-left-color: var(--accent); }
.pl-q summary {
    min-height: 68px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--white);
}
.pl-q summary::-webkit-details-marker { display: none; }
.pl-q summary:focus-visible { outline: 2px solid var(--ice-bright); outline-offset: 2px; }
.pl-q__sign {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.pl-q__sign::before,
.pl-q__sign::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    background: var(--text-secondary);
    transition: transform .2s ease;
}
.pl-q__sign::after { transform: rotate(90deg); }
.pl-q[open] .pl-q__sign::before,
.pl-q[open] .pl-q__sign::after { background: var(--accent); }
.pl-q[open] .pl-q__sign::after { transform: rotate(0deg); }
.pl-q p {
    margin: 0;
    padding: 0 76px 24px 24px;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.6;
    color: #B4B4C2;
}

/* ------------------------------------------------------------
   ¿Eres fotógrafo?
   ------------------------------------------------------------ */
.pl-pro {
    position: relative;
    overflow: hidden;
    margin: 112px calc(-1 * var(--ps-pad-x)) 0;
    padding: 96px var(--ps-pad-x);
    background: var(--charcoal);
}
.pl-pro__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    filter: grayscale(1);
}
.pl-pro::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 15, .96) 0%, rgba(10, 10, 15, .88) 50%, rgba(10, 10, 15, .6) 100%);
}
.pl-pro__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}
.pl-pro__copy { max-width: 660px; display: flex; flex-direction: column; gap: 18px; }
.pl-pro__copy .ps-slab { color: var(--ice-bright); }
.pl-pro__copy p { margin: 0; font-size: 1.1875rem; font-weight: 300; line-height: 1.5; color: #C4C4D0; }

/* El resto del contenido comparte el ancho de la cabecera */
.pl-sec,
.pl-open__head,
.pl-open .pl-open__rail { max-width: 1200px; margin-left: auto; margin-right: auto; }
.pl-open .pl-open__rail { margin-right: auto; padding-right: 0; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1099px) {
    .pl-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .pl-folder { max-width: 470px; }
    .pl-why { gap: 48px; }
    .pl-faq { gap: 48px; }
}

@media (max-width: 767px) {
    .pl-sec { padding-top: 64px; }

    .pl-hero { padding: 150px var(--ps-pad-x) 56px; background: var(--black); }
    .pl-hero__photo { height: 420px; object-position: 72% 30%; }
    .pl-hero::after {
        height: 420px;
        background: linear-gradient(to top, var(--black) 0%, rgba(10, 10, 15, .75) 45%, rgba(10, 10, 15, .35) 100%);
    }
    .pl-hero__lead { font-size: 1.0625rem; }
    .pl-hero__actions .pl-btn { flex: 1 1 100%; }
    .pl-folder__grid .pl-folder__shot:nth-child(n + 4) { display: none; }
    .pl-folder__foot { display: none; }

    .pl-track { display: none; }
    .pl-steps { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
    .pl-step { min-height: 0; padding: 24px 20px; flex-direction: row; flex-wrap: wrap; column-gap: 18px; row-gap: 6px; }
    .pl-step__top { margin: 0; padding: 0; width: 56px; }
    .pl-step__top svg { display: none; }
    .pl-step__num { font-size: 3.5rem; }
    .pl-step__title { font-size: 1.5rem; flex: 1; align-self: center; }
    .pl-step__text { flex-basis: 100%; padding-left: 74px; font-size: .9375rem; }

    .pl-why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pl-why__photo { height: 320px; margin: 0 calc(-1 * var(--ps-pad-x)); }
    .pl-why__photo figcaption { left: var(--ps-pad-x); right: var(--ps-pad-x); bottom: 24px; }
    .pl-why__body { gap: 24px; }
    .pl-perk { gap: 16px; padding: 20px 0; }
    .pl-perk__icon { width: 44px; height: 44px; }
    .pl-perk__title { font-size: 1.375rem; }
    .pl-perk__text { font-size: .9375rem; }

    .pl-open { margin-top: 64px; padding: 56px var(--ps-pad-x) 60px; }
    .pl-open__head { margin-bottom: 28px; }
    .pl-open__sub { font-size: .9375rem; }
    .pl-open .pl-open__rail { margin-right: calc(-1 * var(--ps-pad-x)); padding-right: var(--ps-pad-x); }

    .pl-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pl-q summary { min-height: 64px; padding: 16px; font-size: 1rem; gap: 14px; }
    .pl-q__sign { width: 30px; height: 30px; }
    .pl-q p { padding: 0 16px 20px; font-size: .9375rem; }

    .pl-pro { margin-top: 64px; padding: 56px var(--ps-pad-x); }
    .pl-pro::after { background: rgba(10, 10, 15, .88); }
    .pl-pro .pl-btn { flex: 1 1 100%; }
    .pl-pro__copy p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pl-q__sign::before,
    .pl-q__sign::after { transition: none; }
}
