/* /platform · réplica simplificada de HEART: catálogo Open- con búsqueda IA, disco de flujos, barra de stack y conexión. */
html.plat body { background: var(--hielo); padding-bottom: 110px; }

.p-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px clamp(12px, 3vw, 32px); background: rgba(23, 23, 23, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--hielo); }
.p-marca { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.p-marca .sello { width: 48px; height: 48px; } .p-marca .sello svg { width: 36px; height: 36px; }
.p-marca b { font-weight: 500; font-size: 18px; letter-spacing: .02em; }
.p-marca small { display: block; font-size: 13px; color: var(--gris-osc); }
.p-acciones { display: flex; align-items: center; gap: 8px; }
.p-want { font-size: 16px; padding: 11px 16px; color: #fff; box-shadow: inset 0 0 0 1.5px var(--azul); background: rgba(25, 118, 254, .14); }
.p-want:hover { background: var(--azul); }
.p-want::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--azul); color: #fff; font-size: 13px; font-weight: 600; }
.p-join { font-size: 16px; padding: 11px 16px; }
.p-lang { padding: 11px 12px; font-size: 15px; color: var(--hielo); background: rgba(237, 244, 255, .08); }
@media (max-width: 760px) { .p-marca span:last-child { display: none; } .p-join { display: none; } .p-want { font-size: 14px; padding: 10px 12px; } }

/* Hero con la búsqueda IA */
.p-hero { position: relative; overflow: hidden; background: var(--negro); color: var(--hielo); padding: clamp(40px, 8vh, 88px) 16px clamp(36px, 6vh, 64px); text-align: center; }
.p-hero-in { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.p-eyebrow { font-size: 14px; color: var(--gris-osc); letter-spacing: .06em; text-transform: uppercase; }
.p-h1 { font: 400 clamp(38px, 5.6vw, 84px)/1.02 var(--serif); letter-spacing: -.035em; margin-top: 14px; }
.ask { margin: 28px auto 0; display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 8px 8px 10px; max-width: 820px; box-shadow: 0 30px 80px -30px rgba(25, 118, 254, .65), 0 0 0 1px rgba(25, 118, 254, .35); }
.ask canvas { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.ask input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font: inherit; font-size: clamp(17px, 1.6vw, 21px); color: var(--negro); background: transparent; }
.ask input::-webkit-search-cancel-button { display: none; }
.ask .boton { font-size: 17px; }
@media (max-width: 560px) { .ask .boton span { display: none; } .ask .boton::after { content: "→"; } }
.sugs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sugs button { padding: 8px 14px; font-size: 15px; color: var(--hielo); background: rgba(237, 244, 255, .08); border: 1px solid rgba(237, 244, 255, .12); transition: background-color .2s; }
.sugs button:hover { background: rgba(25, 118, 254, .3); }
.entiende { min-height: 30px; margin-top: 18px; font-size: 17px; color: var(--gris-osc); }
.entiende b { color: var(--hielo); font-weight: 400; padding: 2px 8px; background: rgba(25, 118, 254, .35); margin: 0 2px; white-space: nowrap; }
.entiende .piensa i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; background: var(--azul); animation: punto 1s ease-in-out infinite; }
.entiende .piensa i:nth-child(2) { animation-delay: .15s; } .entiende .piensa i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 50% { transform: translateY(-5px); opacity: .4; } }

