/* ==========================================================================
   LeyThra — hoja de estilos compartida entre todas las páginas del sitio.
   Paleta sacada directo de los píxeles del logo real (assets/icons/logo*.png):
   navy oscuro, morado y dorado sobre blanco cálido.
   ========================================================================== */
:root {
  --navy: #16143A;
  --navy-soft: #2A2760;
  --purple: #6C5CA6;
  --purple-light: #A79BD9;
  --gold: #E3B679;
  --gold-soft: #F3DDBB;
  --bg: #FAF9FC;
  --card: #FFFFFF;
  --muted: #6B6884;
  --border: #E7E4F2;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* -------- Nav -------- */
header.site-header {
  background: rgba(250, 249, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
nav.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 20px; font-size: 13.5px; font-weight: 600; align-items: center; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { padding: 8px 14px; font-size: 12.5px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(22,20,58,0.08);
  }
}

/* -------- Sim banner (borrador) -------- */
.sim-banner {
  background: var(--gold-soft);
  color: #7A4E1A;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
}

/* -------- Hero -------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(167,155,217,0.26) 0%, rgba(227,182,121,0.12) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-lottie { width: 200px; height: 200px; margin: 0 auto -10px; overflow: hidden; }
.hero-lottie svg, .page-hero .lottie-page svg, .mini-card .mini-icon svg,
.pending-box .lottie-pending svg, .novelty-icon svg, .step-icon svg { width: 100% !important; height: 100% !important; }
.hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.tagline {
  font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple); margin-bottom: 20px;
}
.hero p.desc { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 30px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .hero-lottie { width: 140px; height: 140px; }
  .hero p.desc { font-size: 15px; }
}

/* -------- Store badges -------- */
.store-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: white;
  padding: 10px 18px; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(22,20,58,0.18);
  transition: transform .15s, box-shadow .15s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(22,20,58,0.24); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-badge .txt small { font-size: 10.5px; opacity: .75; font-weight: 400; }
.store-badge .txt strong { font-size: 15.5px; font-weight: 700; }
.store-badge.light { background: white; color: var(--navy); }

/* -------- Sections / cards -------- */
main { min-height: 60vh; }
.section { max-width: 1120px; margin: 0 auto; padding: 60px 24px; }
.section.narrow { max-width: 820px; }
.section h2 { text-align: center; font-size: 30px; font-weight: 900; margin-bottom: 8px; }
.section > p.lead { text-align: center; color: var(--muted); max-width: 500px; margin: 0 auto 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 20px; text-align: left;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(22,20,58,0.08); }
.feature-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-soft));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; overflow: hidden;
}
.feature-card .icon-wrap svg, .feature-card .icon-wrap .lottie-icon { width: 30px; height: 30px; }
.feature-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); }

