/* Tejo Virtual — marketing site styles
   Plain CSS, no build step. Colombian tejo palette:
   clay/terracotta (the pit), mustard gold (the disc/mecha spark), deep green (the field). */

:root {
  --color-bg: #fbf6ef;
  --color-bg-alt: #f2e9db;
  --color-surface: #ffffff;
  --color-text: #2c231b;
  --color-text-muted: #6b5d4f;
  --color-primary: #c1440e;      /* terracotta / clay */
  --color-primary-dark: #9c360a;
  --color-accent: #e0a726;       /* mustard gold */
  --color-accent-dark: #b8860f;
  --color-green: #2f6b3a;        /* field green */
  --color-navy: #1c2b2e;         /* night sky, footer */
  --color-border: #e6dac8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(44, 35, 27, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 35, 27, 0.14);
  --max-width: 1140px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1b1712;
    --color-bg-alt: #221c15;
    --color-surface: #262019;
    --color-text: #f3ece1;
    --color-text-muted: #b8ab99;
    --color-border: #3a3025;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(27, 23, 18, 0.9);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
}

.brand:hover {
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 18px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }
}

/* ===============================================================
   Landing page (index.html only) — old-site-inspired redesign.
   Scoped under .landing-main / specific section classes so the
   shared header, footer and the /privacy page are unaffected.
   =============================================================== */

.landing-main {
  --font-display: "Baloo 2", var(--font-body);
  --y-yellow: #ffcc29;
  --y-yellow-deep: #f2b60a;
  --y-olive: #5c6b1f;
  --y-olive-deep: #445014;
  --y-dark-olive: #333c12;
  --y-near-black: #14140f;
  --y-ink: #1c1a10;
  --y-teal: #2fd1c5;
  --y-fire: #ff6a1a;
  overflow-x: hidden;
}

.landing-main section {
  padding: 64px 0;
}

.landing-main h1,
.landing-main h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background-color: var(--y-yellow);
  background-image: repeating-conic-gradient(
    from 0deg at 30% 38%,
    rgba(255, 255, 255, 0.32) 0deg 3deg,
    transparent 3deg 15deg
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 38%, rgba(255, 204, 41, 0) 0%, var(--y-yellow) 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.14;
  margin: 0 0 18px;
  color: var(--y-ink);
}

.hero-copy .lead {
  font-size: 1.08rem;
  color: rgba(28, 26, 16, 0.78);
  margin: 0 0 28px;
  max-width: 48ch;
}

@media (max-width: 860px) {
  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Store badges (hero + final CTA) ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badges--center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  opacity: 0.85;
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

/* ---------- Game sections (juego / minitejo / retos) ---------- */

.game-section {
  color: #fff;
}

.game-section--olive {
  background: black;
}

.game-section--dark-olive {
  background: linear-gradient(165deg, var(--y-dark-olive), var(--y-ink));
}

.game-section--dark {
  background: var(--y-near-black);
}

.game-section__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.game-section__grid--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 860px) {
  .game-section__grid,
  .game-section__grid--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .game-section__grid--reverse .phone-cluster {
    order: -1;
  }
}

.game-section .tag {
  display: inline-block;
  background: rgba(255, 204, 41, 0.16);
  color: var(--y-yellow);
  border: 1px solid rgba(255, 204, 41, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.game-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin: 0 0 14px;
  color: #fff;
}

.game-section p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  max-width: 46ch;
}

@media (max-width: 860px) {
  .game-section p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Phone mockups (real screenshots) ---------- */

.phone-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1242 / 2688;
  border-radius: 32px;
  border: 7px solid #0d0d0d;
  background: #0d0d0d;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 16px;
  background: #0d0d0d;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.phone-frame--center {
  max-width: 230px;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone-frame--side {
  max-width: 175px;
  align-self: center;
}

.phone-frame--left {
  transform: rotate(-9deg) translate(18px, 14px);
  margin-right: -30px;
}

.phone-frame--right {
  transform: rotate(9deg) translate(-18px, 14px);
  margin-left: -30px;
}

.phone-cluster--single .phone-frame--center {
  max-width: 220px;
}

@media (max-width: 640px) {
  .phone-frame--left,
  .phone-frame--right {
    max-width: 120px;
    transform: rotate(0) translateY(0);
    margin: 0 -14px;
  }

  .phone-frame--center {
    max-width: 190px;
  }
}

/* ---------- Formas de juego (features) ---------- */

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.section-head--light p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 204, 41, 0.2);
  color: var(--y-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-display);
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  max-width: none;
}

/* ---------- Capturas gallery ---------- */

.capturas-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 20px 12px;
  margin: 0 auto;
  max-width: var(--max-width);
  scrollbar-width: thin;
}

.capturas-item {
  flex: 0 0 auto;
  width: 150px;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.phone-frame--gallery {
  max-width: 150px;
  border-width: 5px;
  border-radius: 24px;
}

.phone-frame--gallery::before {
  height: 11px;
}

.capturas-item figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Final download CTA ---------- */

.final-cta {
  background: linear-gradient(180deg, var(--y-near-black), var(--y-ink));
  color: #fff;
  text-align: center;
  border-top: 4px solid var(--y-yellow);
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 12px;
  color: #fff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
}

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

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Legal / privacy page ---------- */

.legal-main {
  padding: 56px 0 80px;
}

.legal-main .container {
  max-width: 760px;
}

.legal-main h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 36px;
}

.legal-main h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  font-weight: 800;
}

.legal-main h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.legal-main ul {
  padding-left: 22px;
}

.legal-main a {
  font-weight: 600;
}

.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.legal-toc h2 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .legal-toc ol {
    columns: 1;
  }
}

.callout {
  background: rgba(224, 167, 38, 0.14);
  border: 1px solid rgba(224, 167, 38, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-text);
}
