/* ================================================================
   PurePix — capa visual propia
   Se carga DESPUÉS de app.css (la base heredada de dreamfxapp).
   app.css aporta los componentes funcionales (dropzone, progreso,
   modal de vídeo, legales); este archivo define la estructura y el
   lenguaje visual de PurePix: cabecera + barra de pestañas, portada
   dividida con muro animado, carruseles por categoría, galería con
   lateral, ficha de efecto en dos columnas, creador por pasos y
   login en pantalla dividida.
   ================================================================ */

:root {
    --bg: #0c0b10;
    --bg-soft: #131218;
    --surface: #17161d;
    --surface-2: #211f28;
    --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Syne", "Onest", sans-serif;
    --wrap: 1240px;
    --top-h: 68px;
    --tab-h: 64px;
    --r-card: 18px;
}
html.rtl { --font-display: "Alexandria", sans-serif; --font: "Alexandria", "Onest", sans-serif; }

body.px { font-family: var(--font); font-size: 16px; }
.px h1, .px h2, .px h3, .px-display, .px-h1, .px-h2 { font-family: var(--font-display); }

.px-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.skip-link { position: absolute; inset-inline-start: 1rem; top: .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; z-index: 200; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; border-radius: 10px; }

/* ---------- Botones ---------- */
.px-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .6rem 1.15rem;
    border-radius: 12px; border: 1px solid transparent;
    font: 600 .95rem/1 var(--font);
    cursor: pointer; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.px-btn:active { transform: scale(.98); }
.px-btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.px-btn-block { width: 100%; }
.px-btn-accent { background: var(--accent); color: var(--on-accent); }
.px-btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.px-btn-line { border-color: var(--border-strong); color: var(--ink); }
.px-btn-line:hover { background: var(--surface); color: var(--ink); }
.px-btn-dark { background: #120a07; color: #fff; }
.px-btn-dark:hover { background: #000; color: #fff; }
.px-link { color: var(--accent); font-weight: 600; }
.px-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }

/* Los botones heredados (.btn) adoptan la misma forma */
.px .btn { border-radius: 12px; font-family: var(--font); }
.px .btn-lg { border-radius: 14px; min-height: 54px; }
.px .btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }

