:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #1a1d20;
  --surface-alt: #24282c;
  --border: #34393f;
  --text: #f5f3ef;
  --muted: #aaa39a;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

section { padding: 88px 24px; }
section > * { max-width: var(--maxw); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.5);
  outline-offset: 3px;
}
.btn-primary { background: var(--accent); color: #111315; }
.btn-primary:hover { background: #ffae1f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px 24px;
  background: rgba(17, 19, 21, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33ch; margin-bottom: 30px; }
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -12px 0 26px;
}
.hero-points li {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }

/* Mock del panel */
.hero-mock { position: relative; }
.mock-window {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.mock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}
.mock-card:last-child { margin-bottom: 0; }
.mock-card-top { display: flex; align-items: center; gap: 12px; }
.mock-card strong { display: block; font-size: 0.95rem; }
.mock-card small { color: var(--muted); font-size: 0.8rem; }
.mock-thumb {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 1.2rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-amber { background: var(--accent-soft); color: var(--accent); }
.tag-blue { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.tag-green { background: rgba(74, 222, 128, 0.16); color: #86efac; }
.mock-glow {
  position: absolute;
  inset: -10% -5% -10% 20%;
  background: radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.22), transparent 60%);
  filter: blur(20px);
  z-index: 1;
}

/* ---------- Disponibilidad ---------- */
.availability {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  border-block: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}
.availability strong { color: var(--text); }
.availability-tags { display: flex; gap: 8px; flex-shrink: 0; }
.availability-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Dolor ---------- */
.pain { background: var(--surface); border-block: 1px solid var(--border); }
.pain h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; max-width: 22ch; margin-inline: auto; margin-bottom: 44px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pain-x {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(224, 98, 94, 0.15);
  color: #e0625e;
  font-weight: 700;
  margin-bottom: 16px;
}
.pain-item p { color: var(--muted); }

/* ---------- Galería de piezas reales ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}
.shot {
  position: relative;
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot-tall { grid-row: span 3; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(to top, rgba(10, 11, 12, 0.92), rgba(10, 11, 12, 0.5) 55%, transparent);
}
.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 26px;
}

/* ---------- Secciones con cabecera ---------- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }

/* ---------- Funciones ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Capturas reales de la aplicación ---------- */
.product-showcase {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.product-showcase .section-head p { color: var(--muted); margin-top: 12px; }
.product-shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.product-shot img { width: 100%; height: auto; }
.product-shot figcaption { padding: 16px 18px 18px; color: var(--muted); font-size: .9rem; }

/* ---------- Cómo funciona ---------- */
.flow { background: var(--surface); border-block: 1px solid var(--border); }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.flow-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #111315;
  font-weight: 900;
  margin-bottom: 16px;
}
.flow-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow-steps p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Prueba social ---------- */
.proof { text-align: center; }
.proof-quote {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 500;
  max-width: 24ch;
  margin-inline: auto;
  color: var(--text);
}
.proof-quote { max-width: 26ch; }

/* ---------- Precio ---------- */
.price-card {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 28px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.price-figure {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.price-amount { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.price-period { color: var(--muted); font-weight: 500; }
.price-sub { color: var(--muted); margin-bottom: 26px; }
.price-list {
  list-style: none;
  text-align: left;
  margin: 0 auto 28px;
  max-width: 40ch;
  display: grid;
  gap: 12px;
}
.price-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.95rem;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.price-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; max-width: 44ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-block: 1px solid var(--border); }
.faq-list { max-width: 720px; display: grid; gap: 12px; }
.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.18s ease;
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-card {
  background: linear-gradient(135deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -40% 30% auto;
  height: 80%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 65%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin-bottom: 14px; }
.cta-card p { color: var(--muted); max-width: 46ch; margin: 0 auto 28px; }
.cta-note { font-size: 0.85rem; margin-top: 18px; }
.cta-note a { color: var(--accent); font-weight: 700; }
.cta-note a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 40px 24px 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; }
.footer-brand small { color: var(--muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pain-grid, .feature-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .availability { align-items: flex-start; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  section { padding: 64px 20px; }
  .nav { gap: 10px; padding-inline: 16px; }
  .brand { gap: 8px; font-size: 1.08rem; }
  .brand img { width: 34px; height: 34px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-primary { padding: 10px 16px; }
  .hero { padding-top: 50px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .lead { font-size: 1.05rem; max-width: none; }
  .hero-points { display: grid; gap: 7px; }
  .hero-points li { width: fit-content; }
  .hero-cta { display: grid; }
  .hero-cta .btn { width: 100%; }
  .mock-card-top { min-width: 0; }
  .mock-card-top > div { min-width: 0; }
  .mock-card strong, .mock-card small { overflow-wrap: anywhere; }
  .availability { padding: 20px; display: grid; gap: 14px; }
  .availability-tags { flex-wrap: wrap; }
  .flow-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 145px; gap: 10px; }
  .shot { grid-row: span 1; }
  .shot-tall { grid-row: span 2; }
  .shot:nth-child(n+4) { display: none; }
  .shot figcaption { font-size: .8rem; padding-inline: 12px; }
  .product-shot-grid {
    max-width: none;
    margin-inline: -20px;
    padding: 0 20px 12px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .product-shot { flex: 0 0 min(82vw, 330px); scroll-snap-align: center; }
  .price-card { padding: 36px 22px; }
  .price-figure { flex-wrap: wrap; gap: 2px 8px; }
  .price-period { width: 100%; }
  .nav-actions .btn-ghost { display: none; }
  .footer-links { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .footer-links a { padding-block: 8px; }
}

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