/* Pasatiempos del Alma — landing page styles */

:root {
  --cream: #FDF6E9;
  --cream-alt: #FBEDD3;
  --ink: #2E2622;
  --ink-soft: #4A3F3A;
  --ink-muted: #7A6E68;
  --teal: #0F7173;
  --teal-light: #14898B;
  --amber: #F4A93B;
  --amber-dark: #E8933A;
  --gold: #E8C468;
  --terra: #C4552D;
  --terra-dark: #A8431F;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
a:hover { color: var(--amber); }

h1, h2, h3, p { margin: 0; }

img { max-width: 100%; }

.page {
  min-height: 100vh;
  background: var(--cream);
  overflow: hidden;
  color: var(--ink);
}

/* ---------- Reveal-on-scroll ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 900ms cubic-bezier(.2,.7,.2,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46,38,34,0.88), rgba(46,38,34,0.80));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232,196,104,0.35);
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.12), 0 10px 30px rgba(46,38,34,0.25);
}

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 10px 8px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46,38,34,0.88), rgba(46,38,34,0.80));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232,196,104,0.35);
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.12), 0 10px 30px rgba(46,38,34,0.25);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--cream);
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--amber-dark));
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.7), 0 8px 20px rgba(244,169,59,0.35);
  white-space: nowrap;
}

.nav-cta:hover { color: var(--ink); opacity: 0.92; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  will-change: opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay-gradient {
  background: linear-gradient(180deg, rgba(46,38,34,0.55) 0%, rgba(46,38,34,0.35) 30%, rgba(46,38,34,0.55) 70%, rgba(46,38,34,0.75) 100%);
}

.hero-overlay-radial {
  background: radial-gradient(ellipse at 50% 50%, rgba(46,38,34,0.55), rgba(46,38,34,0.15) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 160px 24px 120px;
  max-width: 900px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(253,246,233,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232,196,104,0.4);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(40px, 6.8vw, 80px);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.65), 0 0 60px rgba(46,38,34,0.5);
}

.hero-title-accent {
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(0,0,0,0.75);
}

.hero-sub {
  display: block;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8), 0 0 24px rgba(0,0,0,0.6);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(253,246,233,0.22), rgba(253,246,233,0.10));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232,196,104,0.5);
  color: var(--cream);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.5), 0 12px 30px rgba(46,38,34,0.35);
}

.hero-btn:hover { color: var(--cream); opacity: 0.9; }

.hero-btn-arrow { font-size: 18px; }

.hero-link {
  color: var(--gold);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,196,104,0.5);
  padding-bottom: 2px;
}

.hero-link:hover { color: var(--amber); }

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(253,246,233,0) 0%, var(--cream) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ---------- Shared section layout ---------- */

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  font-weight: 600;
}

.eyebrow-light { color: var(--gold); }

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 16px auto 0;
}

.accent-amber { font-style: italic; color: var(--amber); }
.accent-gold { font-style: italic; color: var(--gold); }

.card {
  border-radius: 24px;
  border: 1px solid rgba(232,196,104,0.45);
}

/* ---------- Intro quote ---------- */

.intro {
  padding: 140px 24px;
  background: var(--cream);
}

.intro-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro-inner p {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.intro-accent { font-style: italic; color: var(--teal); }

/* ---------- Benefits ---------- */

.benefits {
  padding: 40px 24px 120px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(253,246,233,0.55), rgba(253,246,233,0.25));
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.7), 0 20px 40px -20px rgba(46,38,34,0.2);
}

.benefit-num {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  margin-bottom: 24px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(232,196,104,0.4);
}

.benefit-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}

.benefit-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Puzzle interactivo ---------- */

.puzzle {
  padding: 130px 24px 100px;
  background: var(--cream);
}

.puzzle-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.puzzle-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.puzzle-encourage { color: var(--amber-dark); font-weight: 600; }

.puzzle-board {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(232,196,104,0.45);
  box-shadow: inset 0 1px 0 rgba(255,240,200,0.7), 0 20px 40px -22px rgba(46,38,34,0.2);
  user-select: none;
  flex: 1 1 420px;
  max-width: 460px;
}

.puzzle-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}

.puzzle-cell.is-selected {
  background: var(--teal);
  color: var(--cream);
  transform: scale(1.05);
}

.puzzle-cell.is-found {
  background: var(--amber);
  color: var(--ink);
  cursor: default;
}

.puzzle-feedback {
  min-height: 22px;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 16px;
  transition: color 200ms ease;
}

.puzzle-feedback.is-found { color: var(--amber-dark); font-weight: 600; }