/* ---------- Cabecera ---------- */
.px-top {
    position: sticky; top: 0; z-index: 60;
    background: rgba(12,11,16,.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.px-top-in {
    max-width: var(--wrap); margin: 0 auto; height: var(--top-h);
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
}
.px-logo { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.px-logo img { border-radius: 9px; }
.px-logo-sm { font-size: 1.05rem; }
.px-logo-sm img { border-radius: 7px; }

.px-nav {
    justify-self: center;
    display: flex; gap: .25rem; padding: .3rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.px-nav a {
    padding: .5rem 1rem; border-radius: 999px;
    color: var(--ink-soft); font-weight: 500; font-size: .93rem;
}
.px-nav a:hover { color: var(--ink); }
.px-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }

.px-actions { display: flex; align-items: center; gap: .5rem; }
.px-icon-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 40px; padding: 0 .7rem;
    background: transparent; border: 1px solid var(--border); border-radius: 12px;
    color: var(--ink-soft); font: 600 .82rem/1 var(--font); cursor: pointer; list-style: none;
}
.px-icon-btn:hover { color: var(--ink); border-color: var(--border-strong); }
.px-icon-btn::-webkit-details-marker { display: none; }
.px-login { padding: .55rem .9rem; color: var(--ink); font-weight: 600; }

.px-lang, .px-account { position: relative; }
.px-lang-menu, .px-account-menu {
    position: absolute; top: calc(100% + .5rem); inset-inline-end: 0; z-index: 70;
    min-width: 200px; padding: .4rem; margin: 0; list-style: none;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.px-lang-menu a, .px-account-menu a {
    display: flex; align-items: center; gap: .65rem;
    padding: .6rem .7rem; border-radius: 10px; color: var(--ink); font-size: .92rem;
}
.px-lang-menu a:hover, .px-account-menu a:hover { background: var(--surface-2); }
.px-lang-menu a[aria-current="true"] { background: var(--accent-soft); }
.px-lang-tag { font: 700 .7rem/1 var(--font); color: var(--ink-mute); width: 1.6rem; }
.px-acc-full { display: block; padding: .5rem .7rem .6rem; color: var(--ink-mute); font-size: .8rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; font-feature-settings: 'tnum'; }

/* ---------- Barra de pestañas (móvil) ---------- */
.px-tabbar { display: none; }
@media (max-width: 860px) {
    .px-nav, .px-create-top { display: none; }
    .px-top-in { grid-template-columns: 1fr auto; }
    .px-acc-num { display: none; }

    .px-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        height: calc(var(--tab-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(19,18,24,.96);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
    }
    .px-tabbar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
        color: var(--ink-mute); font-size: .68rem; font-weight: 600; text-align: center; line-height: 1.1;
    }
    .px-tabbar a[aria-current="page"] { color: var(--ink); }
    .px-tabbar a[aria-current="page"] svg { color: var(--accent); }
    .px-fab {
        display: grid; place-items: center;
        width: 46px; height: 46px; margin-top: -18px;
        border-radius: 16px; background: var(--accent); color: var(--on-accent);
        box-shadow: 0 8px 24px rgba(255,122,89,.35);
    }
    .px-tab-create[aria-current="page"] .px-fab svg { color: var(--on-accent); }
    body.px { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Tipografía ---------- */
.px-kicker { font: 700 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.px-display { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.px-display em { display: block; font-style: normal; color: var(--accent); }
.px-h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.px-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.px-lead { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34rem; margin-top: 1rem; }
html.rtl .px-display, html.rtl .px-h1, html.rtl .px-h2 { letter-spacing: 0; line-height: 1.25; }

/* ---------- Portada: hero dividido ---------- */
.px-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.px-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.px-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.px-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 2rem; list-style: none; color: var(--ink-mute); font-size: .9rem; }
.px-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.px-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.px-wall {
    height: min(620px, 72vh);
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    overflow: hidden;
}
.px-wall-track { display: flex; flex-direction: column; gap: 14px; animation: px-scroll 40s linear infinite; }
.px-wall-col-1 .px-wall-track { animation-duration: 48s; animation-direction: reverse; }
.px-wall:hover .px-wall-track { animation-play-state: paused; }
.px-wall-item { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3/4; background: var(--surface); }
.px-wall-item img { width: 100%; height: 100%; object-fit: cover; }
.px-wall-item figcaption {
    position: absolute; left: .6rem; bottom: .6rem;
    padding: .3rem .6rem; border-radius: 999px;
    background: rgba(12,11,16,.72); backdrop-filter: blur(6px);
    color: #fff; font-size: .75rem; font-weight: 600;
}
html.rtl .px-wall-item figcaption { left: auto; right: .6rem; }
@keyframes px-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }

@media (max-width: 860px) {
    .px-hero-grid { grid-template-columns: 1fr; }
    .px-wall {
        order: -1; height: auto; display: block;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
                mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }
    .px-wall-col-1 { display: none; }
    .px-wall-track { flex-direction: row; width: max-content; animation-name: px-scroll-x; }
    .px-wall-item { width: 130px; }
    .px-hero-cta .px-btn { flex: 1 1 auto; }
}
@keyframes px-scroll-x { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
html.rtl .px-wall-track { animation-direction: reverse; }

/* ---------- Secciones ---------- */
.px-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.px-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- Tarjeta de efecto (texto bajo la imagen) ---------- */
.fx-card { display: flex; flex-direction: column; gap: .15rem; color: var(--ink); min-width: 0; }
.fx-card[hidden] { display: none; }
.fx-media {
    position: relative; display: block; aspect-ratio: 3/4; margin-bottom: .5rem;
    border-radius: var(--r-card); overflow: hidden; background: var(--surface);
}
.fx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fx-ph { position: absolute; inset: 0; background: var(--brand-grad-diag); }
.fx-play {
    position: absolute; right: .6rem; bottom: .6rem;
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #111;
    opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
html.rtl .fx-play { right: auto; left: .6rem; }
.fx-card:hover .fx-media img, .fx-card:focus-visible .fx-media img { transform: scale(1.05); }
.fx-card:hover .fx-play, .fx-card:focus-visible .fx-play { opacity: 1; transform: none; }
.fx-name { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.fx-cat { color: var(--ink-mute); font-size: .82rem; }

/* ---------- Carruseles ---------- */
.px-rail { margin-top: 2rem; }
.px-rail-head h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .85rem; }
.px-rail-head h3 span { color: var(--ink-mute); font: 500 .85rem var(--font); margin-inline-start: .35rem; }
.px-rail-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 220px); gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0 max(clamp(1rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + clamp(1rem, 4vw, 2.5rem)));
    scroll-padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100vw - var(--wrap)) / 2 + clamp(1rem, 4vw, 2.5rem)));
}
.px-rail-track::-webkit-scrollbar { display: none; }
.px-rail-track > * { scroll-snap-align: start; }
@media (max-width: 640px) { .px-rail-track { grid-auto-columns: 42vw; gap: .75rem; } }

/* ---------- Cómo funciona ---------- */
.px-how { background: var(--bg-soft); border-block: 1px solid var(--border); }
.px-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; list-style: none; counter-reset: none; }
.px-steps li { border-top: 2px solid var(--border-strong); padding-top: 1.25rem; }
.px-steps li:first-child { border-top-color: var(--accent); }
.px-step-n { display: block; font: 800 2.4rem/1 var(--font-display); color: var(--ink-mute); margin-bottom: .75rem; }
.px-steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.px-steps p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .px-steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Banda final ---------- */
.px-band { background: var(--brand-grad); color: var(--on-accent); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.px-band-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.px-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; max-width: 22ch; color: var(--on-accent); }
.px-band p { margin-top: .5rem; color: rgba(29,15,10,.8); }

/* ---------- Pie ---------- */
.px-foot { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--ink-mute); font-size: .88rem; }
.px-foot-in {
    max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem);
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem 2rem;
}
.px-foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.px-foot-links a { color: var(--ink-soft); }
.px-foot-links a:hover { color: var(--ink); }
.px-foot-copy { grid-column: 1 / -1; font-size: .8rem; }
@media (max-width: 760px) { .px-foot-in { grid-template-columns: 1fr; } }