.ad-slot { max-width: 1120px; margin: 0 auto 20px; padding: 0 24px; }
.ad-box {
  border: 1px dashed var(--border); border-radius: 14px; padding: 18px;
  text-align: center; color: var(--muted); font-size: 12px; background: #F1EFF8;
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 34px; margin-bottom: 24px;
}
.card h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin-bottom: 10px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFEAFB; color: var(--navy-soft);
  font-size: 11.5px; font-weight: 700; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 16px;
}
.pill.pending { background: var(--gold-soft); color: #7A4E1A; }

/* -------- Pending placeholder (privacidad/términos) -------- */
.pending-box {
  text-align: center;
  padding: 50px 24px;
}
.pending-box .lottie-pending { width: 160px; height: 160px; margin: 0 auto 10px; overflow: hidden; }
.pending-box h1 { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.pending-box p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }

/* -------- Formulario de soporte -------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field .hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--navy);
  background: var(--bg); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple);
}
.field textarea { resize: vertical; min-height: 110px; }
.file-drop {
  border: 1.5px dashed var(--border); border-radius: 12px;
  padding: 18px; text-align: center; font-size: 13px; color: var(--muted);
  background: var(--bg); cursor: pointer;
}
.file-drop.has-file { border-color: var(--purple); color: var(--navy); font-weight: 600; }
.submit-btn {
  background: var(--purple); color: white; border: none;
  padding: 13px 28px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: opacity .15s;
}
.submit-btn:hover { opacity: .92; }
.form-note {
  font-size: 12.5px; color: var(--muted); margin-top: 14px;
  background: #F1EFF8; border-radius: 10px; padding: 12px 14px;
}

/* -------- FAQ -------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--muted); }

/* -------- CTA final -------- */
.cta-final {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: white; border-radius: 28px; max-width: 1000px;
  margin: 20px auto 70px; padding: 56px 30px; text-align: center;
}
.cta-final img.mark { width: 56px; margin: 0 auto 16px; }
.cta-final h2 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.cta-final p { color: #C9C6E8; margin-bottom: 24px; }

/* -------- Footer -------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px; text-align: center; color: var(--muted); font-size: 13px;
}
.foot-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.foot-logo img { width: 20px; height: 20px; }
.footer-links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* -------- Utilidades -------- */
.center { text-align: center; }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--navy); color: var(--navy);
  padding: 11px 22px; border-radius: 12px; font-weight: 700; font-size: 14px;
}
.btn-solid {
  display: inline-block; background: var(--purple); color: white !important;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px;
}

/* -------- Página interior: encabezado simple (Cómo funciona / Creador / Premium / Novedades / Prensa) -------- */
.page-hero {
  max-width: 820px; margin: 0 auto; padding: 56px 24px 20px; text-align: center;
}
.page-hero .lottie-page { width: 130px; height: 130px; margin: 0 auto 6px; overflow: hidden; }
.page-hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-hero p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto; }
@media (max-width: 640px) { .page-hero h1 { font-size: 27px; } }

/* -------- Pasos numerados (Cómo funciona) -------- */
.steps-list { max-width: 700px; margin: 0 auto; padding: 14px 24px 10px; display: flex; flex-direction: column; }
.step-card {
  display: flex; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 26px; position: relative;
  box-shadow: 0 4px 14px rgba(22,20,58,0.04);
}
.step-card + .step-card { margin-top: 22px; }
.step-card::before {
  content: ''; position: absolute; left: 49px; top: -22px; width: 2px; height: 22px;
  background: var(--border);
}
.step-card:first-child::before { display: none; }
.step-icon-wrap {
  position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-soft));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 6px 14px rgba(108,92,166,0.18);
}
.step-icon-wrap svg { width: 28px; height: 28px; }
.step-icon-wrap .lottie-icon { width: 34px; height: 34px; }
.step-badge {
  position: absolute; bottom: -6px; right: -6px; width: 23px; height: 23px;
  border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--navy-soft));
  color: white; font-weight: 900; font-size: 11.5px;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--card); box-shadow: 0 2px 6px rgba(22,20,58,0.28);
}
.step-body { flex: 1; }
.step-body h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.step-body p { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .step-card { gap: 16px; padding: 18px; }
  .step-icon-wrap { width: 46px; height: 46px; border-radius: 13px; }
  .step-icon-wrap svg { width: 22px; height: 22px; }
  .step-icon-wrap .lottie-icon { width: 26px; height: 26px; }
  .step-card::before { left: 41px; }
}

