/* ============================================================
   NEXUSDEV · Estilos de herramientas
   Clona el sistema de la web: dark carbón + ámbar, Geist,
   botones rectos, eyebrow mono, tarjetas sutiles.
   (espejo de src/app/globals.css — tema dark por defecto)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --bg: #0c0c0e;
  --fg: #ececec;
  --card: #161618;
  --border: #262629;
  --muted: #8a8a92;
  --primary: #f5a623;
  --primary-fg: #1a1208;
  --radius: 0.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* fondo: glows ámbar suaves (sin el típico patrón de puntitos) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 6%, rgba(245, 166, 35, 0.06), transparent 70%),
    radial-gradient(48% 42% at 90% 96%, rgba(245, 166, 35, 0.045), transparent 72%);
}
body::after {
  content: "";
  position: fixed; left: 50%; top: -12%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  width: 760px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.09), transparent);
}

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 72px 24px 64px; }

/* ---- encabezado editorial ---- */
.appicon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5); display: block; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: "Geist Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: rgba(245, 166, 35, 0.6); }
h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-top: 20px; }
h1 .am { color: var(--primary); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; margin-top: 18px; }

/* ---- formularios ---- */
label { display: block; font-family: "Geist Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
input[type="text"], textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: var(--fg); font-family: inherit; font-size: 16px; outline: none; transition: border-color 0.2s;
}
input[type="text"]:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
input[type="range"] { accent-color: var(--primary); }

/* ---- botón primario (recto, ámbar, como la web) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-fg); font-weight: 700; font-size: 16px;
  padding: 0.9em 1.4em; border: 2px solid var(--primary); border-radius: 0.9em;
  cursor: pointer; font-family: inherit; transition: all 0.2s; width: 100%;
}
.btn:hover { background: #e0951a; border-color: #e0951a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--fg); width: auto; padding: 0.7em 1.2em; font-weight: 500; border-radius: 0.9em; }
.btn-ghost:hover { border-color: var(--primary); background: rgba(245, 166, 35, 0.06); }
.dl { /* link de descarga = botón outline ámbar */
  display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 2px solid var(--primary);
  border-radius: 0.9em; color: var(--primary); padding: 0.8em 1.4em; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
}
.dl:hover { background: var(--primary); color: var(--primary-fg); }

/* ---- tarjeta / chips ---- */
.card { border: 1px solid var(--border); background: rgba(22, 22, 24, 0.5); border-radius: var(--radius); padding: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { background: var(--card); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.chips button:hover { border-color: var(--primary); color: var(--fg); }

/* ---- botón VOLVER grande + footer de la web ---- */
.back-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 52px;
  background: var(--primary); color: var(--primary-fg);
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 18px 24px; border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.18);
  transition: opacity 0.2s, transform 0.1s;
}
.back-btn:hover { opacity: 0.92; }
.back-btn:active { transform: translateY(1px); }

/* footer a lo ancho, 3 columnas — igual al de la web */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); margin-top: 56px; }
.sf-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 24px 44px; }
.sf-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .sf-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; } }
.sf-logo { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sf-logo b { color: var(--primary); }
.sf-tag { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.sf-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 14px;
  text-decoration: none; padding: 11px 20px; transition: opacity 0.2s;
}
.sf-cta:hover { opacity: 0.9; }
.sf-col { display: flex; flex-direction: column; gap: 12px; }
.sf-h { font-family: "Geist Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.sf-col a { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--muted); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.sf-col a:hover { color: var(--fg); }
.sf-social { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.sf-social a { color: var(--muted); }
.sf-social a:hover { color: var(--primary); }
.ic { width: 16px; height: 16px; flex-shrink: 0; }
.ic5 { width: 20px; height: 20px; display: block; }
.sf-bar {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
@media (min-width: 640px) { .sf-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.sf-stack { font-family: "Geist Mono", monospace; }
.sf-stack a { color: inherit; text-decoration: none; transition: color 0.2s; }
.sf-stack a:hover { color: var(--primary); }

/* ---- guía "¿Cómo se usa?" dentro de cada app ---- */
.howto { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(245, 166, 35, 0.05); margin-top: 24px; }
.howto > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--fg); user-select: none; }
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary .q { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.howto > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.howto[open] > summary::after { transform: rotate(-135deg); }
.howto-body { padding: 2px 18px 18px; color: #c8c8cc; font-size: 14px; line-height: 1.7; }
.howto-body ol { margin: 4px 0 0 18px; }
.howto-body li { margin-bottom: 5px; }
.howto-body strong { color: var(--fg); }

/* botón flotante de WhatsApp (igual a la web) */
.wa-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.35);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:active { transform: scale(0.96); }
.wa-fab svg { width: 26px; height: 26px; position: relative; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(245, 166, 35, 0.4);
  animation: waping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes waping { 75%, 100% { transform: scale(1.7); opacity: 0; } }

/* compat: estilos viejos por si quedó alguno */
.back { display: inline-block; margin-top: 36px; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--fg); }
.foot { margin-top: 16px; font-family: "Geist Mono", monospace; font-size: 12px; color: rgba(236, 236, 236, 0.35); }
.foot b { color: var(--primary); }

/* ---- utilidades de estado ---- */
.muted { color: var(--muted); }
.am { color: var(--primary); }
.green { color: #34d399; }
.red { color: #ff5f57; }