/* ---------- Cabeceras de página ---------- */
.px-page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }

/* ---------- Galería con lateral ---------- */
.px-gallery { display: grid; grid-template-columns: 230px 1fr; gap: 2.5rem; padding-bottom: 4rem; }
.px-gallery-side { position: sticky; top: calc(var(--top-h) + 1.25rem); align-self: start; display: grid; gap: 1rem; }
.px-search {
    display: flex; align-items: center; gap: .5rem;
    padding: 0 .85rem; min-height: 46px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--ink-mute);
}
.px-search:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.px-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; outline: none; }
.px-cats { display: grid; gap: .15rem; }
.px-cat {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 42px; padding: .5rem .8rem; border-radius: 10px;
    background: transparent; border: 0; color: var(--ink-soft); font: 500 .95rem var(--font); text-align: start; cursor: pointer;
}
.px-cat span { color: var(--ink-mute); font-size: .8rem; }
.px-cat:hover { background: var(--surface); color: var(--ink); }
.px-cat.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.px-meta { color: var(--ink-mute); font-size: .88rem; margin-bottom: 1rem; }
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem 1rem; }
.px-empty { color: var(--ink-soft); padding: 3rem 0; text-align: center; }
@media (max-width: 860px) {
    .px-gallery { grid-template-columns: 1fr; gap: 1rem; }
    .px-gallery-side { position: static; }
    .px-cats { display: flex; overflow-x: auto; gap: .4rem; scrollbar-width: none; margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem)); padding: 0 clamp(1rem, 4vw, 2.5rem); }
    .px-cats::-webkit-scrollbar { display: none; }
    .px-cat { flex: 0 0 auto; gap: .4rem; border: 1px solid var(--border); border-radius: 999px; }
    .px-cat.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
    .px-cat.is-active span { color: var(--bg); opacity: .6; }
    .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
}

