/* Lanzador de Zojim. Pensado para gente mayor: letra grande, botones grandes, mucho contraste. */
:root {
  --bg: #09090a;
  --bg-2: #111112;
  --card: #151516;
  --text: #f5f3ee;
  --muted: #d0ccc4;
  --dim: #aaa69e;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --gold: #d6b264;
  --gold-soft: #ead7a4;
  --gold-deep: #9c7a35;
  --grad: linear-gradient(120deg, #f6e8c3, #d6b264 50%, #9c7a35);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --arriba: env(safe-area-inset-top, 0px);
  --abajo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-top: var(--arriba);
}
a { color: var(--gold-soft); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(110px); }
.aurora i:nth-child(1) { width: 560px; height: 560px; background: #b8913f; top: -320px; left: -240px; opacity: .2; }
.aurora i:nth-child(2) { width: 480px; height: 480px; background: #6f6a60; top: -200px; right: -260px; opacity: .2; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

/* Barra de arriba */
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 16px 16px 4px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; min-height: 48px; }
.logo svg, .logo img { width: 40px; height: 40px; border-radius: 10px; }
.estado { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.estado::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.estado.off::before { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }

.sin-red {
  width: calc(100% - 32px); max-width: 728px; margin: 12px auto 0; padding: 16px 18px; border-radius: 16px;
  background: #2a1f08; border: 1px solid #a16207; color: #fde9b8; font-size: 1rem;
}
.sin-red b { color: #fff; }

/* Títulos */
.vista { padding-top: 22px; }
h1 { font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-soft); letter-spacing: -.01em; }
.sub { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

/* Tarjetas de apps */
.apps { display: grid; gap: 16px; margin-top: 26px; }
.apps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.app {
  --c1: #ead7a4; --c2: #9c7a35;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent);
}
.app::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-icono {
  width: 76px; height: 76px; border-radius: 20px; flex-shrink: 0; object-fit: cover;
  display: grid; place-items: center; font-weight: 700; font-size: 2rem; color: #0a0a0b;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 34px -14px var(--c1), inset 0 1px 0 rgba(255,255,255,.3);
}
.app h2 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 650; line-height: 1.15; }
.app p { color: var(--muted); font-size: 1.02rem; }
.abrir {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 0 22px; border-radius: 18px;
  background: linear-gradient(120deg, var(--c1), var(--c2)); color: #07070a;
  font: 700 1.2rem/1.2 var(--sans); text-decoration: none; text-align: center;
  box-shadow: 0 16px 40px -18px var(--c1);
}
.abrir svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.abrir:active { transform: scale(.98); }
.abrir.apagado { background: #2a2a2c; color: var(--muted); box-shadow: none; pointer-events: none; }
.nota-red { color: #fde9b8 !important; font-size: .95rem !important; }

.vacio { margin-top: 26px; padding: 28px; border-radius: 22px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }

/* Botones secundarios */
.mas { display: grid; gap: 12px; margin-top: 30px; }
@media (min-width: 700px) { .mas { grid-template-columns: 1fr 1fr; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 10px 22px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text);
  font: 600 1.05rem/1.25 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.btn svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-grande {
  display: flex; width: 100%; min-height: 64px; margin-top: 22px;
  border: none; background: var(--grad); color: #07070a; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 16px 44px -18px rgba(214,178,100,.8);
}
.btn-grande:hover { background: var(--grad); filter: brightness(1.05); }
[data-instalar]:not([hidden]) + .btn-grande { margin-top: 12px; background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; font-size: 1.05rem; }

.aviso { margin-top: 28px; color: var(--dim); font-size: .95rem; }

/* Volver */
.volver {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; margin-bottom: 20px;
}
.volver span { font-size: 1.7rem; line-height: 1; color: var(--gold); margin-top: -3px; }

/* Instalar */
.instalado { margin-top: 20px; padding: 20px; border-radius: 18px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.4); }
.pasos-texto { margin: 26px 0 0 1.4em; display: grid; gap: 14px; font-size: 1.05rem; color: var(--muted); }
.pasos-texto li::marker { color: var(--gold); font-weight: 700; }
.pasos-texto b { color: var(--text); }
.nota { margin-top: 20px; color: var(--dim); }

.guia { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.guia li {
  display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center;
  padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  font-size: 1.08rem; color: var(--muted);
}
@media (min-width: 560px) { .guia li { grid-template-columns: 200px 1fr; } }
.guia b { color: var(--text); }
.dibujo { width: 100%; max-width: 220px; height: auto; justify-self: center; }
.d-tel { fill: #1d1d1f; stroke: #3a3a3d; stroke-width: 2; }
.d-safari { fill: #1d6fe0; }
.d-aguja { fill: #fff; }
.d-aguja2 { fill: #e53935; }
.d-marca { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 5 4; }
.d-marca-relleno { fill: var(--gold); }
.d-barra { fill: #2c2c2f; }
.d-fila { fill: #2c2c2f; }
.d-fila-marca { stroke: var(--gold); stroke-width: 3; }
.d-linea { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-flecha { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-txt { fill: #fff; font: 600 17px var(--sans); }
.d-txt-chico { fill: #e8e6e1; font: 500 12px var(--sans); }
.d-txt-oro { fill: var(--gold-soft); font-weight: 700; }
.d-txt-negro { fill: #07070a; font-weight: 700; }
.d-icono { fill: #09090a; stroke: rgba(214,178,100,.6); stroke-width: 1.5; }
.d-z { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.d-app { fill: #3a3a3d; }

.otros { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 8px; }
.otros summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--gold-soft); font-size: 1.05rem; }
.otros-botones { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 600px) { .otros-botones { grid-template-columns: repeat(3, 1fr); } }

/* Ayuda */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 60px; display: flex; align-items: center; padding: 14px 56px 14px 20px;
  font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 1.05rem; }
.faq b { color: var(--text); }
.contacto { margin-top: 26px; padding: 22px; border-radius: 18px; border: 1px solid rgba(214,178,100,.4); background: rgba(214,178,100,.06); }
.contacto p { margin-top: 6px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .vista { animation: entrar .35s ease-out; }
  @keyframes entrar { from { opacity: 0; transform: translateY(8px); } }
}
