/* Portales de Constela (home y un portal por app) — diseño v2. Hereda tokens de /shared/ui.css.
   Ritmo: héroe oscuro → banda clara de funciones → bloques oscuros, con 80 px entre secciones (referencia Status). */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--steel); background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.nav .brand { font-size: 1.08rem; }
.nav .logo { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav nav a:not(.btn) { color: var(--ash); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
.nav nav a:not(.btn):hover { color: #fff; }

/* Héroe */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 80px 0 72px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: .98; letter-spacing: -.021em; font-weight: 700; margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent-l); }
.hero .lead { color: var(--ash); font-size: 1.1rem; line-height: 1.55; margin: 22px 0 0; max-width: 54ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pill { font: 500 .78rem var(--font); color: var(--ash); border: 1px solid var(--steel); background: var(--slate); padding: 4px 12px; border-radius: 9999px; }
.pill.ok { color: var(--ok); } .pill.pro { color: var(--amber); }
.pill.live { display: inline-flex; align-items: center; gap: 8px; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-l); box-shadow: 0 0 10px var(--accent-l); }

/* Maqueta de ventana (el producto es el protagonista) */
.stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.orb.a { width: 320px; height: 320px; background: var(--accent); right: 6%; top: 4%; }
.orb.b { width: 260px; height: 260px; background: var(--violet); left: 2%; bottom: 0; opacity: .38; }
.device { position: relative; width: min(100%, 460px); background: var(--slate); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 70px -30px #000; overflow: hidden; }
.device .bar-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--steel); background: var(--ink); }
.device .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); }
.device .dot:first-child { background: var(--accent); }
.device .url { margin-left: 8px; font: 400 .72rem var(--mono); color: var(--muted); }
.device .body { padding: 22px; display: grid; gap: 14px; }
.device .head { display: flex; align-items: center; gap: 14px; }
.device .head img { width: 56px; height: 56px; border-radius: 16px; }
.device .head b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.device .head span { font: 400 .72rem var(--mono); color: var(--muted); }
.sk { height: 10px; border-radius: 6px; background: var(--steel); }
.sk.w1 { width: 92%; } .sk.w2 { width: 74%; } .sk.w3 { width: 58%; }
.sk.acc { background: var(--accent); width: 34%; height: 34px; border-radius: 10px; }
.device .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.device .tile { height: 64px; border-radius: 12px; background: var(--ink); border: 1px solid var(--steel); display: grid; place-items: center; }
.device .tile img { width: 36px; height: 36px; border-radius: 10px; }
.device .tile.on { border-color: var(--accent); }
.device .stat { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: var(--ink); border: 1px solid var(--steel); border-radius: 12px; }
.device .stat b { font: 400 1.5rem var(--mono); }
.device .stat span { font: 400 .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Secciones */
.sec { padding: 80px 0; }
.sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 14px 0 10px; }
.sec > .sub, .sec .sub { color: var(--ash); margin: 0 0 36px; max-width: 62ch; }
.lightband { background: var(--paper); color: var(--ink); }
.lightband .eyebrow { color: var(--mist); }
.lightband .sub { color: var(--mist); }
.lightband h2, .lightband h3 { color: var(--ink); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { background: var(--cloud); border-radius: 20px; padding: 24px; }
.feat .ico { font: 400 .8rem var(--mono); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 18px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--mist); font-size: .95rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--slate); border: 1px solid var(--steel); border-radius: 20px; padding: 24px; }
.step .n { font: 400 .8rem var(--mono); color: var(--accent-l); letter-spacing: .08em; }
.step p { margin: 12px 0 0; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: start; } /* cada tarjeta con su altura: Gratis no se estira para igualar a Premium */
.plan { background: var(--slate); border: 1px solid var(--steel); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border-color: var(--accent-l); background: color-mix(in srgb, var(--accent) 9%, var(--slate)); }
.plan h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; } /* sin align-content las filas se estiran cuando la tarjeta vecina (Premium con precios) es mas alta */
.plan li { padding-left: 26px; position: relative; color: var(--ash); font-size: .95rem; }
.plan li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan.featured li::before { border-color: var(--accent-l); }
.price { font: 400 1.9rem var(--mono); letter-spacing: -.02em; }
.price small { font: 400 .8rem var(--font); color: var(--muted); }
.priceline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--steel); padding-top: 12px; }
.priceline .lbl { color: var(--ash); font-size: .92rem; }

