/* LUM360 · experiencias inmersivas v3 · capa 3 de 4 · componentes: tipografía, botones, cinta, tarjetas, interruptor, comparador, terminal y pasos */

/* ---------- Tipografía y botones ---------- */
.im-kicker { display: inline-flex; align-items: baseline; gap: 0.7rem; color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.im-kicker::before { content: ""; flex: none; width: 2rem; height: 1px; background: currentColor; transform: translateY(-0.35em); }
.im-eyebrow { color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-sm); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.im-h2 { font-size: var(--ws-text-display-s); line-height: 1.02; }
.im-h2 strong { color: var(--ws-accent-strong); font-weight: 500; font-style: italic; }
.im-lead { max-width: 40rem; color: var(--ws-muted); font-size: var(--ws-text-md); line-height: 1.6; }
.im-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.im-w > span { display: inline-block; will-change: transform; }
html.im-motion [data-split] { opacity: 0; }
html.im-motion [data-reveal] { opacity: 0; }
html.im-motion [data-clip] { opacity: 0; }

.im-actions { display: flex; flex-wrap: wrap; gap: var(--ws-space-sm); }
.im-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: var(--ws-hit); padding: 0.8rem 1.5rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform var(--ws-dur-short) var(--ws-ease-out), background var(--ws-dur-short), box-shadow var(--ws-dur-long) var(--ws-ease-out); }
.im-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.im-btn--solid { color: var(--ws-accent-ink); background: linear-gradient(135deg, var(--ws-accent-fill, var(--ws-accent-strong)), var(--ws-accent-fill, var(--ws-accent))); box-shadow: 0 0 0 0 oklch(80% 0.13 86 / 0), 0 0.6rem 1.6rem -0.6rem oklch(60% 0.12 84 / 0.6); }
.im-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 0 2.2rem -0.4rem oklch(80% 0.13 86 / 0.7), 0 0.8rem 1.8rem -0.6rem oklch(60% 0.12 84 / 0.6); }
.im-btn--ghost { color: var(--ws-ink); border-color: var(--ws-rule-strong); background: oklch(100% 0 0 / 0.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.im-btn--ghost:hover { transform: translateY(-2px); border-color: var(--ws-accent-line, var(--ws-accent-strong)); }
.im-chip { min-height: 2.4rem; padding: 0.4rem 1rem; border: 1px solid var(--ws-rule-strong); border-radius: 999px; color: var(--ws-ink); background: transparent; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: background var(--ws-dur-short), border-color var(--ws-dur-short), color var(--ws-dur-short); }
.im-chip:hover { border-color: var(--ws-accent-line, var(--ws-accent-strong)); }
.im-chip[aria-pressed="true"], .im-chip[aria-expanded="true"] { color: var(--ws-accent-ink); border-color: var(--ws-accent-line, var(--ws-accent-strong)); background: var(--ws-accent-fill, var(--ws-accent-strong)); }
.im-checks { display: grid; gap: var(--ws-space-xs); }
.im-checks li { display: flex; gap: 0.7rem; color: var(--ws-muted); line-height: 1.5; }
.im-checks li::before { content: ""; flex: none; width: 1.2rem; height: 1px; margin-top: 0.8em; background: var(--ws-accent-fill, var(--ws-accent-strong)); }
.im-tags { display: flex; flex-wrap: wrap; gap: var(--ws-space-xs); }
.im-tags li { padding: 0.3rem 0.8rem; border: 1px solid var(--ws-rule-strong); border-radius: 999px; color: var(--ws-muted); font-family: var(--im-mono); font-size: var(--ws-text-xs); letter-spacing: 0.08em; text-transform: uppercase; }



/* ---------- Palabras que se encienden con el scroll ---------- */
.im-sw { display: inline; }

/* ---------- Marcos con escena ---------- */
.im-stage { position: relative; }
.im-stage--hd { aspect-ratio: 16 / 9; }
.im-stage--viewer { width: 100%; height: min(72svh, 32rem); }
@media (min-width: 60rem) { .im-stage--viewer { height: min(74svh, 46rem); } }
.im-stage .ws-stage { cursor: grab; }

/* ---------- Tarjeta ---------- */
.im-card { position: relative; display: grid; align-content: start; gap: var(--ws-space-sm); padding: clamp(1.2rem, 2.2vw, 1.8rem); border: 1px solid var(--ws-rule); border-radius: 1rem; background: linear-gradient(135deg, oklch(100% 0 0 / 0.05), oklch(100% 0 0 / 0.01)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.im-card__n { color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-xs); font-weight: 600; letter-spacing: 0.2em; }
.im-card h3 { font-size: var(--ws-text-lg); line-height: 1.1; }
.im-card p { color: var(--ws-muted); line-height: 1.55; }
.im-note { color: var(--ws-subtle); font-size: var(--ws-text-sm); line-height: 1.5; }

/* ---------- Pasos con riel (qué es 360) ---------- */
.im-steps { position: relative; padding-left: 1.6rem; }
.im-steps::before { content: ""; position: absolute; left: 0.35rem; top: 2svh; bottom: 2svh; width: 2px; background: linear-gradient(180deg, transparent, var(--ws-rule-strong) 8%, var(--ws-rule-strong) 92%, transparent); }
.im-step { position: relative; align-self: center; display: grid; gap: var(--ws-space-xs); margin-block: 1rem; padding: clamp(1.1rem, 2vw, 1.8rem); border: 1px solid var(--ws-rule); border-radius: 1rem; background: linear-gradient(135deg, oklch(100% 0 0 / 0.05), oklch(100% 0 0 / 0.01)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: border-color var(--ws-dur-long), box-shadow var(--ws-dur-long), transform var(--ws-dur-long) var(--ws-ease-out); }
.im-step::before { content: ""; position: absolute; left: calc(-1.6rem + 0.1rem); top: 2.1rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ws-rule-strong); transition: background var(--ws-dur-long), box-shadow var(--ws-dur-long); }
.im-step.is-active { border-color: var(--ws-accent-line, var(--ws-accent-strong)); box-shadow: 0 0 3rem -1rem oklch(80% 0.13 86 / 0.55); transform: translateX(6px); }
.im-step.is-active::before { background: var(--ws-accent-fill, var(--ws-accent-strong)); box-shadow: 0 0 0.9rem var(--ws-accent-strong); }
.im-step__n { color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-xs); font-weight: 600; letter-spacing: 0.2em; }
.im-step h3 { font-size: var(--ws-text-lg); line-height: 1.1; }
.im-step p { color: var(--ws-muted); line-height: 1.55; }
@media (min-width: 60rem) { .im-step { margin-block: 12svh; } .im-steps { padding-block: 8svh; } }
@media (max-width: 59.999rem) { .im-cap__stage .im-stage { aspect-ratio: 16 / 11; max-height: 44svh; width: 100%; } }

/* ---------- Selector de asiento (radiogroup) y segmentos ---------- */
.im-seats { display: grid; gap: var(--ws-space-xs); }
.im-seat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.2rem 0.8rem; min-height: var(--ws-hit); padding: 0.7rem 1rem; border: 1px solid var(--ws-rule-strong); border-radius: 0.9rem; color: var(--ws-ink); background: oklch(100% 0 0 / 0.03); text-align: left; cursor: pointer; transition: border-color var(--ws-dur-short), background var(--ws-dur-short), transform var(--ws-dur-short) var(--ws-ease-out); }
.im-seat:hover { border-color: var(--ws-accent-line, var(--ws-accent-strong)); transform: translateX(4px); }
.im-seat i { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--ws-rule-strong); color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: 0.7rem; font-style: normal; }
.im-seat strong { font-size: 0.92rem; font-weight: 600; }
.im-seat span { color: var(--ws-muted); font-size: 0.78rem; line-height: 1.3; }
.im-seat[aria-checked="true"] { border-color: var(--ws-accent-line, var(--ws-accent-strong)); background: oklch(80% 0.13 86 / 0.12); box-shadow: 0 0 2.4rem -1rem oklch(80% 0.13 86 / 0.6); }
.im-seat[aria-checked="true"] i { color: var(--ws-accent-ink); background: var(--ws-accent-fill, var(--ws-accent-strong)); border-color: transparent; }
.im-seatcap { color: var(--ws-muted); line-height: 1.55; min-height: 4.6em; }
.im-points { display: grid; gap: var(--ws-space-sm); }
.im-points li { display: grid; gap: 0.15rem; padding-left: 1.1rem; border-left: 2px solid var(--ws-accent-line, var(--ws-accent-strong)); color: var(--ws-muted); line-height: 1.5; }
.im-points strong { color: var(--ws-ink); font-weight: 600; }