/* Temas: filtro por área de negocio, fijo bajo la barra superior */
.temas { position: sticky; top: 68px; z-index: 40; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px clamp(12px, 3vw, 32px); background: rgba(237, 244, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--linea); }
.temas::-webkit-scrollbar { display: none; }
.temas button { flex: none; padding: 8px 14px; font-size: 15px; color: var(--negro); background: #fff; box-shadow: inset 0 0 0 1px var(--linea); transition: background-color .2s, color .2s; }
.temas button:hover { box-shadow: inset 0 0 0 1px var(--azul); }
.temas button.on { background: var(--negro); color: #fff; box-shadow: none; }
@media (max-width: 760px) { .temas { top: 68px; } }

/* Resultados en estantes horizontales (como las filas de Spotify) */
.p-res { max-width: 1360px; margin: 0 auto; padding: 30px clamp(12px, 3vw, 32px) 0; }
.p-res-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.p-res-cab h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; letter-spacing: -.03em; }
.p-res-cab span { font-size: 15px; color: var(--tenue); white-space: nowrap; }
.estante { margin-top: 26px; opacity: 0; animation: aparece .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(min(var(--k), 6) * 60ms); }
.estante header { display: flex; align-items: baseline; gap: 12px; }
.estante h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.estante header > span { font-size: 14px; color: var(--tenue); }
.estante .ver { font-size: 14px; color: var(--azul); }
.estante .flechas { margin-left: auto; display: flex; gap: 4px; }
.estante .flechas button { width: 34px; height: 34px; font-size: 20px; line-height: 1; background: #fff; box-shadow: inset 0 0 0 1px var(--linea); }
.estante .flechas button:hover { background: var(--negro); color: #fff; }
.fila { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 12px 2px 6px; }
.fila::-webkit-scrollbar { display: none; }
.tile { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px; background: #fff; text-align: left; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(25, 118, 254, .55); }
.tile .lg { width: 56px; height: 56px; margin-bottom: 8px; }
.tile .lg img { width: 48px; height: 48px; max-width: none; max-height: none; }
.tile .lg.mono { font-size: 19px; }
.tile .tn { font-size: 14.5px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.tile .tf { font-size: 12.5px; color: var(--tenue); }
.tile .tk { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: none; place-items: center; background: var(--azul); color: #fff; }
.tile .tk svg { width: 13px; height: 13px; }
.tile.en-stack { box-shadow: inset 0 0 0 2px var(--azul); }
.tile.en-stack .tk { display: grid; }
.tile.pide { background: transparent; box-shadow: inset 0 0 0 1.5px dashed; border: 1.5px dashed rgba(25, 118, 254, .5); }
.tile.pide .tn { color: var(--azul); }
.lg { width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.lg img { object-fit: contain; }
.lg.mono { color: #fff; font-weight: 500; letter-spacing: -.02em; }
@keyframes aparece { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.p-vacio { margin: 24px 0; padding: 28px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-vacio p { font-size: 18px; }

/* Una app: flujos clicables + tu versión con solo esos flujos */
.ap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 14px; }
.ap[hidden] { display: none; }
.ap-fondo { position: absolute; inset: 0; background: rgba(23, 23, 23, .62); backdrop-filter: blur(4px); }
.ap-caja { position: relative; width: min(1120px, 100%); max-height: calc(100dvh - 28px); overflow: auto; display: grid; grid-template-columns: 420px 1fr; background: #fff; animation: entra .35s cubic-bezier(.2, .7, .2, 1); }
.ap-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; font-size: 26px; }
.ap-izq { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; }
.ap-cab { display: flex; gap: 16px; align-items: center; }
.ap-logo { width: 76px; height: 76px; flex: none; display: grid; place-items: center; background: var(--suave); }
.ap-logo img { width: 54px; height: 54px; object-fit: contain; }
.ap-logo.mono { color: #fff; font-size: 26px; font-weight: 500; }
.ap-meta { font-size: 12px; color: var(--tenue); text-transform: uppercase; letter-spacing: .08em; }
.ap-cab h2 { font: 400 clamp(26px, 2.6vw, 36px)/1.05 var(--serif); letter-spacing: -.03em; margin-top: 4px; word-break: break-word; }
.ap-guia { margin-top: 22px; font-size: 15px; color: var(--tenue); }
.ap-guia b { color: var(--negro); font-weight: 500; }
.ap-flujos { display: grid; gap: 6px; margin-top: 12px; }
.flujo { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 12px; text-align: left; background: var(--suave); box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s; }
.flujo:hover { box-shadow: inset 0 0 0 1px var(--azul); }
.flujo i { grid-row: span 2; font-style: normal; font-size: 13px; color: var(--tenue); font-variant-numeric: tabular-nums; }
.flujo b { font-weight: 500; font-size: 16px; }
.flujo small { grid-column: 2; font-size: 12.5px; color: var(--tenue); }
.flujo u { grid-row: 1 / span 2; grid-column: 3; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linea2); }
.flujo u svg { width: 14px; height: 14px; }
.flujo.on { background: #fff; box-shadow: inset 0 0 0 2px var(--azul); }
.flujo.on b { color: var(--azul); }
.flujo.on u { background: var(--azul); color: #fff; box-shadow: none; }
.ap-bot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ap-bot .boton { font-size: 16px; padding: 12px 16px; }
.ap-bot .boton[disabled] { opacity: .45; cursor: default; }
.ap-quitar { margin-top: 10px; align-self: flex-start; font-size: 13px; color: var(--tenue); text-decoration: underline; }
.ap-heart { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 20px; }
.ap-heart canvas { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.ap-heart p { font-size: 13.5px; color: var(--tenue); }
.ap-heart p b { color: var(--negro); font-weight: 500; }
.ap-der { background: var(--hielo); padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.vent { background: #fff; box-shadow: 0 30px 60px -30px rgba(23, 23, 23, .35); }
.vent-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--negro); color: var(--hielo); font-size: 13px; }
.vent-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(237, 244, 255, .25); }
.vent-top span { margin-left: 8px; }
.vent-top em { margin-left: auto; font-style: normal; font-size: 12px; padding: 2px 8px; background: var(--azul); }
.vent-cuerpo { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.vent-nav { background: var(--suave); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.vent-nav button { text-align: left; padding: 8px 10px; font-size: 13.5px; color: var(--tenue); animation: aparece .3s; }
.vent-nav button.on { background: #fff; color: var(--negro); box-shadow: inset 2px 0 0 var(--azul); }
.vent-main { padding: 16px 18px; }
.vent-main h4 { font-weight: 500; font-size: 17px; margin-bottom: 12px; }
.vent-vacio { color: var(--tenue); font-size: 14px; margin-top: 60px; text-align: center; }
.sk-t { display: grid; gap: 6px; }
.sk-t div { display: grid; grid-template-columns: 22px 1.4fr .8fr .6fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--linea); animation: aparece .35s backwards; animation-delay: calc(var(--k) * 40ms); }
.sk-t i, .sk-k i, .sk-d i { display: block; height: 8px; background: #e3e9f3; }
.sk-t div > i:first-child { width: 22px; height: 22px; border-radius: 50%; background: #d6e4ff; }
.sk-t em { justify-self: start; height: 18px; width: 60px; background: rgba(25, 118, 254, .14); }
.sk-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-k > div { background: var(--suave); padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 220px; }
.sk-k > div > i { width: 50%; }
.sk-k p { background: #fff; padding: 8px; display: grid; gap: 5px; animation: aparece .35s backwards; animation-delay: calc(var(--k) * 50ms); }
.sk-k p i:last-child { width: 60%; }
.sk-d .kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-d .kpi div { background: var(--suave); padding: 10px; display: grid; gap: 6px; }
.sk-d .kpi b { font: 400 24px/1 var(--serif); color: var(--azul); }
.sk-d .barras { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--linea); }
.sk-d .barras u { flex: 1; background: linear-gradient(#1976FE, #8fb8ff); transform-origin: bottom; animation: crece .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--k) * 35ms); }
@keyframes crece { from { transform: scaleY(0); } }
.ap-cap { font-size: 14px; color: var(--tenue); text-align: center; }
.ap-cap b { color: var(--negro); font-weight: 500; }
@media (max-width: 900px) {
  .ap { padding: 0; place-items: end stretch; }
  .ap-caja { grid-template-columns: 1fr; max-height: 92dvh; }
  .ap-der { order: -1; padding: 14px; } .vent-cuerpo { grid-template-columns: 120px 1fr; min-height: 200px; } .sk-k > div { min-height: 140px; } .sk-d .barras { height: 90px; }
  .ap-heart { display: none; }
}

/* Barra de stack */
.stackbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 12px clamp(12px, 3vw, 32px); background: var(--negro); color: var(--hielo); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .45); }
.sb-iconos { display: flex; }
.sb-iconos span { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; margin-right: -8px; box-shadow: 0 0 0 2px var(--negro); }
.sb-iconos span img { width: 30px; height: 30px; object-fit: contain; }
.sb-iconos span.mono { color: #fff; font-size: 15px; font-weight: 500; }
.sb-iconos .vacio { background: rgba(237, 244, 255, .08); color: var(--gris-osc); font-size: 22px; }
.sb-txt { flex: 1; min-width: 0; margin-left: 10px; }
.sb-txt b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-txt span { font-size: 14px; color: var(--gris-osc); }
.sb-go { font-size: 17px; animation: brilla 3.2s ease-in-out infinite; }
.sb-go[disabled] { opacity: .45; animation: none; cursor: default; }
@media (max-width: 640px) { .sb-iconos span:nth-child(n+4) { display: none; } .sb-txt span { display: none; } .sb-go { font-size: 15px; padding: 12px 12px; } }

/* Simulación de conexión */
.conecta { justify-content: center; align-items: center; padding: 14px; }
.cx-caja { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 28px); overflow: auto; background: var(--blanco); padding: clamp(22px, 4vw, 44px); animation: entra .4s cubic-bezier(.2, .7, .2, 1); }
.cx-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 40px 22px 0; }
.cx-pasos li { font-size: 13px; color: var(--tenue); padding-top: 8px; border-top: 3px solid var(--linea); }
.cx-pasos li.on { color: var(--negro); border-color: var(--azul); }
.cx-pasos li.hecho { border-color: var(--azul); }
.cx-h { font: 400 clamp(30px, 3.8vw, 48px)/1.04 var(--serif); letter-spacing: -.035em; }
.cx-p { font-size: 17px; color: var(--tenue); margin-top: 10px; }
.nubes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.nube { text-align: left; padding: 18px; border: 1px solid var(--linea2); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background-color .2s; }
.nube:hover { border-color: var(--azul); background: var(--suave); }
.nube svg { width: 34px; height: 34px; fill: none; stroke: var(--azul); stroke-width: 1.6; }
.nube b { font-weight: 500; font-size: 17px; }
.nube span { font-size: 14px; color: var(--tenue); }
.nube em { font-style: normal; font-size: 12px; color: var(--azul); }
@media (max-width: 640px) { .nubes { grid-template-columns: 1fr; } .cx-pasos li { font-size: 0; } }
.orbita { position: relative; height: 280px; margin-top: 18px; background: var(--negro); overflow: hidden; }
.orbita canvas { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; image-rendering: pixelated; }
.orbita .o-app { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; background: #fff; transition: transform 1.1s cubic-bezier(.6, 0, .3, 1), opacity 1.1s; }
.orbita .o-app img { width: 34px; height: 34px; object-fit: contain; }
.orbita .o-app.mono { color: #fff; font-weight: 500; }
.orbita .o-txt { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--hielo); font-size: 15px; }
.orbita .o-txt b { color: var(--azul); font-weight: 400; }
.migra { margin-top: 20px; display: grid; gap: 10px; }
.migra .m { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px; background: var(--suave); }
.migra .m b { font-weight: 500; }
.migra .m span { font-size: 14px; color: var(--tenue); font-variant-numeric: tabular-nums; }
.migra .m i { grid-column: 1 / -1; height: 4px; background: var(--linea); }
.migra .m i u { display: block; height: 100%; width: 0; background: var(--azul); transition: width .2s linear; }
.noche { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px; background: var(--negro); color: var(--hielo); }
.noche .luna { width: 34px; height: 34px; border-radius: 50%; box-shadow: -8px 5px 0 0 #EDF4FF; transform: translate(8px, -4px); flex: none; }
.noche p { font-size: 15px; flex: 1; }
.noche p b { color: var(--azul); font-weight: 400; }
.cx-bot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chat { margin-top: 20px; background: var(--negro); color: var(--hielo); padding: 18px; display: grid; gap: 12px; }
.chat .yo { display: flex; gap: 12px; align-items: flex-start; }
.chat canvas { width: 44px; height: 44px; image-rendering: pixelated; flex: none; }
.chat .burb { background: rgba(237, 244, 255, .07); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.chat .burb b { color: var(--azul); font-weight: 400; }
.agentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.agentes span { font-size: 13px; padding: 8px 10px; background: rgba(237, 244, 255, .05); display: flex; align-items: center; gap: 8px; color: var(--gris-osc); opacity: 0; animation: aparece .4s forwards; animation-delay: calc(var(--k) * 90ms); }
.agentes span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 0 3px rgba(47, 210, 122, .2); flex: none; }
.cx-cifra { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.cx-cifra div b { display: block; font: 400 clamp(40px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -.04em; color: var(--azul); }
.cx-cifra div span { font-size: 14px; color: var(--tenue); }
.cx-reset { margin-top: 14px; font-size: 13px; color: var(--tenue); text-decoration: underline; }
.toast { position: fixed; z-index: 75; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 90%; bottom: 96px; background: var(--azul); color: #fff; padding: 12px 18px; font-size: 15px; box-shadow: 0 20px 40px -18px rgba(25, 118, 254, .7); animation: entra .3s; }
@keyframes brilla { 0%, 100% { box-shadow: 0 0 0 0 rgba(25, 118, 254, 0); } 50% { box-shadow: 0 0 0 6px rgba(25, 118, 254, .3); } }
@keyframes entra { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.p-legal { max-width: 1360px; margin: 28px auto 0; padding: 0 clamp(12px, 3vw, 32px); font-size: 12px; color: var(--tenue); }
.conecta { position: fixed; inset: 0; z-index: 72; display: flex; }
.conecta[hidden] { display: none; }
.cx-fondo { position: absolute; inset: 0; background: rgba(23, 23, 23, .6); backdrop-filter: blur(4px); }
.album-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; font-size: 26px; color: inherit; }
.sugs button:nth-child(n+5) { display: none; }
.ap-x { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
