/* Ryvlo landing page — misma identidad visual que la app: gradiente morado-vino oscuro
   con acentos rosa/dorado/turquesa. */

:root {
  --bg-1: #2D1B4E;
  --bg-2: #4A1942;
  --bg-3: #1A1033;
  --pink: #EC4899;
  --pink-bright: #FF3D9E;
  --gold: #F59E0B;
  --gold-bright: #FFC107;
  --turquoise: #06B6D4;
  --text: #F5F3FA;
  --text-muted: rgba(245, 243, 250, 0.72);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-3);
  overflow-x: hidden;
}

a { color: inherit; }

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

/* ---------- Top language strip ---------- */
.lang-strip {
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.lang-strip::-webkit-scrollbar { display: none; }
.lang-strip-inner {
  display: inline-flex;
  gap: 4px;
  padding: 6px 12px;
}
.lang-flag-btn {
  background: none;
  border: none;
  font-size: 18px;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.lang-flag-btn:hover { opacity: 0.85; }
.lang-flag-btn.active { opacity: 1; background: rgba(255,255,255,0.12); }

/* ---------- Nav ---------- */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(26,16,51,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}
/* El logo es un wordmark ancho (ícono + texto "Ryvlo"), no un cuadrado — se fija solo la
   altura y se deja el ancho automático para no aplastarlo ni recortarlo. */
.brand img {
  height: 34px;
  width: auto;
  max-width: 140px;
  border-radius: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-bright), var(--gold-bright));
  color: #1A1033 !important;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
  nav.main-nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(26,16,51,0.97);
    padding: 10px 20px 20px;
    gap: 2px;
  }
  nav.main-nav.menu-open .nav-links a { padding: 12px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(236,72,153,0.30) 0%, rgba(245,158,11,0.14) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo {
  width: 108px; height: 108px;
  border-radius: 26px;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(236,72,153,0.35);
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #fff, var(--pink-bright) 50%, var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-tagline {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-muted);
  position: relative;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--pink-bright), var(--gold-bright));
  color: #1A1033;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(255,61,158,0.35);
}
.btn-play svg { width: 22px; height: 22px; }

.btn-outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
}
.btn-outline-cta svg { width: 20px; height: 20px; }

/* Mockup del flyer en la hero, hecho con CSS (sin necesitar screenshots reales) */
.hero-mock {
  margin: 56px auto 0;
  width: 240px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero-mock-bg {
  aspect-ratio: 3/4;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.75) 20%, transparent 20%, transparent 78%, rgba(0,0,0,0.8) 78%, rgba(0,0,0,0.8) 100%),
    radial-gradient(circle at 30% 30%, #ff9ecf 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, #ffd36e 0%, transparent 40%),
    linear-gradient(135deg, #5b2a86, #26123f 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
}
.hero-mock-title { font-weight: 800; font-size: 17px; line-height: 1.2; }
.hero-mock-details { font-size: 11px; opacity: 0.9; line-height: 1.5; }

/* ---------- Section shells ---------- */
section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ---------- Screenshots ---------- */
.screens-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.screen-frame {
  flex: 0 0 auto;
  width: 190px;
  scroll-snap-align: start;
  background: #0d0716;
  border: 6px solid #0d0716;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1.5px rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
.screen-frame::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  z-index: 2;
}
.screen-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  background: linear-gradient(180deg, #2D1B4E, #4A1942 55%, #1A1033);
}
.screen-frame .screen-fallback {
  width: 100%;
  aspect-ratio: 9/19.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: rgba(245,243,250,0.5);
  background: linear-gradient(180deg, #2D1B4E, #4A1942 55%, #1A1033);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 16.5px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: #1A1033;
  background: linear-gradient(135deg, var(--pink-bright), var(--gold-bright));
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- Download ---------- */
.download-panel {
  background: linear-gradient(135deg, rgba(236,72,153,0.14), rgba(6,182,212,0.10), rgba(245,158,11,0.14));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 56px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.download-text { flex: 1; min-width: 260px; }
.download-text h2 { font-size: 30px; margin: 0 0 12px; font-weight: 900; }
.download-text p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 22px; line-height: 1.6; }
.download-buttons { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.download-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.qr-box {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  width: 168px;
  text-align: center;
  flex-shrink: 0;
}
.qr-box img { width: 136px; height: 136px; object-fit: contain; display: block; margin: 0 auto; }
.qr-box p { color: #1A1033; font-size: 11.5px; font-weight: 700; margin: 8px 0 0; }
.qr-fallback {
  width: 136px; height: 136px;
  display: flex; align-items: center; justify-content: center;
  color: #1A1033; font-size: 11px; text-align: center;
  border: 1.5px dashed #ccc; border-radius: 10px; margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--pink); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  text-align: center;
}
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(245,243,250,0.4); font-size: 12.5px; }

@media (max-width: 640px) {
  .download-panel { padding: 36px 22px; }
  section { padding: 60px 0; }
}
