/* ===========================
   VARIABLES
=========================== */
:root {
  --bg: #050608;
  --bg-alt: #0b0d10;
  --card: #101318;
  --accent: #32f58a;
  --accent-soft: rgba(53, 245, 139, 0.2);
  --accent-strong: rgba(53, 245, 139, 0.6);
  --purple: #a78bfa;
  --purple-strong: #c084fc;
  --purple-dark: #4c1d95;
  --text-main: #ffffff;
  --text-muted: #a3a7b3;
  --border-subtle: #1b1f27;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1240px;
}

/* ===========================
   RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none !important;
}

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f1724 0, #050608 45%, #000 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

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

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

/* ===========================
   HEADER (VERSIÓN B REAL)
=========================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 8, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(53, 245, 139, 0.4);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.logo-text span:first-child {
  font-weight: 600;
}

.logo-text span:last-child {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

/* ===========================
   BOTONES
=========================== */
.btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary::after {
  display: none !important;
  content: none !important;
}

.btn-admin {
  background: #222;
  color: var(--text-muted);
}

/* ===========================
   SELECTOR DE IDIOMA
=========================== */
.lang-select {
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: #0b0d10;
  white-space: nowrap;
}

.lang-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #0b0d10;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  width: 160px;
  z-index: 200;
}

.lang-menu div {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-menu div:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
}

/* ===========================
   SECCIONES
=========================== */
.section {
  padding: 5rem 0;
}

/* ===========================
   HERO (VERSIÓN B REAL)
=========================== */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

/* ===========================
   CARACTERÍSTICAS
=========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ===========================
   MÓVILES INCLINADOS
=========================== */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.phones {
  position: relative;
  height: 420px;
}

.phone {
  width: 190px;
  height: 380px;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  position: absolute;
  box-shadow: 0 0 25px rgba(53,245,139,0.25);
}

.phone-tilt-left {
  transform: rotate(-12deg);
  left: 5%;
  top: 60px;
}

.phone-tilt-right {
  transform: rotate(12deg);
  left: 28%;
  top: 0px;
}
/* ===========================
   META PILL (Anuncios / Plataforma)
=========================== */

.hero-meta {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 260px;
}

.meta-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.1rem;
}


/* ===========================
   SLIDER HORIZONTAL NUEVO
=========================== */

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}

.slide-phone {
  width: 260px;
  height: auto;
  object-fit: contain;
  display: block;
}

.slider,
.slide,
.slide-phone {
  backface-visibility: hidden;
  transform: translateZ(0);
}


/* ===========================
   FLECHAS DEL SLIDER
=========================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  padding: 0.6rem 1.1rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  z-index: 999999;
}

/* Ocultar flechas flotantes — navegación la maneja la fila inferior */
  left: -40px;
}

#sliderNext {
  right: -40px;
}


/* ===========================
   INDICADORES DEL SLIDER
=========================== */

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.slider-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: 0.25s;
}

.slider-indicators .dot.active {
  background: #fff;
  transform: scale(1.25);
}


/* ===========================
   FILA DE NAVEGACIÓN INFERIOR
=========================== */

.slider-nav-row {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.slider-nav-row .slider-arrow.small {
  font-size: 1.8rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0,0,0,0.55);
  border-radius: 8px;
  cursor: pointer;
  border: none;
  color: #fff;
  backdrop-filter: blur(4px);
}


/* ===========================
   KO-FI
=========================== */

.community-card {
  background: radial-gradient(circle at top left, var(--purple-dark), #05070b 55%, #050608);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-kofi {
  margin-top: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  color: #020405;
  font-weight: 600;
}


/* ===========================
   FOOTER
=========================== */

footer {
  padding: 3rem 0;
  background: #040507;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}


/* ===========================
   REVEAL
=========================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   HERO VISUAL (logo central)
=========================== */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50,245,138,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-square {
  width: 260px;
  height: 260px;
  border-radius: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(50,245,138,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(50,245,138,0.12);
  overflow: hidden;
}

.hero-square-inner {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-square-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===========================
   SELECTOR DE IDIOMA — flags
=========================== */

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-flag-opt {
  margin-right: 8px;
  font-size: 1rem;
}

.lang-menu div {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* ===========================
   HERO TAG / KICKER / SECTION
=========================== */

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(50,245,138,0.08);
  border: 1px solid rgba(50,245,138,0.2);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 0.8rem;
  max-width: 34rem;
}

/* Preview section */
.phone-top {
  background: #111;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch {
  width: 50px;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
}
.phone-cover {
  background: #0d1a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
}
.phone-middle {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.song-title { font-size: 0.8rem; font-weight: 700; }
.song-sub   { font-size: 0.65rem; color: var(--text-muted); }
.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}
.progress-fill {
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 999px;
}
.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
}
.controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.ctrl-btn {
  font-size: 0.7rem;
  cursor: pointer;
}
.ctrl-btn.main {
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-bottom {
  background: #0a1a0a;
  text-align: center;
  font-size: 0.55rem;
  color: var(--accent);
  padding: 0.3rem;
}

/* Preview list */
.preview-list { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.preview-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--text-muted); }
.preview-check { color: var(--accent); font-weight: 700; }

/* Community card text */
.community-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.community-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.community-text { color: var(--text-muted); max-width: 480px; margin: 0 auto; }
.community-meta { margin-top: 1rem; color: var(--text-muted); font-size: 0.85rem; }

/* Footer */
.footer-brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand small { color: var(--text-muted); font-size: 0.75rem; }
.footer-bottom { color: var(--text-muted); font-size: 0.75rem; }
.footer-right { display: flex; flex-direction: column; gap: 0.7rem; justify-content: flex-end; }
.footer-note { color: var(--text-muted); font-size: 0.8rem; }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
  font-size: 0.85rem; transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-link-purple { background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.2); }
.btn-link-purple:hover { background: rgba(167,139,250,0.2); color: var(--purple); }

/* legal-text */
.legal-text { max-width: 720px; margin: 0 auto; color: var(--text-muted); line-height: 1.8; }
.legal-text h3 { color: var(--text-main); margin: 2rem 0 0.8rem; font-size: 1.1rem; }
.legal-text p { margin-bottom: 1rem; }
.legal-text a { color: var(--accent); }


/* ===========================
   PÁGINA DE DESCARGAS
=========================== */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

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

.download-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.download-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-version {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.download-changelog {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
  white-space: pre-line;
}

.download-btn {
  width: 100%;
  box-sizing: border-box;
}
