/* Ciberimaginario Play — portada. Misma familia que Citizen Radar (hero oscuro, tipografía redondeada, código a la vista),
   con carácter propio: aurora de luz, rejilla de suelo, holograma y tarjetas de vidrio. Se carga después de app.css. */
.home { position: relative; }
.home::before { display: none; }

/* Fondo: dos luces (cian y verde) y una rejilla fina que se desvanece */
.home-bg { position: absolute; inset: 0 0 auto 0; height: 980px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 42% at 82% 16%, rgba(34, 184, 230, .30), transparent 70%),
    radial-gradient(38% 36% at 8% 4%, rgba(61, 220, 151, .13), transparent 70%),
    radial-gradient(30% 30% at 60% 70%, rgba(255, 200, 87, .06), transparent 70%); }
.home-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(159, 196, 230, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 196, 230, .07) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 30%, #000, transparent 75%); }
.home > header, .home > main, .home > footer { position: relative; z-index: 1; }

.home .site-head { border-bottom-color: transparent; max-width: 1160px; margin: 0 auto; padding: 1.1rem 20px; }
.home .brand { font-size: 1.08rem; }
.home-main { max-width: 1160px; margin: 0 auto; padding: 0 20px 4rem; overflow-x: clip; }

.hm-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.hm-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .7em; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }

/* ── Hero ── */
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem); position: relative; }
.hm-hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 1rem; text-wrap: balance; }
.hm-hero h1 .grad { background: linear-gradient(100deg, #7FE3FF 0%, var(--accent) 45%, var(--ok) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-motto { font-family: var(--mono); font-size: clamp(.86rem, 2vw, 1rem); color: var(--text); margin: 0 0 1rem; }
.hm-hero .lead { max-width: 54ch; margin: 0 0 1.8rem; }

.hm-code { max-width: 500px; padding: 1.1rem 1.2rem 1rem; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -30px rgba(34, 184, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .07); }
.hm-code label { display: block; font-weight: 800; margin-bottom: .55rem; }
.hm-code-row { display: flex; gap: .5rem; }
.hm-code-row input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 1.2rem; letter-spacing: .18em; text-transform: uppercase; color: #fff;
  padding: .7rem .9rem; min-height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(4, 18, 28, .55); }
.hm-code-row input::placeholder { color: rgba(255, 255, 255, .32); }
.hm-code-row input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(34, 184, 230, .28); }
.hm-code-row .btn { border-radius: 14px; min-height: 52px; white-space: nowrap; }
.hm-code p { margin: .65rem 0 0; }

.hm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 0; }
.hm-tags li { font-size: .82rem; font-weight: 700; color: var(--muted); padding: .35em .85em; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); }

/* Holograma */
.hm-art { width: 100%; max-width: 440px; justify-self: center; overflow: visible; filter: drop-shadow(0 0 34px rgba(34, 184, 230, .22)); }
.hm-art .floor { fill: none; stroke: var(--accent); stroke-opacity: .3; stroke-width: 1.1; }
.hm-art .base { fill: none; stroke: var(--accent); stroke-width: 2.4; animation: hm-base 3.2s ease-in-out infinite; }
.hm-art .cone { opacity: .35; }
.hm-art .figure { animation: hm-float 5s ease-in-out infinite; }
.hm-art .scanline { fill: #C9F4FF; opacity: .8; animation: hm-scan 3.6s linear infinite; }
.hm-art .frame { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hm-art .chip { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: hm-float 6s ease-in-out infinite; }
.hm-art .chip rect:first-child { fill: rgba(18, 34, 58, .82); stroke: rgba(159, 196, 230, .3); stroke-width: 1.2; }
.hm-art .chip.c2 { stroke: var(--warn); animation-delay: -2s; }
.hm-art .chip.c2 path { fill: var(--warn); stroke: none; }
.hm-art .chip.c3 { stroke: var(--ok); animation-delay: -4s; }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hm-scan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .85; } 88% { opacity: .85; } 100% { transform: translateY(252px); opacity: 0; } }
@keyframes hm-base { 0%, 100% { stroke-opacity: .55; } 50% { stroke-opacity: 1; } }

