/* ============================================================
   CatchPets GO — Landing
   Design tokens espejo de src/design/tokens.ts del juego.
   ============================================================ */

:root {
  --bg: #f7efde;
  --surface: #ffffff;
  --surface-raised: #fff9ec;
  --outline: #e8d9be;

  --primary: #ee5f0c;
  --primary-pressed: #cf4e03;
  --secondary: #2bb3a3;
  --accent: #f5a623;

  --text-strong: #332315;
  --text: #5a4433;
  --text-muted: #a08468;

  --r-common: #8e959f;
  --r-uncommon: #22b45a;
  --r-rare: #3b7df6;
  --r-epic: #9d4eea;
  --r-legendary: #f59e0b;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-text: "Nunito", system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 6px 14px rgba(138, 107, 74, 0.25);
  --shadow-soft: 0 3px 8px rgba(138, 107, 74, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* patrón de huellas sutil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23e8d9be' fill-opacity='0.35'%3E%3Cpath d='M30 34c3 0 5 2.6 5 6s-2 6-5 6-5-2.6-5-6 2-6 5-6zm-9-8c2 0 3.6 1.9 3.6 4.3S23 34.6 21 34.6s-3.6-1.9-3.6-4.3S19 26 21 26zm18 0c2 0 3.6 1.9 3.6 4.3S41 34.6 39 34.6s-3.6-1.9-3.6-4.3S37 26 39 26zm-25 9c1.7 0 3 1.6 3 3.6s-1.3 3.6-3 3.6-3-1.6-3-3.6 1.3-3.6 3-3.6zm32 0c1.7 0 3 1.6 3 3.6s-1.3 3.6-3 3.6-3-1.6-3-3.6 1.3-3.6 3-3.6z'/%3E%3Cpath d='M100 104c3 0 5 2.6 5 6s-2 6-5 6-5-2.6-5-6 2-6 5-6zm-9-8c2 0 3.6 1.9 3.6 4.3s-1.6 4.3-3.6 4.3-3.6-1.9-3.6-4.3 1.6-4.3 3.6-4.3zm18 0c2 0 3.6 1.9 3.6 4.3s-1.6 4.3-3.6 4.3-3.6-1.9-3.6-4.3 1.6-4.3 3.6-4.3zm-25 9c1.7 0 3 1.6 3 3.6s-1.3 3.6-3 3.6-3-1.6-3-3.6 1.3-3.6 3-3.6zm32 0c1.7 0 3 1.6 3 3.6s-1.3 3.6-3 3.6-3-1.6-3-3.6 1.3-3.6 3-3.6z'/%3E%3C/g%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.08;
  font-weight: 800;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 239, 222, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--outline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1120px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.nav-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--text-strong);
}
.nav-brand span em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 700; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  border-radius: 999px; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, #ff7a2f 0%, var(--primary) 55%, var(--primary-pressed) 100%);
  color: #fff !important;
  padding: 16px 34px; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(238, 95, 12, 0.4), inset 0 2px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 26px rgba(238, 95, 12, 0.5), inset 0 2px 0 rgba(255,255,255,.35); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { padding: 10px 22px; font-size: 1rem; }
.btn-ghost {
  background: var(--surface); color: var(--text-strong) !important;
  padding: 16px 30px; font-size: 1.1rem;
  border: 2px solid var(--outline); box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; max-width: 1120px; margin: 0 auto; padding: 0 24px 40px;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px solid var(--outline);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 800; font-size: 0.9rem; color: var(--primary);
  box-shadow: var(--shadow-soft);
  animation: floaty 3.4s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 22px 0 18px;
  letter-spacing: -0.5px;
}
.hero h1 .stroke {
  color: var(--primary);
  text-shadow: 0 4px 0 rgba(207, 78, 3, 0.25);
}
.hero h1 .real {
  display: inline-block;
  background: linear-gradient(180deg, #ffd98a, var(--accent));
  border-radius: 16px; padding: 0 14px; transform: rotate(-2deg);
  color: var(--text-strong);
  box-shadow: 0 4px 0 rgba(138,107,74,.25);
}
.hero-sub {
  font-size: 1.2rem; line-height: 1.6; max-width: 520px;
  color: var(--text); font-weight: 600;
}
.hero-sub strong { color: var(--text-strong); }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--text-muted); font-weight: 700; }