.im-seg { display: inline-flex; padding: 0.25rem; gap: 0.2rem; border: 1px solid oklch(100% 0 0 / 0.18); border-radius: 999px; background: var(--im-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.im-seg button { min-height: 2.4rem; padding: 0.35rem 0.95rem; border: 0; border-radius: 999px; color: oklch(95% 0.01 82); background: transparent; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background var(--ws-dur-short), color var(--ws-dur-short); }
.im-seg button:hover { background: oklch(100% 0 0 / 0.1); }
.im-seg button[aria-pressed="true"] { color: var(--ws-accent-ink); background: var(--ws-accent-fill, var(--ws-accent-strong)); }

/* ---------- Visor ---------- */
.im-vctl { position: absolute; z-index: 6; left: 0; right: 0; display: flex; justify-content: center; padding-inline: 0.8rem; pointer-events: none; }
.im-vctl .im-seg { pointer-events: auto; }
.im-vctl--top { top: 0.9rem; }
.im-vctl--bottom { bottom: 0.9rem; }
.im-vhint { position: absolute; z-index: 6; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.55rem 1.1rem; transform: translate(-50%, -50%); border: 1px solid oklch(100% 0 0 / 0.3); border-radius: 999px; color: #fff; background: var(--im-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--im-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity 0.6s; animation: im-nudge 2.4s ease-in-out infinite; }
.is-hinted .im-vhint { opacity: 1; }
@keyframes im-nudge { 50% { transform: translate(calc(-50% + 14px), -50%); } }
.im-vnote { color: var(--ws-muted); line-height: 1.55; max-width: 46rem; }

/* ---------- Tarjetas horizontales ---------- */
.im-hc { position: relative; flex: none; display: grid; align-content: start; gap: var(--ws-space-sm); width: min(25rem, 84vw); min-height: 24rem; padding: clamp(1.3rem, 2.4vw, 2rem); border: 1px solid var(--ws-rule-strong); border-radius: 1.2rem; background: linear-gradient(160deg, oklch(100% 0 0 / 0.06), oklch(100% 0 0 / 0.01)); scroll-snap-align: start; overflow: hidden; }
.im-hc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 0%, oklch(80% 0.13 86 / 0.16), transparent 70%); pointer-events: none; }
.im-hc__ico { width: 6.4rem; height: 6.4rem; margin-bottom: 0.4rem; color: var(--ws-accent-strong); }
.im-hc__ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.im-hc__n { color: var(--ws-subtle); font-family: var(--im-mono); font-size: var(--ws-text-xs); letter-spacing: 0.2em; }
.im-hc h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.05; }
.im-hc p { color: var(--ws-muted); line-height: 1.55; font-size: 0.95rem; }
.im-hc .im-tags { margin-top: auto; }
.im-hc--end { align-content: center; justify-items: start; background: linear-gradient(160deg, oklch(80% 0.13 86 / 0.2), oklch(100% 0 0 / 0.02)); }
.ico-spin { transform-origin: center; animation: im-spin 14s linear infinite; }
.ico-spin-r { transform-origin: center; animation: im-spin 20s linear infinite reverse; }
.ico-pulse { animation: im-pulse-ico 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.ico-dash { stroke-dasharray: 4 6; animation: im-dash 2s linear infinite; }
@keyframes im-spin { to { transform: rotate(360deg); } }
@keyframes im-pulse-ico { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes im-dash { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .ico-spin, .ico-spin-r, .ico-pulse, .ico-dash, .im-vhint { animation: none; } }

/* ---------- Necesidades ---------- */
.im-needlist { display: grid; gap: var(--ws-space-xs); }
.im-need { min-height: var(--ws-hit); padding: 0.7rem 1rem; border: 1px solid var(--ws-rule-strong); border-radius: 0.9rem; color: var(--ws-ink); background: oklch(100% 0 0 / 0.03); font-size: 0.92rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color var(--ws-dur-short), background var(--ws-dur-short), transform var(--ws-dur-short) var(--ws-ease-out); }
.im-need:hover { border-color: var(--ws-accent-line, var(--ws-accent-strong)); transform: translateX(4px); }
.im-need[aria-selected="true"] { border-color: var(--ws-accent-line, var(--ws-accent-strong)); background: oklch(80% 0.13 86 / 0.14); color: var(--ws-accent-strong); }
.im-needpanel { display: grid; gap: var(--ws-space-md); align-content: start; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--ws-rule-strong); border-radius: 1.2rem; background: linear-gradient(160deg, oklch(100% 0 0 / 0.06), oklch(100% 0 0 / 0.01)); animation: im-in 0.6s var(--ws-ease-out); }
.im-needpanel[hidden] { display: none; }
@keyframes im-in { from { opacity: 0; transform: translateY(14px); } }
.im-needpanel h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
.im-needpanel dl { display: grid; gap: var(--ws-space-md); }
.im-needpanel dt { color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.im-needpanel dd { color: var(--ws-muted); line-height: 1.6; margin-top: 0.25rem; }
@media (min-width: 48rem) { .im-needpanel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ws-space-lg); } }