/* ── Secciones ── */
.hm-sec { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.hm-sec h2, .hm-cta h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .6rem; text-wrap: balance; }
.hm-sub { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0 0 1.8rem; }

.hm-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hm-shared { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.hm-card { --c: var(--accent); position: relative; overflow: hidden; padding: 1.4rem 1.4rem 1.5rem; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--glass-line); transition: transform .25s ease, border-color .25s ease; }
.hm-card.green { --c: var(--ok); }
.hm-card.amber { --c: var(--warn); }
.hm-card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent); opacity: .16; transition: opacity .25s ease; }
.hm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.hm-card:hover::before { opacity: .3; }
.hm-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1rem; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.hm-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.hm-card p { color: var(--muted); margin: 0; max-width: 46ch; }
.hm-tool { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.4rem; }
.hm-tool h3 { font-size: 1.55rem; }
.hm-tool > p:not(.hm-tag) { flex: 1; font-size: 1.02rem; }
.hm-tag { position: absolute; right: 1.3rem; top: 1.5rem; margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c) !important;
  padding: .3em .7em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.hm-link { align-self: flex-start; margin-top: 1.1rem; font-weight: 800; color: var(--c); text-decoration: none; padding: .5em 1em; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: background .2s ease; }
.hm-link:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.hm-link::after { content: ""; position: absolute; inset: 0; }
.hm-mini { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; }
.hm-mini .hm-ico { flex: none; margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.hm-mini h3 { font-size: 1.08rem; }
.hm-mini p { font-size: .95rem; }
.hm-num { position: absolute; right: 1.2rem; bottom: .9rem; font-family: var(--mono); font-size: .8rem; color: var(--c); opacity: .7; }

/* Pasos unidos por una línea de luz */
.hm-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; position: relative; }
.hm-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--ok), var(--warn)); opacity: .5; }
.hm-steps li { position: relative; }
.hm-steps .n { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-family: var(--mono); font-size: 1.05rem; color: var(--accent);
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(34, 184, 230, .45); margin-bottom: 1rem; }
.hm-steps li:nth-child(2) .n { color: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(61, 220, 151, .4); }
.hm-steps li:nth-child(3) .n { color: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(255, 200, 87, .35); }
.hm-steps h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .3rem; }
.hm-steps p { color: var(--muted); margin: 0; }

/* Para quien organiza */
.hm-cta { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: 28px; border: 1px solid rgba(34, 184, 230, .35);
  background: radial-gradient(90% 160% at 100% 0%, rgba(34, 184, 230, .28), transparent 60%), radial-gradient(70% 140% at 0% 100%, rgba(61, 220, 151, .14), transparent 60%), var(--surface); }
.hm-cta > div { flex: 1 1 380px; }
.hm-cta h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.hm-cta p { margin: 0; color: var(--muted); max-width: 58ch; }
.hm-cta .actions { flex: none; }

.hm-foot { display: grid; justify-items: center; gap: .5rem; }
.hm-foot p { margin: 0; }

@media (max-width: 860px) {
  .hide-mobile { display: none; }
  .hm-hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .hm-art { position: absolute; right: -110px; top: -40px; width: 320px; opacity: .22; z-index: 0; }
  .hm-art .frame, .hm-art .chip { display: none; }
  .hm-hero-text { position: relative; z-index: 1; }
  .hm-tools, .hm-shared { grid-template-columns: 1fr; }
  .hm-steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .hm-steps::before { left: 24px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--ok), var(--warn)); }
  .hm-steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 1rem; }
  .hm-steps .n { grid-row: 1 / span 2; margin: 0; }
  .hm-steps h3 { align-self: end; }
}
@media (max-width: 420px) { .hm-code-row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .hm-art .figure, .hm-art .scanline, .hm-art .chip, .hm-art .base { animation: none; } .hm-art .scanline { opacity: 0; } .hm-card { transition: none; } }