/* ---------- Ficha de efecto ---------- */
.px-fx { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-top: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.px-fx-media {
    position: sticky; top: calc(var(--top-h) + 1.25rem);
    aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
    background-size: cover; background-position: center; background-color: var(--surface);
}
.px-fx-video { width: 100%; height: 100%; object-fit: cover; }
.px-fx-empty { position: absolute; inset: auto 0 1rem; text-align: center; color: #fff; }
.px-fx-info { padding-top: .5rem; }
.px-crumbs a { color: var(--ink-mute); font-size: .9rem; }
.px-crumbs a::before { content: "← "; }
html.rtl .px-crumbs a::before { content: "→ "; }
.px-crumbs a:hover { color: var(--ink); }
.px-tag { display: inline-block; margin: 1.5rem 0 .75rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; }
.px-specs { display: flex; gap: 2.5rem; margin: 1.75rem 0; padding: 1rem 0; border-block: 1px solid var(--border); }
.px-specs dt { color: var(--ink-mute); font-size: .8rem; }
.px-specs dd { font: 700 1.25rem var(--font-display); margin: .2rem 0 0; }
.px-mini-steps { margin-top: 1.75rem; display: grid; gap: .75rem; list-style: none; counter-reset: s; }
.px-mini-steps li { counter-increment: s; display: flex; gap: .75rem; align-items: center; color: var(--ink-soft); }
.px-mini-steps li::before {
    content: counter(s); flex: 0 0 28px; height: 28px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--border-strong); color: var(--ink); font-size: .8rem; font-weight: 700;
}
@media (max-width: 860px) {
    .px-fx { grid-template-columns: 1fr; }
    .px-fx-media { position: relative; top: 0; aspect-ratio: 1/1; border-radius: 20px; }
}

/* ---------- Crear vídeo (app.php) ---------- */
.px .app-shell { padding: clamp(1.5rem, 4vw, 3rem) 0 4rem; }
.px .app-header { text-align: start; margin-bottom: 1.5rem; }
.px .app-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.px .app-header p { margin-inline: 0; }
.px-stepper { display: flex; gap: .5rem; list-style: none; margin-bottom: 2rem; flex-wrap: wrap; }
.px-stepper li {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
    border: 1px solid var(--border); color: var(--ink-mute); font-size: .88rem; font-weight: 600;
}
.px-stepper li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: .78rem; }
.px-stepper li.is-current { color: var(--ink); border-color: var(--accent); }
.px-stepper li.is-current span { background: var(--accent); color: var(--on-accent); }
.px-stepper li.is-done { color: var(--ink-soft); }
.px-stepper li.is-done span { background: var(--accent-soft); color: var(--accent); }
.px .app-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: start; }
.px .app-sidebar { order: -1; position: sticky; top: calc(var(--top-h) + 1rem); }
.px .app-panel, .px .app-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.25rem; box-shadow: none; }
.px .effect-chosen { border: 0; background: transparent; padding: 0; }
.px .effect-chosen-thumb { aspect-ratio: 4/5 !important; border-radius: 16px; }
.px .px-generate { margin-top: 1rem; }
.px-grid-picker { margin-top: .5rem; }
@media (max-width: 860px) {
    .px .app-grid { grid-template-columns: 1fr; gap: 1rem; }
    .px .app-sidebar { position: static; padding: .75rem; }
    .px .effect-chosen { display: grid; grid-template-columns: 84px 1fr; gap: .85rem; align-items: center; }
    .px .effect-chosen-thumb { aspect-ratio: 1 !important; border-radius: 12px; }
    .px .effect-chosen-body { padding: 0; }
    .px .effect-chosen-body p, .px .effect-chosen-body .chip-solid { display: none; }
    .px .effect-chosen-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
    .px .app-panel { padding: 1rem; }
    .px-grid-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .5rem; }
    .px-grid-picker .fx-name { font-size: .8rem; }
    .px-grid-picker .fx-cat { display: none; }
    .px-stepper li { font-size: .78rem; padding-inline-end: .7rem; }
}

