:root {
  --bg: #14161c;
  --panel: #1c1f27;
  --panel-2: #242833;
  --line: #343944;
  --text: #e6e8ee;
  --text-dim: #a5abb8;
  --muted: #7b8290;
  --accent: #6d83a8;
  --accent-soft: #2a3344;
  --wa: #25d366;
  --tg: #2aabee;
  --font: "Source Sans 3", system-ui, sans-serif;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, a {
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

/* Fondo bandera */
.flag-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #12151c;
}

.flag-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

  .flag-dim {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.38);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

/* Banner dox simple */
.dox-banner {
  display: block;
  margin: 0 auto 24px;
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color 0.15s ease;
}

.dox-banner:hover { border-color: #4a5363; }

.dox-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.dox-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.dox-title {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

.dox-sub {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 38ch;
  margin: 0 auto;
}

.dox-note {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.dox-cta {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 32px;
}

.brand {
  font-size: clamp(1.2rem, 4.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  word-break: break-word;
}

.hero-title {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-title span { color: var(--text); }

.hero-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.creator {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.creator strong {
  color: var(--text);
  font-weight: 600;
}

.creator:hover { color: var(--text); }

/* Recarga */
.recarga {
  max-width: 400px;
  margin: 0 auto;
}

.recarga-panel {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.recarga-panel:hover { border-color: #4a5363; }

.recarga-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.recarga-badge,
.recarga-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.recarga-badge {
  background: var(--accent-soft);
  color: #c5d0e2;
}

.recarga-chip {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.recarga-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-align: left;
}

.recarga-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.recarga-deal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.recarga-tile {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.recarga-tile--accent {
  background: var(--accent-soft);
}

.recarga-meta {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.recarga-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.recarga-sep { color: var(--muted); }

.recarga-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--wa);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-wa svg { width: 18px; height: 18px; }

.btn-wa:hover { filter: brightness(1.05); }

.btn-wa--alt {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-wa--alt:hover {
  filter: none;
  border-color: #4a5363;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.apps-col {
  display: grid;
  gap: 12px;
}

.section-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
}

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-card:hover { border-color: #4a5363; }

.app-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

.app-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.app-action {
  font-size: 0.75rem;
  color: var(--muted);
}

.iphone-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: left;
}

.iphone-promo:hover { border-color: #4a5363; }

.iphone-promo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: var(--text-dim);
}

.iphone-promo-icon svg { width: 18px; height: 18px; }

.iphone-promo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.iphone-promo-text strong { font-size: 0.9rem; }
.iphone-promo-text small { font-size: 0.75rem; color: var(--muted); }
.iphone-promo-arrow { color: var(--muted); font-size: 1.2rem; }

/* Phone */
.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.phone-pitch {
  font-weight: 700;
  font-size: 1.05rem;
}

.phone-pitch-sub {
  margin-top: -4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.phone-frame {
  position: relative;
  width: min(220px, 56vw);
  aspect-ratio: 9 / 19;
  padding: 8px;
  border-radius: 22px;
  background: #0e1015;
  border: 1px solid #2c313c;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 8px;
  border-radius: 999px;
  background: #0a0c10;
  z-index: 2;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #0a0c10;
}

.cta { width: 100%; max-width: 300px; }

.btn-apk {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #2d3340;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-apk:hover { background: #363c4b; }

.btn-apk svg { width: 20px; height: 20px; }

.btn-apk span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-apk strong { font-size: 0.9rem; }
.btn-apk small { font-size: 0.72rem; color: var(--muted); }

.community-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.community-link:hover { border-color: #4a5363; }

.community-link svg { width: 20px; height: 20px; }

.community-link span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.community-link strong { font-size: 0.86rem; font-weight: 600; }
.community-link small { font-size: 0.72rem; color: var(--muted); }

.community-link--tg svg { color: var(--tg); }
.community-link--wa svg { color: var(--wa); }
.community-link--org svg { color: var(--accent); }

.phone-cap {
  font-size: 0.72rem;
  color: var(--muted);
}

.sign {
  margin-top: 40px;
  text-align: center;
}

.sign a {
  font-size: 0.8rem;
  color: var(--muted);
}

.sign a strong {
  color: var(--text-dim);
  font-weight: 600;
}

.sign a:hover { color: var(--text-dim); }

/* Modal */
.ios-apps-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.ios-apps-layer[hidden] { display: none !important; }

.ios-apps-layer.open {
  opacity: 1;
  pointer-events: auto;
}

.ios-apps-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.ios-apps-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.ios-apps-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ios-apps-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.ios-apps-head p {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ios-apps-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 1.2rem;
}

.ios-apps-list { display: grid; gap: 8px; }

.ios-app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.ios-app-btn:hover { border-color: #4a5363; }

.ios-app-btn img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--panel);
}

.ios-app-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ios-app-btn-text strong { font-size: 0.9rem; }
.ios-app-btn-text small { font-size: 0.72rem; color: var(--muted); }

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .phone { order: -1; }
}

@media (max-width: 520px) {
  .shell { padding: 20px 14px 40px; }
  .apps { max-width: 360px; margin: 0 auto; width: 100%; }
  .iphone-promo { max-width: 360px; margin: 0 auto; }
  .section-label { text-align: center; }
  .btn-apk,
  .community-link { max-width: 360px; }
}
