/* PeruPlay landing — dark theme, mobile-first, self-contained (no external assets/fonts). */

:root {
  /* Palette: near-black base + confident red/rose accent (Peru energy). */
  --bg: #0b0b0f;
  --bg-2: #121218;
  --surface: #17171f;
  --surface-2: #1d1d27;
  --border: #2a2a36;
  --border-strong: #3a3a48;

  --text: #f4f4f7;
  --text-dim: #b6b6c4;
  --text-mute: #8a8a9a;

  --accent: #ff3b5c;
  --accent-2: #c81e45;
  --accent-soft: rgba(255, 59, 92, 0.14);

  --wa: #25d366;
  --wa-hover: #20bd5a;
  --wa-ink: #04220f;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-accent: 0 10px 30px rgba(255, 59, 92, .28);

  --maxw: 1120px;
  --gap: clamp(16px, 4vw, 28px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* Visible, consistent focus for keyboard users. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}
.container-narrow { max-width: 780px; }

.section { padding-block: clamp(56px, 9vw, 104px); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 52px);
}
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.grid { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease,
    box-shadow .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { flex: none; }

.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1.04rem; }
.btn-xl { --btn-h: 60px; padding: 0 34px; font-size: 1.12rem; }

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .28);
}
.btn-wa:hover { background: var(--wa-hover); box-shadow: 0 12px 28px rgba(37, 211, 102, .36); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent); }

.btn-accent {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { box-shadow: 0 14px 34px rgba(255, 59, 92, .38); }

/* Outline / secondary button — used for the optional per-architecture APK links. */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; display: block; border-radius: 9px; }
.brand-word { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-word span { color: var(--text); }

/* Header nav — kept minimal so it never competes with the WhatsApp CTA. */
.header-nav { margin-left: auto; margin-right: 4px; display: none; }
.header-link {
  color: var(--text-dim);
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color .16s ease, background-color .16s ease;
}
.header-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 12vw, 128px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 59, 92, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-glow {
  position: absolute;
  inset: auto 50% auto 50%;
  translate: -50% 0;
  top: -160px;
  width: min(760px, 120vw);
  height: 460px;
  background: radial-gradient(circle, rgba(255, 59, 92, .30), transparent 62%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 92, .32);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3.6rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff, #cfcfe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1.04rem, 2.8vw, 1.28rem);
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-cta .btn { width: 100%; }

.hero-badges {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  color: var(--text-mute);
  font-size: .92rem;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .ico { color: var(--accent); }

/* Feature + step cards ---------------------------------------------------- */
.features { grid-template-columns: 1fr; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .5);
}
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 92, .28);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; }
.card p { margin-top: 8px; color: var(--text-dim); font-size: .98rem; }

/* Steps */
.section-steps {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 59, 92, .06), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}
.steps { grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow);
}
.step-num {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-accent);
}
.step-ico { color: var(--accent); display: block; margin: 6px 0 14px; }
.step h3 { font-size: 1.16rem; }
.step p { margin-top: 8px; color: var(--text-dim); font-size: .98rem; }

.steps-cta { margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.steps-cta .btn { width: 100%; max-width: 340px; }

/* FAQ --------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease;
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text); }
.faq-chevron { flex: none; color: var(--text-mute); transition: transform .2s ease, color .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { color: var(--text-dim); font-size: .98rem; }

/* Descarga la app --------------------------------------------------------- */
.section-download {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 59, 92, .06), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}
.download-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 48px) clamp(22px, 5vw, 40px);
  text-align: center;
}
.download-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 92, .28);
  margin-bottom: 18px;
}
.download-card h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.download-card > p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}
.download-cta { margin-top: 26px; }
.download-cta .btn { width: 100%; max-width: 340px; }
.download-recommended {
  margin: 12px auto 0;
  color: var(--text-mute);
  font-size: .9rem;
  font-weight: 600;
}

/* Advanced: per-architecture APK options (native <details> expander). */
.download-advanced {
  max-width: 420px;
  margin: 22px auto 0;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.download-advanced summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: .96rem;
  color: var(--text-dim);
}
.download-advanced summary::-webkit-details-marker { display: none; }
.download-advanced summary:hover { color: var(--text); }
.download-advanced[open] summary { color: var(--text); }
.download-advanced[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.download-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 18px 18px;
}
.download-advanced-body .btn { width: 100%; }

.download-hint { margin-top: 22px; color: var(--text-mute); font-size: .96rem; }
.download-hint-link { color: var(--wa); font-weight: 700; }
.download-hint-link:hover { color: var(--wa-hover); text-decoration: underline; }
.download-note { margin-top: 8px; color: var(--text-mute); font-size: .84rem; }

/* ¿Sos revendedor? (B2B band) --------------------------------------------- */
.reseller {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 59, 92, .10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-block: 1px solid var(--border);
}
.reseller-panel {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 46px);
  box-shadow: var(--shadow);
}
/* Accent bar so the B2B panel reads as a distinct audience block. */
.reseller-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.reseller-head { text-align: center; max-width: 620px; margin: 0 auto; }
.eyebrow-reseller { margin-bottom: 16px; }
.reseller-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.reseller-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}
.reseller-list {
  list-style: none;
  margin: clamp(26px, 4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.reseller-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
}
.reseller-bullet-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 59, 92, .28);
}
.reseller-cta { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.reseller-cta .btn { width: 100%; max-width: 340px; }

/* Final CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(64px, 10vw, 112px);
  background:
    radial-gradient(90% 120% at 50% 120%, rgba(255, 59, 92, .16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -180px;
  translate: -50% 0;
  width: min(680px, 120vw);
  height: 420px;
  background: radial-gradient(circle, rgba(255, 59, 92, .28), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 640px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
.cta-band p { margin-top: 14px; color: var(--text-dim); font-size: clamp(1.02rem, 2.6vw, 1.18rem); }
.cta-band .btn { margin-top: 30px; width: 100%; max-width: 360px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  padding-block: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-word { font-weight: 800; font-size: 1.08rem; }
.footer-wa { color: var(--wa); font-weight: 700; }
.footer-wa:hover { color: var(--wa-hover); text-decoration: underline; }
.footer-legal { color: var(--text-mute); font-size: .84rem; max-width: 460px; }

/* Responsive -------------------------------------------------------------- */
@media (min-width: 560px) {
  .hero-cta .btn { width: auto; }
  .steps-cta .btn,
  .download-cta .btn,
  .reseller-cta .btn,
  .cta-band .btn { width: auto; }
}

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 34px); }
  .reseller-list { grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
  .header-nav { display: flex; align-items: center; gap: 4px; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-legal { max-width: 420px; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
