/* OTP Stock — estilos. Móvil primero. Verde medianoche + lima. */
:root {
  --bg: #0b1512;
  --bg-soft: #142019;
  --card: #142019;
  --card-border: #243528;
  --text: #eef5ef;
  --muted: #9fb3a8;
  --faint: #7d9384;
  --lime: #c9ff4c;
  --lime-dark: #0b1512;
  --line: #3d5247;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.container { max-width: 1024px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 18, 0.96);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: 0.5px; }
/* Lockup oficial OTP Stock: escudo hexagonal + wordmark en texto (OTP lima, STOCK blanco, punto lima). El escudo es también el ícono del programa/app. */
.logo-shield { width: 40px; height: 40px; border-radius: 8px; display: block; }
.logo-shield--small { width: 24px; height: 24px; border-radius: 6px; vertical-align: -5px; margin-right: 2px; }
.logo-word { display: inline-flex; align-items: center; gap: 6px; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.logo-otp { color: var(--lime); }
.logo-stock { color: #fff; }
.main-nav { display: flex; gap: 14px; margin-left: auto; overflow-x: auto; }
.main-nav a { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.main-nav a:hover { color: var(--text); }
.nav-farm { color: var(--lime) !important; font-weight: 700; }
.cart-btn {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.cart-count {
  background: var(--lime); color: var(--lime-dark);
  border-radius: 20px; padding: 1px 7px; font-weight: 700; margin-left: 4px;
}

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-kicker { color: var(--lime); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
.hero-sub { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 0 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: var(--faint); font-size: 12px; }
.hero-trust span::before { content: "✓ "; color: var(--lime); }
.demo-note {
  margin-top: 18px; padding: 10px 12px; font-size: 12px; color: #ffd479;
  background: #2a230f; border: 1px solid #5c4d1c; border-radius: 8px;
}

/* Botones */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--lime); color: var(--lime-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-whatsapp { background: #25d366; color: #062b16; }
.btn-block { display: block; width: 100%; margin-top: 10px; }

/* Secciones */
.section { padding: 32px 0; }
.section h2 { font-size: 24px; margin: 0 0 6px; }
.section-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; max-width: 640px; }
.section-farm { background: #0e1a14; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.farm-badge {
  display: inline-block; background: var(--lime); color: var(--lime-dark);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: 20px; padding: 4px 10px; margin-bottom: 10px;
}
.subhead { font-size: 16px; margin: 28px 0 12px; }
.loading { color: var(--muted); font-size: 13px; }

/* Productos */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.product-card.farm { border-color: var(--lime); }
.farm-photo { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center 20%; border-radius: 10px; background: var(--bg-soft); }
.bundle-note { color: var(--lime); font-weight: 700; font-size: 13px; }
.product-card h3 { margin: 0; font-size: 16px; }
.product-card .price { font-size: 22px; font-weight: 800; }
.product-card .price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; }
.product-card .stock { font-size: 12px; color: var(--faint); }
.product-card .badge {
  align-self: flex-start; background: var(--lime); color: var(--lime-dark);
  font-size: 11px; font-weight: 800; border-radius: 20px; padding: 2px 9px;
}
.product-card .specs { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.product-card .specs li::before { content: "• "; color: var(--lime); }
.product-card .actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-small { padding: 8px 12px; font-size: 13px; }
.price-note { font-size: 13px; color: var(--muted); }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.steps b { font-size: 15px; }
.steps span { color: var(--muted); font-size: 13px; }
.fine-print { color: var(--faint); font-size: 12px; line-height: 1.6; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px 16px;
}
.faq-item summary { font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: " +"; color: var(--lime); float: right; }
.faq-item[open] summary::after { content: " −"; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }

/* Carrito y pedido (ventana centrada, nunca a pantalla completa) */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  display: flex; justify-content: center; align-items: center; padding: 16px;
}
/* Sin esta regla el display:flex de arriba anula el atributo hidden y la ventana nunca se cierra */
.drawer[hidden] { display: none; }
.drawer-panel {
  background: var(--bg); width: min(420px, 100%); max-height: 86vh;
  overflow: hidden; padding: 18px;
  border: 1px solid var(--card-border); border-radius: 14px;
  display: flex; flex-direction: column;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-shrink: 0; }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: none; color: var(--text); font-size: 24px; line-height: 1; padding: 8px 12px; cursor: pointer; min-width: 44px; min-height: 44px; flex-shrink: 0; }
/* Solo el cuerpo hace scroll: la X de arriba y los botones de abajo siempre se ven */
#cartItems, #orderBody, #cryptoBody { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.drawer-total, .drawer-panel > .btn, .drawer-panel > .fine-print { flex-shrink: 0; }
.cart-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--card-border); font-size: 14px;
}
.cart-line button { background: none; border: none; color: #ff7a7a; cursor: pointer; font-size: 12px; }
.drawer-total { margin-top: 14px; font-size: 16px; text-align: right; }
.empty-cart { color: var(--muted); font-size: 14px; }
.code-box {
  background: var(--bg-soft); border: 1px solid var(--lime);
  border-radius: var(--radius); padding: 18px; text-align: center; margin: 14px 0;
}
.code-box .code { font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--lime); }
.code-pending { color: #ffd479; font-size: 14px; }
.order-meta { font-size: 13px; color: var(--muted); }
.order-meta b { color: var(--text); }
.account-line {
  background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 8px 0;
  word-break: break-all;
}
.error { color: #ff8a8a; font-size: 13px; }

/* Pago con USDT */
.crypto-nets { display: flex; gap: 8px; margin: 12px 0; }
.crypto-net { flex: 1; background: var(--bg-soft); border: 1px solid var(--card-border); color: var(--text); border-radius: 10px; padding: 10px 4px; font-size: 13px; font-weight: 700; cursor: pointer; }
.crypto-net.active { border-color: var(--lime); color: var(--lime); }
.crypto-addr { background: var(--bg-soft); border: 1px solid var(--lime); border-radius: 10px; padding: 12px; font-family: monospace; font-size: 13px; word-break: break-all; margin: 10px 0; }
.crypto-input { width: 100%; box-sizing: border-box; background: var(--bg-soft); border: 1px solid var(--card-border); color: var(--text); border-radius: 10px; padding: 12px; font-family: monospace; font-size: 13px; margin: 10px 0; }
.crypto-steps { font-size: 13px; color: var(--muted); margin: 10px 0; padding-left: 18px; }
.crypto-steps li { margin: 4px 0; }

/* Aviso pequeño al añadir al carrito (no abre ninguna ventana) */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 200; background: var(--lime); color: var(--lime-dark);
  font-size: 13px; font-weight: 700; border-radius: 20px;
  padding: 10px 16px; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 44px; }
}

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

/* ============ v2 — Tres tiendas en una (Software / Granja / Cuentas) ============ */

.section { scroll-margin-top: 118px; }

/* Trio: tres tiendas en una */
.trio-wrap { padding-top: 8px; }
.trio { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trio-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px;
}
.trio-card:hover { border-color: var(--lime); }
.trio-kicker {
  display: inline-block; color: var(--lime);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}
.trio-card h3 { margin: 6px 0 4px; font-size: 18px; }
.trio-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.trio-link { color: var(--lime); font-size: 13px; font-weight: 700; }

/* Pestañas de sección (fijas bajo el header) */
.section-tabs {
  position: sticky; top: 56px; z-index: 40;
  background: rgba(11, 21, 18, 0.97);
  border-bottom: 1px solid var(--card-border);
}
.tabs-inner { display: flex; gap: 4px; overflow-x: auto; }
.section-tab {
  flex: 1; text-align: center; white-space: nowrap;
  padding: 12px 10px; font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.section-tab:hover { color: var(--text); }
.section-tab.active { color: var(--lime); border-bottom-color: var(--lime); }

/* Sub-héroes de sección */
.section-software { background: #0d1813; }
.section h2 { scroll-margin-top: 118px; }

/* Muro de espejo (decorativo, solo CSS) */
.wall {
  background: #0a0f0c; border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px; margin: 18px 0 8px;
}
.wall-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.wall-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.wall-bar span:first-child { background: #ff5f57; }
.wall-bar span:nth-child(2) { background: #febc2e; }
.wall-bar span:nth-child(3) { background: #28c840; }
.wall-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-phone {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 8px; text-align: center;
}
.mini-phone b { display: block; color: var(--lime); font-size: 13px; }
.mini-phone i {
  display: block; height: 34px; margin-top: 6px;
  background: linear-gradient(135deg, #1d3a2a, #142019);
  border-radius: 4px;
}
.wall-caption { text-align: center; color: var(--faint); font-size: 12px; margin: 8px 0 0; }

/* Lista de funciones del software */
.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.feature-grid li {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 11px 14px; font-size: 13px;
}
.feature-grid li::before { content: "✓ "; color: var(--lime); font-weight: 800; }

/* Funciones destacadas */
.callouts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--lime);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.callout b { font-size: 15px; }
.callout span { color: var(--muted); font-size: 13px; }

.use-strip {
  margin: 20px 0 6px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: 8px; font-size: 13px; color: var(--muted);
}
.use-strip b { color: var(--text); }

/* Franja ecosistema */
.eco-strip {
  margin-top: 24px; padding: 18px;
  background: var(--bg-soft); border: 1px solid var(--lime);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.eco-strip b { font-size: 16px; }
.eco-strip span { color: var(--muted); font-size: 13px; }

/* Tarjetas de precio destacado (Cuentas) */
.hero-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.hero-card {
  background: var(--card); border: 1px solid var(--lime);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero-card .price { font-size: 30px; font-weight: 800; }
.hero-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.hero-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.hero-card .btn { align-self: flex-start; }
.refund-badge {
  display: inline-block; background: var(--lime); color: var(--lime-dark);
  font-size: 12px; font-weight: 800; border-radius: 20px;
  padding: 6px 12px; margin: 0 0 8px;
}

/* Caja de ayuda (Cuentas) */
.help-box {
  margin-top: 24px; padding: 18px;
  background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.help-box h3 { margin: 0 0 10px; font-size: 16px; }
.help-box ul { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.help-box li { margin-bottom: 6px; }

@media (min-width: 640px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .callouts { grid-template-columns: repeat(2, 1fr); }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .wall-phones { grid-template-columns: repeat(6, 1fr); }
}