/* ---------- Login en pantalla dividida (mismo formulario) ---------- */
.px .login-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
    min-height: calc(100vh - var(--top-h)); padding: 0; background: none;
}
.px-login-art { position: relative; overflow: hidden; background: var(--bg-soft); }
.px-login-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.px-login-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.px-login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,11,16,.92), transparent 55%); }
.px-login-quote {
    position: absolute; left: 2rem; right: 2rem; bottom: 2rem; z-index: 1;
    font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -.02em;
}
.px .login-card {
    align-self: center; justify-self: center; width: min(100%, 420px);
    background: transparent; border: 0; box-shadow: none; text-align: start; padding: 2rem 1.25rem;
}
.px .login-logo { margin: 0 0 1.25rem; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; justify-content: flex-start; }
.px .login-logo img { display: block; height: 56px; width: auto; }
.px .login-card h1 { font-size: 2rem; }
.px .login-card input[type="tel"], .px .login-card input[type="password"] { min-height: 54px; border-radius: 14px; }
@media (max-width: 860px) {
    .px .login-wrap { grid-template-columns: 1fr; min-height: auto; }
    .px-login-art { height: 190px; }
    .px-login-collage { grid-template-columns: repeat(4, 1fr); }
    .px-login-quote { font-size: 1.35rem; left: 1.25rem; right: 1.25rem; bottom: 1rem; }
}

/* ---------- Mis vídeos / Studio / legales: alineados a la nueva estructura ---------- */
.px .my-hero, .px .gallery-hero { text-align: start; }
.px .my-hero h1, .px .legal-header h1 { font-family: var(--font-display); letter-spacing: -.03em; }
.px .my-video-card { border-radius: var(--r-card); }
.px .studio-banner, .px .create-tabs { border-radius: 16px; }
.px .create-tabs { margin-inline: 0; }
.px .container { max-width: var(--wrap); padding: 0 clamp(1rem, 4vw, 2.5rem); }

@media (prefers-reduced-motion: reduce) {
    .px-wall-track { animation: none !important; }
}

/* Ajustes tras revisión en móvil */
@media (max-width: 860px) {
    .px-stepper { flex-wrap: nowrap; }
    .px-stepper li:not(.is-current) { font-size: 0; gap: 0; padding: .45rem; }
    .px-stepper li:not(.is-current) span { font-size: .78rem; }
    .px .effect-chosen { margin: 0; }
    .px .effect-chosen-body { padding: 0 !important; }
    .px-login-art { height: 220px; }
    .px-login-art::after { background: linear-gradient(to top, rgba(12,11,16,.95) 10%, transparent 70%); }
}

/* Logotipo PurePix: marca (imagen) + "pure" blanco / "pix" coral, como el logo */
.px-logo img { height: 48px; width: auto; }
.px-top .px-logo { font-size: 1.6rem; gap: .6rem; }
@media (max-width: 860px) { .px-logo img { height: 36px; } .px-top .px-logo { font-size: 1.3rem; } }
.px-logo-sm img { height: 30px; }
.px-word { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; text-transform: none; }
.px-word span { color: var(--accent); }
html.rtl .px-word { font-family: "Onest", sans-serif; }

/* Mosaico de la portada: 2 filas x 5 que rotan (index.php) */
.px-mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
/* Fundido cruzado lento: la nueva imagen se superpone a la anterior en 1,4 s */
.px-mosaic .fx-media img.px-xfade { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out, transform .4s ease; }
.px-mosaic .fx-media img.px-xfade.is-in { opacity: 1; }
.px-mosaic .fx-name, .px-mosaic .fx-cat { transition: opacity .7s ease-in-out; }
.px-mosaic .fx-card.is-swapping .fx-name,
.px-mosaic .fx-card.is-swapping .fx-cat { opacity: 0; }
@media (max-width: 860px) {
    .px-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
    .px-mosaic .fx-card:nth-child(n+10) { display: none; }   /* 3 x 3 */
}
@media (max-width: 560px) {
    .px-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .px-mosaic .fx-card:nth-child(n+7) { display: none; }    /* 2 x 3 */
}