/* -------- Gamificación: mini tarjetas -------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; text-align: center;
}
.mini-card .mini-icon { width: 40px; height: 40px; margin: 0 auto 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mini-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.mini-card p { font-size: 12.5px; color: var(--muted); }

/* -------- Comparación de niveles Premium -------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.tier-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.tier-card.featured { border-color: var(--purple); box-shadow: 0 16px 34px rgba(108,92,166,0.16); }
.tier-badge {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase;
}
.tier-badge.ads { background: #EFEAFB; color: var(--navy-soft); }
.tier-badge.pro { background: #FDECC8; color: #7A4E1A; }
.tier-badge.ultra { background: #DCF3F8; color: #0E6E80; }
.tier-card h3 { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.tier-card .tier-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.tier-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier-perks li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--navy); }
.tier-perks li .chk {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple); color: white; font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.tier-note {
  margin-top: 16px; font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 12px;
}

/* -------- Lista de novedades -------- */
.novelty-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.novelty-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px;
}
.novelty-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-light), var(--gold-soft));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.novelty-icon svg { width: 22px; height: 22px; }
.novelty-item h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.novelty-item p { font-size: 13.5px; color: var(--muted); }
.version-chip {
  display: inline-block; margin-bottom: 18px; font-size: 12px; font-weight: 700;
  background: #EFEAFB; color: var(--navy-soft); padding: 5px 14px; border-radius: 999px;
}

/* -------- Kit de prensa -------- */
.press-assets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .press-assets { grid-template-columns: 1fr; } }
.press-asset {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; text-align: center;
}
.press-asset img { width: 72px; height: 72px; margin: 0 auto 12px; object-fit: contain; }
.press-asset h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.press-asset .btn-outline { padding: 8px 16px; font-size: 12.5px; }
.boilerplate {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; font-size: 14.5px; color: var(--navy); line-height: 1.8;
}

/* -------- Capturas de pantalla -------- */
.shots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .shots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shots-grid { grid-template-columns: repeat(2, 1fr); } }
.shots-grid.compact { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .shots-grid.compact { grid-template-columns: repeat(2, 1fr); } }

.shot {
  border-radius: 18px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 14px 30px rgba(22,20,58,0.10);
  transition: transform .15s, box-shadow .15s;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(22,20,58,0.16); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding: 10px 12px; text-align: center; border-top: 1px solid var(--border);
}

.shot-single {
  max-width: 260px; margin: 0 auto;
  border-radius: 22px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 20px 44px rgba(22,20,58,0.16);
}
.shot-single img { display: block; width: 100%; height: auto; }

.shot-float {
  max-width: 220px; float: right; margin: 4px 0 16px 24px;
  border-radius: 20px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 18px 38px rgba(22,20,58,0.14);
}
.shot-float img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .shot-float { float: none; margin: 0 auto 20px; } }

/* -------- Documentos legales (Privacidad / Términos) -------- */
.legal-wrap { max-width: 900px; margin: 0 auto; padding: 46px 24px 10px; }
.legal-head { text-align: center; margin-bottom: 30px; }
.legal-head h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.legal-head .legal-meta { font-size: 13px; color: var(--muted); }
.legal-lang-note {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; font-size: 13px; color: var(--muted); margin: 22px 0 30px;
}
.legal-toc {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 26px; margin-bottom: 34px;
}
.legal-toc h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li { font-size: 13.5px; margin-bottom: 7px; break-inside: avoid; }
.legal-toc a { color: var(--navy); font-weight: 600; }
.legal-toc a:hover { color: var(--purple); }
.legal-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 640px) { .legal-body { padding: 26px 20px; } }
.legal-body h2 {
  font-size: 19px; font-weight: 800; margin: 34px 0 12px; padding-top: 14px;
  border-top: 1px solid var(--border); scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { font-size: 15.5px; font-weight: 800; margin: 18px 0 6px; }
.legal-body p { color: var(--navy); font-size: 14.5px; margin-bottom: 12px; }
.legal-body p.muted { color: var(--muted); font-size: 13px; }
.legal-body ul, .legal-body ol { margin: 0 0 12px 22px; }
.legal-body li { font-size: 14.5px; margin-bottom: 6px; }
.legal-body a { text-decoration: underline; }
.legal-callout {
  background: #FBF3E7; border: 1px solid var(--gold-soft); border-radius: var(--radius-md);
  padding: 16px 18px; font-size: 13.5px; color: #7A4E1A; margin: 16px 0;
}
.legal-callout strong { color: #5C3A0F; }
.back-to-top {
  display: inline-block; margin-top: 30px; font-size: 13px; font-weight: 700;
}