/* teléfonos del hero */
.hero-phones {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 560px;
}
.phone {
  background: #1d150d;
  border-radius: 42px; padding: 10px;
  box-shadow: 0 24px 48px rgba(51, 35, 21, 0.35), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone img { border-radius: 34px; width: 100%; }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-a { transform: rotate(-8deg) translateX(-115px); z-index: 1; bottom: 30px; }
.phone-b { z-index: 3; width: 280px !important; bottom: 0; animation: floaty 4.5s ease-in-out infinite; }
.phone-c { transform: rotate(8deg) translateX(115px); z-index: 2; bottom: 30px; }
@media (max-width: 520px) {
  .hero-phones { min-height: 460px; }
  .hero-phones .phone { width: 190px; }
  .phone-a { transform: rotate(-8deg) translateX(-85px); }
  .phone-b { width: 215px !important; }
  .phone-c { transform: rotate(8deg) translateX(85px); }
}

.hero-emoji {
  position: absolute; font-size: 2.2rem; z-index: 4;
  filter: drop-shadow(0 4px 6px rgba(51,35,21,.25));
  animation: floaty 3s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* marquee */
.marquee {
  background: var(--primary);
  color: #fff; overflow: hidden; white-space: nowrap;
  padding: 12px 0; transform: rotate(-1.2deg) scale(1.02);
  box-shadow: 0 6px 18px rgba(238,95,12,.35);
}
.marquee-track {
  display: inline-block;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.marquee-track span { margin: 0 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECCIONES ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker {
  font-family: var(--font-display); font-weight: 800; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 10px 0 14px; }
.section-head p { font-size: 1.12rem; font-weight: 600; color: var(--text); line-height: 1.6; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 2px solid var(--outline);
  border-radius: var(--radius-xl); padding: 28px 22px;
  box-shadow: var(--shadow-soft); position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-card); }
.step .num {
  position: absolute; top: -16px; left: 20px;
  background: var(--secondary); color: #fff;
  font-family: var(--font-display); font-weight: 800;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: 0 4px 10px rgba(43,179,163,.4);
}
.step .emoji { font-size: 2.6rem; margin-bottom: 12px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: .98rem; line-height: 1.55; font-weight: 600; }

/* features alternadas */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 96px;
}
.feature:last-child { margin-bottom: 0; }
.feature.rev .feature-media { order: 2; }
@media (max-width: 860px) {
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature.rev .feature-media { order: 0; }
  .feature-copy { display: flex; flex-direction: column; align-items: center; }
}
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(290px, 76vw); transform: rotate(-3deg); transition: transform .3s ease; }
.feature.rev .feature-media .phone { transform: rotate(3deg); }
.feature-media .phone:hover { transform: rotate(0deg) scale(1.03); }
.feature-copy .chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: .85rem;
  background: var(--surface-raised); border: 2px solid var(--outline); color: var(--primary);
}
.feature-copy h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 16px 0 14px; }
.feature-copy p { font-size: 1.08rem; line-height: 1.65; font-weight: 600; }
.feature-copy ul { margin-top: 16px; list-style: none; }
.feature-copy li {
  font-weight: 700; padding: 6px 0; font-size: 1rem;
  display: flex; gap: 10px; align-items: baseline;
}
@media (max-width: 860px) { .feature-copy li { justify-content: center; } }
.feature-copy li::before { content: "🐾"; font-size: .85rem; }

