/* ============================================================
   CIUDADPEDALEA — identidad propia (paleta ya usada en la app)
   Fondo oscuro + verde neón. Space Grotesk para títulos, Inter texto.
   ============================================================ */

:root {
  --bg:        #080d16;
  --bg2:       #0e1520;
  --bg3:       #141c2b;
  --bg4:       #1a2436;
  --green:     #00e676;
  --green2:    #00c853;
  --green-dim: rgba(0,230,118,0.12);
  --green-glow:rgba(0,230,118,0.25);
  --cyan:      #00bcd4;
  --amber:     #ffab00;
  --red:       #ff5252;
  --text:      #e8f0fe;
  --text2:     #8a9bb5;
  --text3:     #4a5568;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(0,230,118,0.25);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.display { font-size: clamp(32px, 5.2vw, 46px); line-height: 1.14; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.18; }
h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.33; }
h3 { font-size: 17px; line-height: 1.5; }
p { margin: 0; }
.muted { color: var(--text2); }
em { font-style: normal; color: var(--green); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--green); flex: none; box-shadow: 0 0 8px var(--green-glow); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #04140b; }
.btn-primary:hover { background: var(--green2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--amber); background: rgba(255,171,0,0.1); border: 1px solid rgba(255,171,0,0.3);
  padding: 8px 16px; border-radius: 999px;
}

/* ── Header ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(8,13,22,0.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.nav-logo .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: none; }
.nav-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 42px; color: var(--text); cursor: pointer; font-size: 18px; }

/* ── Hero ── */
.hero { position: relative; padding: clamp(140px, 18vw, 190px) 0 clamp(60px, 8vw, 90px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 640px;
  background:
    radial-gradient(42% 55% at 20% 15%, rgba(0,230,118,0.16), transparent 70%),
    radial-gradient(34% 46% at 84% 6%, rgba(0,188,212,0.12), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1.display { max-width: 17ch; margin: 20px 0 22px; }
.hero-sub { max-width: 58ch; font-size: 17.5px; line-height: 1.6; color: var(--text2); margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 54px; }

/* ── Stats ── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.stat-item { background: var(--bg2); padding: 24px 20px; text-align: center; }
.stat-n { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); color: var(--green); }
.stat-l { font-size: 12.5px; color: var(--text2); margin-top: 6px; }

/* ── Secciones ── */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(38px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2.display { margin-top: 14px; max-width: 20ch; }
.section-head p { margin-top: 16px; color: var(--text2); font-size: 15.5px; max-width: 56ch; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Grid de 3 (problema / solución / para quién) ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.g-card { background: var(--bg2); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transition: background 220ms var(--ease); }
.g-card:hover { background: var(--bg3); }
.g-tag { font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.g-card h3 { color: var(--text); }
.g-card p { color: var(--text2); font-size: 14.5px; }

/* ── Pantallas de la app ── */
.screens { display: flex; flex-direction: column; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.screen-row { background: var(--bg2); display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: clamp(24px,3.4vw,34px); align-items: start; }
.screen-mock {
  width: 96px; height: 96px; border-radius: 20px;
  background: linear-gradient(155deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  box-shadow: 0 0 0 1px rgba(0,230,118,0.05), 0 10px 30px rgba(0,0,0,0.35);
}
.screen-num { font-family: var(--font-display); font-size: 12.5px; color: var(--text3); }
.screen-tag { font-family: var(--font-body); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 6px 0 10px; }
.screen-row h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; }
.screen-row > div:last-child > p.desc { color: var(--text2); font-size: 14.5px; max-width: 62ch; margin-bottom: 14px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.bullets li { font-size: 13.5px; color: var(--text2); padding-left: 20px; position: relative; }
.bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ── Modelo de negocio ── */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.biz-card { background: var(--bg2); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.biz-tag { font-family: var(--font-display); font-size: 13px; color: var(--amber); }
.biz-card h3 { font-size: 16px; color: var(--text); }
.biz-card p { color: var(--text2); font-size: 14px; }

/* ── Franja de cita ── */
.tone-band { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tone-band .wrap { padding-top: clamp(50px, 7vw, 76px); padding-bottom: clamp(50px, 7vw, 76px); }
.tone-quote { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; max-width: 24ch; color: var(--text); }

/* ── Contacto / cierre ── */
.contact-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: clamp(30px, 4vw, 44px); }
.contact-card .email-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 22px); color: var(--green); margin: 18px 0 6px; }
.contact-card .email-link:hover { color: var(--green2); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-meta { font-size: 13px; color: var(--text3); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-credit { font-size: 13px; color: var(--text2); }
.footer-credit a { color: var(--green); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .grid3, .biz-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .screen-row { grid-template-columns: 72px 1fr; gap: 20px; }
  .screen-mock { width: 72px; height: 72px; font-size: 26px; border-radius: 16px; }
}
@media (max-width: 560px) {
  .grid3, .biz-grid, .stat-strip { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .screen-row { grid-template-columns: 1fr; }
  .screen-mock { width: 56px; height: 56px; font-size: 22px; }
}
