/* ==========================================================================
   WIN OR LEARN — STORY COMPONENTS
   Fotos con contexto: comparador droom/bereikt, finales full-bleed,
   galería de prensa, UI en vivo (pipeline + WhatsApp).
   ========================================================================== */
:root {
    --ws-ink: #040407;
    --ws-gold: #d4af37;
    --ws-gold-light: #fff2b2;
    --ws-muted: #a1a1aa;
    --ws-line: rgba(255, 255, 255, 0.1);
    --ws-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ws-head: 'Syne', sans-serif;
    --ws-mono: 'Space Mono', monospace;
}

.ws-kicker {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--ws-mono); font-size: 0.7rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--ws-gold-light);
}
.ws-kicker::before { content: ''; width: 2.2rem; height: 1px; background: var(--ws-gold); }

/* Entrada al hacer scroll */
.ws-rise { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ws-ease), transform 1.1s var(--ws-ease); }
.ws-rise.ws-in { opacity: 1; transform: none; }
.ws-rise.d1 { transition-delay: 0.12s; } .ws-rise.d2 { transition-delay: 0.24s; } .ws-rise.d3 { transition-delay: 0.36s; }

/* --------------------------------------------------------------------------
   1. DROOM → BEREIKT (comparador arrastrable)
   -------------------------------------------------------------------------- */