/* rarezas */
.rarities { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rarity {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 999px; color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease;
}
.rarity:hover { transform: translateY(-4px) scale(1.06) rotate(-2deg); }
.rarity.common { background: var(--r-common); }
.rarity.uncommon { background: var(--r-uncommon); }
.rarity.rare { background: var(--r-rare); }
.rarity.epic { background: var(--r-epic); }
.rarity.legendary {
  background: linear-gradient(135deg, #ffd98a, var(--r-legendary), #ff8a00);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { box-shadow: 0 0 0 rgba(245,158,11,.0), var(--shadow-soft); }
  50% { box-shadow: 0 0 26px rgba(245,158,11,.65), var(--shadow-soft); }
}

/* NPCs */
.npcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .npcs { grid-template-columns: repeat(2, 1fr); } }
.npc {
  background: var(--surface); border: 2px solid var(--outline);
  border-radius: var(--radius-xl); overflow: hidden; text-align: center;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.npc:hover { transform: translateY(-8px) rotate(1.5deg); box-shadow: var(--shadow-card); }
.npc img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.npc .npc-info { padding: 16px 12px 20px; }
.npc h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text-strong); }
.npc p { font-size: .88rem; font-weight: 600; color: var(--text-muted); margin-top: 4px; }

/* próximamente: aves */
.soon-card {
  position: relative;
  background: var(--surface-raised);
  border: 3px dashed var(--secondary);
  border-radius: var(--radius-xl);
  padding: 56px 32px 48px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.soon-emojis { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.soon-emojis span {
  font-size: 2.6rem; display: inline-block;
  filter: drop-shadow(0 4px 6px rgba(51,35,21,.2));
  animation: floaty 3s ease-in-out infinite;
}
.soon-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  border-radius: 999px; padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(43,179,163,.4);
}
.soon-card h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 18px 0 14px; }
.soon-card p {
  font-size: 1.1rem; font-weight: 600; line-height: 1.65;
  max-width: 620px; margin: 0 auto;
}

/* privacidad / confianza */
.trust {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust-item { text-align: center; }
.trust-item .emoji { font-size: 2.4rem; }
.trust-item h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-strong); margin: 10px 0 8px; }
.trust-item p { font-size: .97rem; font-weight: 600; line-height: 1.55; }

/* CTA final */
.cta-final {
  position: relative;
  background:
    linear-gradient(180deg, rgba(238,95,12,.92), rgba(207,78,3,.94)),
    url("../assets/home-scene.jpg") center/cover;
  border-radius: 36px;
  padding: 72px 32px; text-align: center; color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(207, 78, 3, 0.45);
}
.cta-final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.cta-final p { font-size: 1.15rem; font-weight: 700; opacity: .95; max-width: 560px; margin: 0 auto 30px; }
.cta-final .btn-ghost { border-color: rgba(255,255,255,.6); }
.cta-final .icon-big {
  width: 108px; height: 108px; border-radius: 28px; margin: 0 auto 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  animation: floaty 3.6s ease-in-out infinite;
}

/* store badges */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1d150d; color: #fff !important; border-radius: 16px;
  padding: 12px 22px; min-width: 190px;
  box-shadow: 0 8px 20px rgba(29,21,13,.35);
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-3px) scale(1.02); }
.store-badge .logo { font-size: 1.9rem; }
.store-badge .txt { text-align: left; line-height: 1.15; }
.store-badge .txt small { display: block; font-size: .68rem; font-weight: 700; opacity: .8; letter-spacing: .5px; text-transform: uppercase; }
.store-badge .txt b { font-family: var(--font-display); font-size: 1.12rem; }
.store-badge.soon { opacity: .92; }
.store-badge.soon .txt small { color: #ffd98a; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 2px solid var(--outline);
  margin-top: 88px; padding: 40px 0 48px;
  background: var(--surface-raised);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-inner .nav-brand img { width: 36px; height: 36px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-weight: 700; font-size: .92rem; color: var(--text); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { width: 100%; margin-top: 18px; font-size: .85rem; color: var(--text-muted); font-weight: 600; }

/* ---------- LEGAL PAGES ---------- */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-wrap h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-meta { color: var(--text-muted); font-weight: 700; margin-bottom: 36px; }
.legal-body {
  background: var(--surface); border: 2px solid var(--outline);
  border-radius: var(--radius-xl); padding: 40px 36px;
  box-shadow: var(--shadow-soft);
}
.legal-body h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { line-height: 1.7; font-weight: 600; margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
