/* ============================================================
   TOUR — formato COMERCIAL (/tour)
   Estilo anuncio: fondos de color que se comen la pantalla,
   tipografía cinética, stickers, polaroids, marquesinas y
   transiciones de barrido. Divertido > solemne.
   ============================================================ */
:root {
    --ink: #101014;
    --paper: #f0ede6;
    --coral: #ff4e45;
    --amber: #ffc933;
    --mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --spring: cubic-bezier(.2, 1.5, .35, 1);
    --snap: cubic-bezier(.85, 0, .15, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
.ad-body {
    font-family: var(--sans);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
}

/* ── barrido entre escenas ───────────────────────────────── */
#wipe {
    position: fixed;
    inset: -12% -20%;
    z-index: 80;
    background: var(--ink);
    transform: translateX(-118%) skewX(-10deg);
    pointer-events: none;
}
#wipe.cover { transform: translateX(0) skewX(-10deg); transition: transform .34s var(--snap); }
#wipe.leave { transform: translateX(118%) skewX(-10deg); transition: transform .34s var(--snap); }

/* ── controles ───────────────────────────────────────────── */
.ctl {
    position: fixed;
    z-index: 90;
    right: 20px;
    bottom: 18px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    color: currentColor;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
}
.ctl--l { right: auto; left: 20px; }

/* control de volumen de la música */
.ctl--vol { display: flex; align-items: center; gap: 10px; padding: 7px 14px; }
.ctl--vol button {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.ctl--vol button.muted { opacity: .35; }
#ctl-vol {
    width: 88px;
    accent-color: var(--amber);
    cursor: pointer;
}

/* ── escenas ─────────────────────────────────────────────── */
.sc {
    position: fixed;
    inset: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.sc.on { opacity: 1; visibility: visible; pointer-events: auto; }

.bg-ink    { background: var(--ink);    color: #fff; }
.bg-paper  { background: var(--paper);  color: var(--ink); }
.bg-coral  { background: var(--coral);  color: #fff; }
.bg-amber  { background: var(--amber);  color: var(--ink); }

.center { text-align: center; padding: 0 22px; max-width: 1100px; position: relative; z-index: 2; }

/* ── tipografía cinética ─────────────────────────────────── */
.mega {
    font-size: clamp(46px, 11vw, 148px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: .96;
    margin: 18px 0;
    text-transform: uppercase;
}
.mega--ink { color: var(--ink); }
.mega--coral { color: var(--coral); }

.kword {
    display: inline-block;
    opacity: 0;
    transform: scale(.2) rotate(-7deg);
}
.sc.on .kword {
    animation: kpop .5s var(--spring) forwards;
    animation-delay: var(--d, 0s);
}
.kword--outline {
    color: transparent;
    -webkit-text-stroke: 3px currentColor;
    -webkit-text-stroke-color: var(--ink);
}
.bg-ink .kword--outline, .bg-coral .kword--outline { -webkit-text-stroke-color: #fff; }

.kpop {
    opacity: 0;
    transform: scale(.55) rotate(-3deg);
}
.sc.on .kpop {
    animation: kpop .55s var(--spring) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes kpop {
    60% { opacity: 1; transform: scale(1.07) rotate(1.2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.tag {
    font-size: clamp(15px, 2.2vw, 22px);
    font-weight: 600;
    line-height: 1.45;
    opacity: .92;
}
.tag--ink { color: var(--ink); }

/* ── stickers ────────────────────────────────────────────── */
.sticker {
    display: inline-block;
    font-family: var(--mono);
    font-size: clamp(10.5px, 1.4vw, 13px);
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 9px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
    transform: rotate(-2deg);
    margin-bottom: 8px;
}
.sticker--paper  { background: var(--paper);  color: var(--ink); }
.sticker--amber  { background: var(--amber);  color: var(--ink); }
.sticker--coral  { background: var(--coral);  color: #fff; }
.sticker--ink    { background: var(--ink);    color: #fff; }
.bounce { animation: bounce 1.4s var(--spring) infinite; }
@keyframes bounce { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
.sticker--spin {
    position: absolute;
    top: clamp(70px, 12vh, 120px);
    right: clamp(20px, 8vw, 110px);
    z-index: 5;
    transform: rotate(8deg);
    animation: wiggle 2.2s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-6deg); } }

/* ── decoraciones flotantes ──────────────────────────────── */
.deco {
    position: absolute;
    z-index: 1;
    font-size: 44px;
    opacity: .85;
    user-select: none;
}
.deco--ring {
    width: 54px;
    height: 54px;
    border: 6px solid currentColor;
    border-radius: 50%;
    opacity: .5;
}
.deco--zig { font-size: 54px; opacity: .6; }
.float { animation: bob 3.4s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-12px) rotate(-4deg); } to { transform: translateY(12px) rotate(6deg); } }

/* ── collage polaroid ────────────────────────────────────── */
.pol-group {
    position: relative;
    width: 100%;
    height: 100%;
    animation: sway 6s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-.7deg) scale(1); } to { transform: rotate(.8deg) scale(1.015); } }
.pol {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(150px, 21vw, 260px);
    background: #fff;
    padding: 9px 9px 38px;
    box-shadow: 0 18px 40px rgba(16, 16, 20, .28);
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
    opacity: 0;
}
.pol--big { width: clamp(190px, 26vw, 320px); z-index: 3; }
.sc.on .pol {
    animation: polin .65s var(--spring) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes polin {
    from { opacity: 0; transform: translate(calc(-50% + var(--x)), -140vh) rotate(calc(var(--r) * 5)); }
    75% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 14px)) rotate(calc(var(--r) * 1.4)); }
    to { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
}
.pol img {
    width: 100%;
    aspect-ratio: 1 / .82;
    object-fit: cover;
    display: block;
    background: #ddd;
}
.pol figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    text-align: center;
    font-family: var(--mono);
    font-size: clamp(10px, 1.3vw, 13px);
    color: #3c3c40;
}
.tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 92px;
    height: 26px;
    background: rgba(255, 201, 51, .82);
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
    z-index: 2;
}

/* ── marquesinas ─────────────────────────────────────────── */
.marquee {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 900;
    font-size: clamp(20px, 3.4vw, 40px);
    letter-spacing: .02em;
    opacity: .95;
    padding: 10px 0;
    background: rgba(0, 0, 0, .16);
}
.marquee--a { top: clamp(56px, 10vh, 110px); transform: rotate(-2deg) scale(1.06); }
.marquee--b { bottom: clamp(56px, 10vh, 110px); transform: rotate(2deg) scale(1.06); }
.mq { display: inline-block; animation: mq 18s linear infinite; }
.marquee--b .mq { animation-direction: reverse; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── proyectos: texto + captura inclinada ────────────────── */
.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(20px, 5vw, 70px);
    width: min(1150px, 92vw);
    padding: 0 10px;
}
.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }
.split-txt { text-align: left; }
.split-txt .mega { font-size: clamp(40px, 7.5vw, 104px); margin: 14px 0 10px; }
.shot {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: rotate(var(--r, 3deg));
    border: 6px solid #fff;
    background: #fff;
}
.shot img { width: 100%; display: block; aspect-ratio: 16/10.5; object-fit: cover; object-position: top; }

/* ── cierre ──────────────────────────────────────────────── */
.end-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
.btn {
    display: inline-block;
    font-weight: 800;
    font-size: 15.5px;
    text-decoration: none;
    color: var(--ink);
    background: var(--amber);
    border: none;
    border-radius: 999px;
    padding: 15px 28px;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
    transition: transform .2s var(--spring), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .35);
    box-shadow: none;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13px;
}
.btn--ghost:hover { border-color: #fff; }
.credit {
    margin-top: 34px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .4);
}

/* ── responsivo / accesibilidad ──────────────────────────── */
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; gap: 18px; }
    .split-txt { text-align: center; }
    .shot { width: min(78vw, 380px); margin: 0 auto; }
    .pol { width: clamp(120px, 34vw, 180px); }
    .pol--big { width: clamp(150px, 42vw, 220px); }
    .pol[style*="--x:-30vw"] { --x: -26vw !important; }
    .pol[style*="--x:29vw"] { --x: 26vw !important; }
    .deco { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, .kword, .kpop, .pol, .mq, .float, .bounce { animation: none !important; transition: none !important; }
    .sc.on .kword, .sc.on .kpop, .sc.on .pol { opacity: 1; transform: none; }
}