/* ---------- Casos reales y diálogo ---------- */
.im-case { position: relative; display: grid; gap: var(--ws-space-sm); align-content: end; min-height: 20rem; padding: clamp(1.3rem, 2.4vw, 2rem); border: 1px solid var(--ws-rule-strong); border-radius: 1.2rem; overflow: hidden; isolation: isolate; background: #0a0b0e; }
.im-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--im-bg, none) center / cover no-repeat; opacity: 0.55; transition: transform 0.9s var(--ws-ease-out), opacity 0.5s; }
.im-case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(6% 0.01 82 / 0.92), oklch(6% 0.01 82 / 0.35) 60%, transparent); }
.im-case:hover::before { transform: scale(1.06); opacity: 0.75; }
.im-case h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.im-case p { color: oklch(88% 0.01 82); line-height: 1.5; font-size: 0.95rem; }
.im-case .im-btn { justify-self: start; }
.im-embed { width: min(96vw, 80rem); max-width: none; height: min(88svh, 52rem); padding: 0; border: 1px solid var(--ws-rule-strong); border-radius: 1rem; color: #fff; background: #050506; overflow: hidden; }
.im-embed::backdrop { background: oklch(3% 0.01 82 / 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.im-embed[open] { display: grid; grid-template-rows: auto 1fr; }
.im-embed__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--ws-rule); font-size: 0.85rem; }
.im-embed__frame { position: relative; min-height: 0; }
.im-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Proceso ---------- */
.im-procstep { position: relative; display: grid; gap: var(--ws-space-xs); align-content: start; padding-top: 1.8rem; opacity: 0.45; transition: opacity 0.6s var(--ws-ease-out); }
.im-procstep.is-on { opacity: 1; }
.im-procstep::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ws-rule-strong); }
.im-procstep::after { content: ""; position: absolute; top: -0.3rem; left: 0; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--ws-rule-strong); transition: background 0.5s, box-shadow 0.5s; }
.im-procstep.is-on::before { background: var(--ws-accent-fill, var(--ws-accent-strong)); }
.im-procstep.is-on::after { background: var(--ws-accent-fill, var(--ws-accent-strong)); box-shadow: 0 0 0.9rem var(--ws-accent-strong); }
.im-procstep h3 { font-size: var(--ws-text-lg); line-height: 1.1; }
.im-procstep p { color: var(--ws-muted); line-height: 1.55; font-size: 0.95rem; }
.im-procstep__n { color: var(--ws-accent-strong); font-family: var(--im-mono); font-size: var(--ws-text-xs); font-weight: 600; letter-spacing: 0.2em; }
html:not(.ws-js) .im-procstep { opacity: 1; }

/* ---------- Preguntas frecuentes ---------- */
.im-qa { border: 1px solid var(--ws-rule); border-radius: 0.9rem; background: oklch(100% 0 0 / 0.03); transition: border-color var(--ws-dur-short); }
.im-qa[open] { border-color: var(--ws-accent-line, var(--ws-accent-strong)); }
.im-qa summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; }
.im-qa summary::-webkit-details-marker { display: none; }
.im-qa summary::after { content: "+"; flex: none; color: var(--ws-accent-strong); font-size: 1.4rem; line-height: 1; transition: transform var(--ws-dur-short); }
.im-qa[open] summary::after { transform: rotate(45deg); }
.im-qa p { padding: 0 1.3rem 1.2rem; color: var(--ws-muted); line-height: 1.6; max-width: 46rem; }

/* ---------- Cierre ---------- */
.im-cta__actions { justify-content: center; margin-top: var(--ws-space-sm); }
.im-fine { color: var(--ws-subtle); font-size: var(--ws-text-sm); }
.im-stage--viewer .im-stage__tag { display: none; }

@media (max-width: 29.999rem) { .im-seg button { padding: 0.3rem 0.6rem; font-size: 0.7rem; } .im-vctl { padding-inline: 0.4rem; } }