.ws-dream {
    max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 5%;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.ws-dream h2 {
    font-family: var(--ws-head); font-weight: 800; letter-spacing: -0.03em;
    font-size: clamp(2.2rem, 4.3vw, 4.1rem); line-height: 1; margin: 1.4rem 0 1.6rem;
}
.ws-dream h2 em { font-style: normal; background: linear-gradient(135deg, #bf953f, #fcf6ba 40%, #d4af37 70%, #aa771c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ws-dream p { color: #d4d4d8; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.85; font-weight: 300; max-width: 30rem; }
.ws-dream-steps { display: flex; gap: 2.2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--ws-line); }
.ws-dream-steps div { display: flex; flex-direction: column; gap: 0.35rem; }
.ws-dream-steps b { font-family: var(--ws-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; }
.ws-dream-steps span { font-family: var(--ws-mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--ws-muted); text-transform: uppercase; }

.ws-compare {
    --pos: 50%;
    position: relative; aspect-ratio: 4 / 5; width: 100%; max-height: 82vh;
    border-radius: 28px; overflow: hidden; isolation: isolate;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(212, 175, 55, 0.25);
    touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.ws-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ws-compare-after { object-position: center 60%; }
.ws-compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.ws-compare-before img { object-position: center 42%; transform: scale(1.2); transform-origin: center 40%; filter: saturate(1.05); }
.ws-compare-tag {
    position: absolute; top: 1.2rem; z-index: 3; padding: 0.5rem 0.9rem; border-radius: 50px;
    font-family: var(--ws-mono); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
    background: rgba(4, 4, 7, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16); color: #fff;
}
.ws-compare-tag.left { left: 1.2rem; }
.ws-compare-tag.right { right: 1.2rem; color: var(--ws-gold-light); border-color: rgba(212, 175, 55, 0.5); }
.ws-compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; z-index: 2; background: linear-gradient(to bottom, transparent, var(--ws-gold) 15%, var(--ws-gold) 85%, transparent); }
.ws-compare-knob {
    position: absolute; top: 50%; left: var(--pos); z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-radius: 50%; display: grid; place-items: center; background: var(--ws-gold); color: var(--ws-ink);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.18), 0 16px 34px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s var(--ws-ease);
}
.ws-compare-knob svg { width: 26px; height: 26px; }
.ws-compare.is-dragging .ws-compare-knob { transform: scale(0.88); }
.ws-compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 4; }
.ws-compare input[type="range"]:focus-visible + .ws-compare-knob { outline: 2px solid #fff; outline-offset: 6px; }
.ws-compare-hint {
    position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 3;
    font-family: var(--ws-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85); white-space: nowrap; transition: opacity 0.6s ease;
}
.ws-compare.touched .ws-compare-hint { opacity: 0; }

/* --------------------------------------------------------------------------
   2. FINALE FULL-BLEED (la foto se abre al hacer scroll)
   -------------------------------------------------------------------------- */
.ws-finale { position: relative; padding: 0 0 clamp(3rem, 6vw, 5rem); }
.ws-finale-frame {
    --open: 0;
    position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden;
    clip-path: inset(calc((1 - var(--open)) * 7%) calc((1 - var(--open)) * 9%) round calc(36px - var(--open) * 24px));
    will-change: clip-path;
}
.ws-finale-frame > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
    transform: scale(calc(1.18 - var(--open) * 0.18)); will-change: transform;
}
.ws-finale-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 4, 7, 0.96) 0%, rgba(4, 4, 7, 0.45) 45%, rgba(4, 4, 7, 0.1) 75%, rgba(4, 4, 7, 0.55) 100%); }
.ws-finale-content { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5% clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; }
.ws-finale h2 { font-family: var(--ws-head); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; margin-top: 1.2rem; }
.ws-finale h2 em { font-style: normal; color: var(--ws-gold-light); }
.ws-finale p { color: #e4e4e7; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.8; font-weight: 300; margin-bottom: 1.8rem; }
.ws-btn {
    display: inline-flex; align-items: center; gap: 0.9rem; padding: 1.05rem 1.6rem 1.05rem 1.9rem; border-radius: 50px;
    background: var(--ws-gold); color: var(--ws-ink); font-weight: 800; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    transition: transform 0.5s var(--ws-ease), box-shadow 0.5s var(--ws-ease);
}
.ws-btn i { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ws-ink); color: var(--ws-gold); display: grid; place-items: center; font-style: normal; transition: transform 0.5s var(--ws-ease); }
.ws-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(212, 175, 55, 0.55); }
.ws-btn:hover i { transform: rotate(-45deg); }
.ws-photo-credit { position: absolute; top: clamp(1.4rem, 3vw, 2.4rem); right: 5%; z-index: 2; font-family: var(--ws-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   3. MANIFIESTO (index): WIN / OR / LEARN se abren y revelan la foto
   -------------------------------------------------------------------------- */
.ws-manifesto { position: relative; height: 210vh; }
.ws-manifesto-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.ws-manifesto-media {
    --p: 0;
    position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
    clip-path: inset(calc((1 - var(--p)) * 26%) calc((1 - var(--p)) * 34%) round calc(28px - var(--p) * 28px));
    will-change: clip-path;
}
.ws-manifesto-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(calc(1.25 - var(--p) * 0.25)); }
.ws-manifesto-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(4, 4, 7, 0.1) 0%, rgba(4, 4, 7, 0.72) 100%); opacity: calc(0.4 + var(--p) * 0.6); }
.ws-manifesto-words { --p: 0; position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; align-items: center; gap: 0.35em; font-family: var(--ws-head); font-weight: 800; font-size: clamp(2.6rem, 8.2vw, 8.4rem); line-height: 0.85; letter-spacing: -0.045em; pointer-events: none; }
.ws-manifesto-words span { display: block; color: #fff; mix-blend-mode: difference; }
.ws-manifesto-words .w1 { transform: translateX(calc(var(--p) * -5vw)); }
.ws-manifesto-words .w3 { transform: translateX(calc(var(--p) * 5vw)); }
.ws-manifesto-words .w2 { font-size: 0.32em; letter-spacing: 0.2em; color: var(--ws-gold); mix-blend-mode: normal; opacity: calc(1 - var(--p) * 1.6); }
.ws-manifesto-line { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(2.5rem, 8vh, 5rem); text-align: center; padding: 0 5%; opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ws-ease), transform 0.9s var(--ws-ease); }
.ws-manifesto.is-open .ws-manifesto-line { opacity: 1; transform: none; }
.ws-manifesto-line p { font-family: var(--ws-head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 1rem auto 1.6rem; max-width: 46rem; }
.ws-manifesto-line p em { font-style: normal; color: var(--ws-gold-light); }

/* --------------------------------------------------------------------------
   4. PERS · PODIUM · PODCAST (content)
   -------------------------------------------------------------------------- */
.ws-press { background: radial-gradient(70% 60% at 100% 0%, rgba(212, 175, 55, 0.08), transparent 70%), #000; border: 1px solid rgba(212, 175, 55, 0.16); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 2.5rem; border-radius: 1.5rem; margin: 0.75rem 0; overflow: hidden; }
.ws-press-inner { max-width: 1280px; margin: 0 auto; }
.ws-press-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.ws-press-head h2 { font-family: var(--ws-head); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.035em; margin-top: 1.2rem; }
.ws-press-head h2 em { font-style: normal; color: #f3e5ab; }
.ws-press-head p { color: #b8bfcc; line-height: 1.85; font-weight: 300; font-size: 1.05rem; }
.ws-press-grid { display: grid; grid-template-columns: 1.15fr 0.85fr 1fr; gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.ws-press-item { margin: 0; }
.ws-press-item:nth-child(2) { margin-top: clamp(3rem, 9vw, 8rem); }
.ws-press-item:nth-child(3) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.ws-press-media { position: relative; overflow: hidden; border-radius: 1.2rem; aspect-ratio: 3 / 4; background: #0b0b0f; }
.ws-press-item:nth-child(3) .ws-press-media { aspect-ratio: 4 / 3.4; }
.ws-press-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.08); transition: transform 1.2s var(--ws-ease), filter 1.2s var(--ws-ease); filter: grayscale(0.25) contrast(1.05); }
.ws-press-item:hover .ws-press-media img { transform: scale(1.02); filter: none; }
.ws-press-num { position: absolute; top: 1rem; left: 1rem; font-family: var(--ws-mono); font-size: 0.66rem; letter-spacing: 0.2em; padding: 0.4rem 0.7rem; border-radius: 50px; background: rgba(11, 17, 30, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #f3e5ab; }
.ws-press-item figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 1.1rem; }
.ws-press-item figcaption strong { font-family: var(--ws-head); font-size: 1.15rem; letter-spacing: -0.01em; }
.ws-press-item figcaption span { color: #8f98aa; font-size: 0.9rem; line-height: 1.6; max-width: 17rem; text-align: right; }

/* --------------------------------------------------------------------------
   5. UI EN VIVO — PIPELINE (bento systems) + WHATSAPP (roadmap stap 02)
   -------------------------------------------------------------------------- */
.ws-sys-card { background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.12), transparent 55%), linear-gradient(160deg, #0d0d16, #050508) !important; min-height: 380px; }
.ws-sys-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to left, #000 30%, transparent 85%); -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 85%); }
.ws-sys-card .image-overlay { max-width: 54%; background: none !important; }
.ws-pipeline { position: absolute; top: 50%; right: clamp(1.4rem, 3vw, 2.6rem); transform: translateY(-50%); width: min(46%, 520px); display: flex; flex-direction: column; gap: 0.6rem; z-index: 1; }
.ws-pipe-head { display: flex; justify-content: space-between; font-family: var(--ws-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ws-muted); text-transform: uppercase; padding: 0 0.3rem 0.4rem; }
.ws-pipe-head b { color: #10b981; font-weight: 400; }
.ws-pipe-row { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: 0.8rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--ws-line); transition: border-color 0.6s ease, background 0.6s ease; }
.ws-pipe-row.flash { border-color: rgba(212, 175, 55, 0.55); background: rgba(212, 175, 55, 0.07); }
.ws-pipe-av { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: var(--ws-ink); background: var(--ws-gold-light); }
.ws-pipe-name { font-size: 0.86rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pipe-name small { display: block; color: var(--ws-muted); font-weight: 400; font-size: 0.72rem; }
.ws-pipe-val { font-family: var(--ws-mono); font-size: 0.78rem; color: #e4e4e7; }
.ws-pipe-chip { font-family: var(--ws-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 50px; min-width: 6.4rem; text-align: center; transition: background 0.5s ease, color 0.5s ease; }
.ws-pipe-chip[data-s="0"] { background: rgba(255,255,255,0.08); color: #d4d4d8; }
.ws-pipe-chip[data-s="1"] { background: rgba(11, 110, 151, 0.25); color: #7dd3fc; }
.ws-pipe-chip[data-s="2"] { background: rgba(212, 175, 55, 0.18); color: var(--ws-gold-light); }
.ws-pipe-chip[data-s="3"] { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.ws-phone { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b141a; background-image: radial-gradient(circle at 20% 10%, rgba(212,175,55,0.12), transparent 40%), radial-gradient(circle at 90% 90%, rgba(16,185,129,0.1), transparent 45%); }
.ws-phone-bar { display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 1.1rem 0.9rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--ws-line); }
.ws-phone-bar i { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--ws-gold); color: var(--ws-ink); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.75rem; }
.ws-phone-bar strong { display: block; font-size: 0.9rem; color: #fff; }
.ws-phone-bar small { color: #10b981; font-size: 0.72rem; }
.ws-phone-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; padding: 1.1rem; }
.ws-msg { max-width: 82%; padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; color: #e9edef; opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 0.5s var(--ws-ease), transform 0.5s var(--ws-ease); }
.ws-msg.show { opacity: 1; transform: none; }
.ws-msg.out { align-self: flex-end; background: #005c4b; border-bottom-right-radius: 4px; }
.ws-msg.in { align-self: flex-start; background: #202c33; border-bottom-left-radius: 4px; }
.ws-msg time { display: block; text-align: right; font-size: 0.64rem; color: rgba(233, 237, 239, 0.6); margin-top: 0.2rem; }
.ws-msg-video { display: flex; align-items: center; gap: 0.7rem; }
.ws-msg-video b { width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 10px; background: rgba(0,0,0,0.35); display: grid; place-items: center; color: var(--ws-gold-light); font-size: 0.8rem; }
.ws-msg.sys { align-self: center; background: rgba(16, 185, 129, 0.16); color: #6ee7b7; font-family: var(--ws-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 50px; }
.ws-typing { align-self: flex-start; display: none; gap: 4px; padding: 0.8rem 0.9rem; background: #202c33; border-radius: 14px; }
.ws-typing.show { display: inline-flex; }
.ws-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: ws-dot 1s infinite; }
.ws-typing span:nth-child(2) { animation-delay: 0.15s; } .ws-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ws-dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ws-dream { grid-template-columns: 1fr; }
    .ws-compare { max-width: 560px; margin: 0 auto; }
    .ws-finale-content { grid-template-columns: 1fr; }
    .ws-press-head { grid-template-columns: 1fr; }
    .ws-press-grid { grid-template-columns: 1fr 1fr; }
    .ws-press-item:nth-child(3) { grid-column: span 2; margin-top: 0; }
    .ws-sys-card .image-overlay { max-width: 100%; }
    .ws-pipeline { position: relative; top: auto; right: auto; transform: none; width: auto; margin: 1.6rem 1.6rem 0; }
}
@media (max-width: 640px) {
    .ws-dream { padding: 3.5rem 16px; }
    .ws-dream-steps { gap: 1.4rem; }
    .ws-compare { border-radius: 20px; }
    .ws-compare-knob { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
    .ws-finale-frame { min-height: 82vh; }
    .ws-finale-content { padding: 0 16px 3rem; }
    .ws-manifesto { height: 170vh; }
    .ws-manifesto-sticky { place-items: start center; }
    .ws-manifesto-media { clip-path: inset(calc((1 - var(--p)) * 24%) calc((1 - var(--p)) * 14%) round calc(22px - var(--p) * 22px)); }
    .ws-manifesto-words { flex-direction: column; gap: 0; margin-top: calc(18vh - var(--p) * 6vh); font-size: 17vw; }
    .ws-manifesto-words .w1, .ws-manifesto-words .w3 { transform: none; }
    .ws-manifesto-words .w2 { margin: 0.5em 0; }
    .ws-press { padding: 3.5rem 16px; border-radius: 1.1rem; }
    .ws-press-grid { grid-template-columns: 1fr; }
    .ws-press-item:nth-child(2), .ws-press-item:nth-child(3) { margin-top: 0; grid-column: auto; }
    .ws-press-item figcaption { flex-direction: column; }
    .ws-press-item figcaption span { text-align: left; }
    .ws-pipeline { margin: 1.2rem 1.1rem 0; }
    .ws-pipe-row { grid-template-columns: 1.8rem 1fr auto; }
    .ws-pipe-val { display: none; }
    .ws-pipe-chip { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-rise { opacity: 1; transform: none; transition: none; }
    .ws-finale-frame { clip-path: none; }
    .ws-finale-frame > img { transform: none; }
    .ws-manifesto { height: auto; }
    .ws-manifesto-sticky { position: relative; height: 100vh; }
    .ws-manifesto-media, .ws-manifesto-words { --p: 1 !important; }
    .ws-manifesto-line { opacity: 1; transform: none; }
    .ws-msg { opacity: 1; transform: none; }
}
