﻿/* Anti-flash: landing oculto hasta que JS confirme que no hay sesión activa */
html.no-flash #landing { display: none !important; }

:root {
  --ink: #0f0e0c;
  --paper: #faf9f6;
  --cream: #ede9e0;
  --accent: #e85d26;
  --accent2: #2563eb;
  --gold: #c9a84c;
  --soft: #a8a49c;
  --card-bg: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15,14,12,0.08);
  --shadow-lg: 0 12px 48px rgba(15,14,12,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.screen { display: none; }
.screen.active { display: block; }

/* ── LANDING ── */
#landing {
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(232,93,38,.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 5% 80%, rgba(201,168,76,.06) 0%, transparent 55%);
}
#landing.active { display: flex; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(15,14,12,.08);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}

.logo-gt {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
  margin-top: -2px;
  white-space: nowrap;
}
.logo-flag {
  font-size: 1.3em;
  margin-left: 5px;
  vertical-align: -1px;
  letter-spacing: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-theme-btn {
  background: none;
  border: 1.5px solid rgba(15,14,12,.14);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
  line-height: 1;
}
.nav-theme-btn:hover { background: var(--cream); border-color: rgba(15,14,12,.25); }
[data-theme="dark"] .nav-theme-btn { border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .nav-theme-btn:hover { background: #1e1c18; border-color: rgba(255,255,255,.3); }

.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  padding: 10px 20px;
  letter-spacing: 0.04em;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(15,14,12,.18); }
.btn-ghost:hover { background: var(--cream); border-color: var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); transform: translateY(-1px); box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #2a2925; transform: translateY(-1px); }
.btn-blue { background: var(--accent2); color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  align-items: center;
}
.hero.hero--has-spotlight {
  grid-template-columns: 1fr 440px;
}

.hero-text   { padding-right: 0; order: 1; }
.hero.hero--has-spotlight .hero-text { padding-right: 48px; }
.hero > .store-spotlight { order: 2; grid-column: auto; padding-top: 0; padding-bottom: 0; }

.badge {
  display: inline-block;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  color: #8a6a1e;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  color: #5a574f;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1.5px solid rgba(15,14,12,.08);
  box-shadow: 0 24px 80px rgba(15,14,12,.18), 0 0 0 1px rgba(15,14,12,.05);
  animation: heroFloat 6s ease-in-out infinite;
}

.mock-catalog {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
}

.mock-avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
}

.mock-title { width: 100px; height: 10px; background: var(--ink); border-radius: 4px; opacity: .7; }
.mock-sub { width: 60px; height: 7px; background: var(--soft); border-radius: 4px; margin-top: 4px; }

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.mock-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-img {
  height: 70px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-info { padding: 8px; flex: 1; }
.mock-name { height: 7px; background: var(--ink); border-radius: 3px; margin-bottom: 5px; opacity: .6; }
.mock-price { height: 8px; width: 50%; background: var(--accent); border-radius: 3px; opacity: .7; }

.features-strip {
  display: flex;
  gap: 0;
  border-top: 1.5px solid rgba(15,14,12,.08);
  border-bottom: 1.5px solid rgba(15,14,12,.08);
  background: var(--cream);
  overflow-x: auto;
}

.feature-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-right: 1px solid rgba(15,14,12,.08);
}
.feature-item:last-child { border-right: none; }

.feat-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  color: white;
}

.feat-text strong { display: block; font-weight: 600; font-size: .84rem; color: var(--ink); }
.feat-text span { color: var(--soft); font-size: .78rem; font-weight: 300; }

/* ── HERO ENHANCEMENTS ── */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: #fff;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(15,14,12,.14);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  animation: chipBob 5s ease-in-out 1.5s infinite;
}

@keyframes chipBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.mock-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.mock-emoji { font-size: 1.4rem; }

.mock-link-bar {
  background: var(--ink);
  border-radius: 8px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.67rem;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

.mock-copy-pill {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.63rem;
  flex-shrink: 0;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,14,12,.08);
}

.hero-av-group { display: flex; flex-shrink: 0; }

.hero-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  color: #fff;
  margin-right: -7px;
  flex-shrink: 0;
}

.hero-proof-text { font-size: 0.81rem; color: var(--soft); padding-left: 7px; }
.hero-proof-text strong { color: var(--ink); }