/* Novedades */
.log { display: grid; gap: 0; max-width: 760px; }
.log .entry { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--steel); }
.log .v { font: 400 .85rem var(--mono); color: var(--accent-l); }
.log ul { margin: 0; padding-left: 18px; color: var(--ash); display: grid; gap: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--slate); border: 1px solid var(--steel); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 500; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-l); font: 400 1.3rem/1 var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 16px; color: var(--ash); }

/* Tarjetas de apps */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); background: var(--slate); border: 1px solid var(--steel); border-radius: 20px; padding: 22px; transition: border-color .15s, transform .15s, background .15s; }
.app-card:hover { transform: translateY(-3px); border-color: var(--c, var(--accent-l)); background: color-mix(in srgb, var(--c, var(--accent)) 6%, var(--slate)); color: var(--text); }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card img { width: 52px; height: 52px; border-radius: 15px; }
.app-card h3 { font-size: 1.15rem; }
.app-card p { margin: 0; color: var(--ash); font-size: .94rem; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 400 .68rem var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 9999px; background: var(--ink); border: 1px solid var(--steel); color: var(--ash); }
.tag.free { color: var(--ok); } .tag.prem { color: var(--amber); } .tag.mant { color: var(--bad); }
.band { margin: 0; padding: 40px; border: 1px solid var(--steel); border-radius: 24px; background: var(--slate); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; width: 360px; height: 360px; right: -80px; top: -140px; border-radius: 50%; background: var(--accent); opacity: .22; filter: blur(60px); }
.band > * { position: relative; }
.band h2 { font-size: 1.7rem; margin: 0; }
.band p { margin: 8px 0 0; color: var(--ash); }
.pfoot { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 32px 0 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--steel); margin-top: 80px; }
.pfoot a { color: var(--ash); }
.empty { text-align: center; padding: 90px 18px; }
.loading { padding: 40px 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 24px; } .stage { order: -1; min-height: 240px; } .sec { padding: 56px 0; } .log .entry { grid-template-columns: 1fr; gap: 6px; } }
.sec.tight { padding-top: 24px; }

.priceline { align-items: center; }
.priceline .btn.small { margin-left: 10px; white-space: nowrap; }
/* aclaracion del equivalente en pesos: texto normal y compacto, no en la tipografia monoespaciada del precio */
.priceline .lbl { min-width: 120px; }
.price .muted { font: 400 .74rem var(--font); letter-spacing: 0; line-height: 1.35; margin-top: 4px; max-width: 30ch; }
dialog.buy { border: 1px solid var(--steel); background: var(--ink); color: var(--text); border-radius: 20px; padding: 24px; width: min(420px, calc(100vw - 32px)); }
dialog.buy::backdrop { background: rgba(5, 3, 12, .7); }
dialog.buy h3 { margin: 0 0 6px; }
dialog.buy label { display: block; font-size: .85rem; color: var(--text2); margin: 14px 0 4px; }
dialog.buy input { width: 100%; }
dialog.buy .row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gracias { max-width: 560px; margin: 8vh auto; text-align: center; }
.gracias .keybox { font: 600 1.3rem var(--mono); letter-spacing: .06em; padding: 16px; border: 1px dashed var(--accent-l); border-radius: 14px; margin: 18px 0; word-break: break-all; user-select: all; }
.gracias .steps-list { text-align: left; max-width: 280px; margin: 14px auto 20px; }
