/* ==========================================================================
   Nerdy Planet — guía de uso (página pública)
   Misma estética de marca que el formulario y la tienda: planeta retro
   naranja / teal / verde salvia sobre crema.
   ========================================================================== */

@font-face {
  font-family: 'Josefin Sans';
  src: url('/assets/josefin-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --np-orange: #fe6902;
  --np-orange-soft: #e67e22;
  --np-teal: #3e9080;
  --np-sage: #80aa8d;
  --np-charcoal: #2d3e46;
  --np-cream: #fffdf1;

  --bg: #fffdf1;
  --bg-alt: #f6f3e8;
  --surface: #ffffff;
  --surface-2: #faf8f1;
  --text: #2d3e46;
  --text-soft: #56696f;
  --text-muted: #8a979b;
  --border: #e6e1d2;
  --primary: #fe6902;
  --primary-hover: #e5600a;
  --primary-soft: #fff1e6;
  --accent: #3e9080;
  --accent-soft: #e3f1ee;
  --gold: #f5c518;
  --shadow-sm: 0 1px 2px rgba(45, 62, 70, .06);
  --shadow: 0 2px 10px rgba(45, 62, 70, .08);
  --shadow-lg: 0 12px 32px rgba(45, 62, 70, .12);
  --radius: 16px;
  --radius-sm: 10px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Josefin Sans', 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--primary); }

/* La tira de arriba: el mismo borde del PDF de la guía. */
.topstrip {
  height: 6px;
  background: linear-gradient(90deg,
    var(--np-orange) 0%,
    var(--np-gold, #f5c518) 32%,
    var(--np-teal) 66%,
    var(--np-sage) 100%);
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
}

.muted { color: var(--text-muted); }
.fine { font-size: .85rem; }

/* --------------------------------------------------------------- header */

.brand {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-logo {
  width: 52px;
  height: auto;
  display: block;
}

.brand-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .22em;
  color: var(--np-orange);
}

.brand-sub {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 52px 22px 8px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
}

.hero h1 span {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .02em;
  height: .16em;
  background: rgba(254, 105, 2, .18);
  border-radius: 999px;
}

.lead {
  max-width: 34em;
  margin: 0 auto 26px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------- botones */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-row.center { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 700 .98rem/1 'Lato', sans-serif;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(254, 105, 2, .28);
}
.btn.primary:hover { background: var(--primary-hover); }

.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: var(--np-sage); }

.btn.dark {
  background: var(--np-charcoal);
  color: #fff;
}
.btn.dark:hover { background: #22323a; }

.btn.big {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn .icon { width: 19px; height: 19px; }

/* -------------------------------------------------------------- secciones */

.section {
  padding: 44px 22px 8px;
}

.section-head {
  max-width: 40em;
  margin-bottom: 20px;
}
.section-head p { margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* ---------------------------------------------------------------- video */

.video-placeholder {
  text-align: center;
  padding: 46px 26px;
  background:
    radial-gradient(circle at 50% 0%, var(--primary-soft), transparent 60%),
    var(--surface);
}

.video-play {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(254, 105, 2, .3);
}
.video-play .icon { width: 32px; height: 32px; margin-left: 4px; }

.video-placeholder p { max-width: 32em; margin: 0 auto 18px; }

/* ------------------------------------------------------------------ pdf */

.pdf-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* La altura es la de una hoja A4 en pantalla, con un poco de aire. */
  height: min(78vh, 900px);
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--surface-2);
}

/* --------------------------------------------------------------- reseña */

.review {
  text-align: center;
  padding: 40px 26px;
  background:
    radial-gradient(circle at 50% -20%, #fff6e3, transparent 55%),
    var(--surface);
  border-color: #f0e2c8;
}

.stars {
  font-size: 2rem;
  letter-spacing: .16em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.review p {
  max-width: 36em;
  margin: 0 auto 22px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------- tienda */

.store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-alt);
}

.store h2 { margin-bottom: .2em; }
.store p { margin: 0; }

/* ----------------------------------------------------------------- foot */

.foot {
  margin-top: 60px;
  background: var(--np-charcoal);
  color: #cfd8db;
  padding: 34px 0 40px;
}

.foot-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-logo {
  width: 40px;
  height: auto;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
}

.foot-text {
  margin: 0;
  font-size: .88rem;
  color: #a8b7bc;
}

.foot-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: .92rem;
}
.foot-links a { color: #e8eef0; text-decoration: none; }
.foot-links a:hover { color: var(--np-orange); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 38px; }
  .card { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .pdf-frame { height: 70vh; }
  .foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