.puzzle-wordlist {
  background: #fff;
  border: 1px solid rgba(232,196,104,0.45);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: left;
  flex: 0 0 190px;
  align-self: stretch;
}

.puzzle-wordlist-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.puzzle-wordlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.puzzle-word { color: var(--ink); transition: color 200ms ease; }
.puzzle-word.is-found {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

.puzzle-reset {
  margin: 20px auto 0;
  background: transparent;
  border: 1px solid rgba(232,196,104,0.6);
  color: var(--ink-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  cursor: pointer;
  display: block;
}

.puzzle-reset:hover { color: var(--ink); border-color: var(--amber); }
.puzzle-reset[hidden] { display: none; }

.puzzle-cta {
  margin-top: 24px;
  background: var(--teal);
  border-radius: 16px;
  padding: 28px 24px;
  color: var(--cream);
  text-align: center;
  animation: fadeUp 500ms cubic-bezier(.2,.7,.2,1);
}

.puzzle-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.25;
}

.puzzle-cta p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0 0 20px;
}

.puzzle-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--teal);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.puzzle-cta-btn:hover { color: var(--teal); opacity: 0.9; }

/* ---------- Regalo: 3 puzzles gratis ---------- */

.regalo {
  padding: 40px 24px 130px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
  text-align: center;
}

.regalo-inner { max-width: 640px; margin: 0 auto; }

.regalo-video-wrap {
  max-width: 420px;
  margin: 8px auto 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232,196,104,0.45);
  box-shadow: 0 24px 50px -24px rgba(46,38,34,0.35);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.regalo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.regalo-video-caption {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.regalo-fan {
  position: relative;
  width: clamp(220px, 55vw, 280px);
  height: clamp(280px, 70vw, 360px);
  margin: 0 auto 40px;
}

.regalo-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(232,196,104,0.45);
  box-shadow: 0 20px 44px -18px rgba(46,38,34,0.4);
  transform: rotate(var(--rot, 0deg));
}

.regalo-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px -12px rgba(15,113,115,0.55);
}

.regalo-btn:hover { color: var(--cream); opacity: 0.92; }

.regalo-hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Libros / temáticas ---------- */

.libros {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 100%);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(253,246,233,0.6);
  border: 1px solid rgba(15,113,115,0.18);
  color: var(--ink);
  font-size: 15px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  cursor: default;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.tag:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
  box-shadow: 0 14px 28px -12px rgba(15,113,115,0.45);
}

/* ---------- Historia ---------- */

.historia {
  padding: 140px 24px;
  background: var(--teal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.historia-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,196,104,0.18), transparent 60%);
  pointer-events: none;
}

.historia-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.historia-quote {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.35;
  margin: 0 0 32px;
  font-weight: 400;
}

.historia-body {
  display: block;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(253,246,233,0.85);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Los libros (cards + Amazon) ---------- */

.libros-comprar {
  padding: 130px 24px;
  background: var(--cream);
}

.libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.libro-card {
  background: #fff;
  border: 1px solid rgba(232,196,104,0.45);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(46,38,34,0.25);
  display: flex;
  flex-direction: column;
}

.libro-cover-wrap {
  overflow: hidden;
  aspect-ratio: 900 / 1165;
  background: var(--ink);
}

.libro-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.libro-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.libro-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}

.libro-desc {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

.libro-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.libro-bullets li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.libro-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
  flex-shrink: 0;
  align-self: center;
}

.libro-dot-terra { background: var(--terra); }

.libro-cta {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.libro-cta:hover { color: var(--cream); opacity: 0.9; }

.libro-cta-terra { background: var(--terra); }
.libro-cta-terra:hover { color: var(--cream); }

/* ---------- Footer ---------- */

.footer {
  padding: 64px 24px 48px;
  background: var(--ink);
  color: var(--cream);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-brand { max-width: 320px; }

.footer-logo {
  height: 72px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-columns {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
}

.footer-col-links a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(253,246,233,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.6;
}

.footer-tagline { font-style: italic; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav { top: 12px; padding: 0 16px; }
  .nav-logo { height: 40px; }
  .nav-logo-link { padding: 6px 12px; }
  .nav-links { display: none; }
  .nav-pill { padding: 8px; gap: 0; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .hero-content { padding: 120px 20px 90px; }

  .puzzle-board { flex-direction: column; align-items: center; }
  .puzzle-wordlist { width: 100%; max-width: 360px; flex: none; }
  .puzzle-grid { width: 100%; max-width: 360px; flex: none; }
}
