/* ============================================
   Sampapaya — Charte graphique partagée
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #0F0F1E;
  --bg-2:         #0a0a14;
  --surface:      #1A1A28;
  --surface-2:    #22222F;
  --surface-hover:#2A2A38;
  --border:       #2A2A36;
  --border-soft:  #1F1F2C;
  --text:         #FFE7DA;
  --text-soft:    #C9B8A8;
  --muted:        #8A8A9A;
  --dim:          #5A5A68;
  --papaya:       #FF5722;
  --papaya-soft:  #FFB4A2;
  --papaya-mid:   #FF7F50;
  --gold:         #F5A623;
  --leaf:         #1A6B3A;
  --leaf-bright:  #4ade80;
  --red:          #ef4444;

  --gradient: linear-gradient(135deg, #FFB4A2 0%, #FF7F50 60%, #FF5722 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255,180,162,0.10), rgba(255,87,34,0.05));
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Halo de fond global */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 35% at 50% -10%, rgba(255, 87, 34, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 35% at 100% 60%, rgba(245, 166, 35, 0.07), transparent 70%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* HEADER */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 30, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
header.site-header.scrolled { border-bottom-color: var(--border-soft); }

.nav {
  max-width: 1100px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; font-size: 0.9rem; }
.nav-links a { color: var(--text-soft); transition: color 0.15s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: all 0.15s;
}
.nav-cta:hover { border-color: var(--papaya); color: var(--text) !important; transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .menu-btn svg { width: 22px; height: 22px; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 1.5rem;
    background: var(--bg); border-top: 1px solid var(--border-soft);
  }
  .nav-links.open a { padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links.open a:last-child { border: none; }
}

/* TYPO sections */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
}
h1.page-title, h2.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 38rem;
}
.section-intro {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 3rem;
  line-height: 1.65;
}
section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient);
  color: #1a0500;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 87, 34, 0.5); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--papaya); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { width: 40px; height: 40px; margin-bottom: 0.75rem; }
.footer-brand .name { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; font-size: 1.05rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.55; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom .tagline {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--dim);
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Pulse */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-live { background: rgba(26, 107, 58, 0.18); color: var(--leaf-bright); border: 1px solid rgba(74, 222, 128, 0.35); }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-bright); animation: pulse 2s infinite; }
.badge-soon { background: rgba(245, 166, 35, 0.10); color: var(--gold); border: 1px solid rgba(245, 166, 35, 0.30); }
.badge-down { background: rgba(239, 68, 68, 0.12); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.35); }

/* Page heros (sub-pages) */
.page-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { margin: 0 auto 1rem; }
.page-hero .lead { color: var(--text-soft); max-width: 36rem; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-soft); font-size: 0.88rem;
  margin-top: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
