/* ==========================================================================
   MiniApps de Tu Desarrollador — estilos compartidos de las páginas de producto
   Mismos colores, fuentes y botones que index.html. Reutilizar para cada MiniApp nueva.
   ========================================================================== */
:root {
  --ink: #141A24; --ink-navy: #0B0F17; --surface: #FFFFFF;
  --muted: #5B6472; --muted-light: #8A93A3; --line: rgba(20, 26, 36, .10);
  --accent: #2C46E8; --accent2: #6A4BE8; --accent-soft: #E4E8FE;
  --ok: #12855B; --ok-soft: #DCF0E7; --wa: #25D366;
  --glass: rgba(255, 255, 255, .9); --glass-border: rgba(20, 26, 36, .08);
  --glass-shadow: 0 18px 40px -22px rgba(20, 26, 36, .32);
  --mono: "Space Grotesk", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --maxw: 1120px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; background: #E7ECF4; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(44, 70, 232, .13), transparent 38%),
    radial-gradient(circle at 88% 10%, rgba(106, 75, 232, .11), transparent 40%),
    radial-gradient(circle at 78% 88%, rgba(44, 70, 232, .10), transparent 42%);
}
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance }
p { margin: 0 }
a { color: inherit }
img { max-width: 100%; height: auto; display: block }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px }
section { padding: 84px 0 }
@media (max-width: 640px) { section { padding: 60px 0 } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}
.btn:hover { transform: translateY(-2px) }
.btn svg { width: 19px; height: 19px; flex: none }
.btn-lg { font-size: 17px; padding: 16px 28px }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -10px rgba(44, 70, 232, .8) }
.btn-primary:hover { background: #2138d0 }
.btn-wa { background: var(--wa); color: #0A2E1A }
.btn-wa:hover { background: #1fbb59 }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .32) }
.btn-ghost:hover { background: rgba(255, 255, 255, .18) }
.btn-outline { background: #fff; color: var(--accent); border: 1.5px solid rgba(44, 70, 232, .35) }

/* ---------- Encabezados de sección ---------- */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: rgba(44, 70, 232, .08);
  border: 1px solid rgba(44, 70, 232, .18); padding: 7px 14px; border-radius: 999px;
}
.eyebrow-pill.on-dark { background: rgba(143, 160, 255, .1); border-color: rgba(143, 160, 255, .28); color: #C3CCFF }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent }
.sec-head { text-align: center; max-width: 62ch; margin: 0 auto 44px }
.sec-head h2 { font-size: clamp(27px, 4.2vw, 42px); margin-top: 16px }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 17.5px }

/* ---------- Barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 30; background: rgba(11, 15, 23, .92); backdrop-filter: blur(10px); color: #fff }
.barra .wrap { display: flex; align-items: center; gap: 18px; height: 62px }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700 }
.marca img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover }
.marca i { font-style: normal; color: #8FA0FF }
.barra nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px }
.barra nav a { text-decoration: none; opacity: .82 }
.barra nav a:hover { opacity: 1 }
.barra .btn { padding: 9px 16px; font-size: 14px }
@media (max-width: 820px) { .barra nav { display: none } .barra .btn { margin-left: auto } }

/* ---------- Héroe de producto ---------- */
.hero-app { background: var(--ink-navy); color: #fff; position: relative; overflow: hidden; padding: 70px 0 90px }
.hero-app::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(106, 75, 232, .35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(44, 70, 232, .3), transparent 45%);
}
.hero-app .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center }
@media (max-width: 920px) { .hero-app .wrap { grid-template-columns: 1fr } }
.hero-app h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 18px }
.hero-app h1 .hl { color: #8FA0FF }
.hero-app .lede { margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: 18px }
.hero-app .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px }
.hero-app .datos { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .72) }
.hero-app .datos span { display: inline-flex; align-items: center; gap: 7px }
.hero-app .datos svg { width: 16px; height: 16px; color: #5FD39B }

/* Marco de navegador para capturas */
.marco { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08) }
.marco .puntos { height: 30px; background: #EEF1F6; display: flex; align-items: center; gap: 7px; padding: 0 12px }
.marco .puntos i { width: 10px; height: 10px; border-radius: 50%; background: #D3D9E3 }
.marco .puntos i:first-child { background: #F26B6B } .marco .puntos i:nth-child(2) { background: #F5C451 } .marco .puntos i:nth-child(3) { background: #5FD39B }
.marco img { width: 100%; height: auto; cursor: zoom-in }

/* ---------- Tarjetas ---------- */
.glass { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow) }
.rejilla { display: grid; gap: 20px }
.rejilla.c3 { grid-template-columns: repeat(3, 1fr) }
.rejilla.c2 { grid-template-columns: repeat(2, 1fr) }
@media (max-width: 900px) { .rejilla.c3 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 620px) { .rejilla.c3, .rejilla.c2 { grid-template-columns: 1fr } }
.tarjeta { padding: 26px }
.tarjeta h3 { font-size: 20px; margin-top: 14px }
.tarjeta p { color: var(--muted); margin-top: 8px; font-size: 15.5px }
.icono { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: rgba(44, 70, 232, .1) }
.icono svg { width: 25px; height: 25px }

/* Funciones con captura */
.funcion { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; margin-top: 64px }
.funcion:first-of-type { margin-top: 0 }
.funcion.invertida { grid-template-columns: 1.25fr 1fr }
.funcion.invertida .texto { order: 2 }
@media (max-width: 860px) { .funcion, .funcion.invertida { grid-template-columns: 1fr; gap: 24px } .funcion.invertida .texto { order: 0 } }
.funcion h3 { font-size: clamp(23px, 3vw, 30px); margin-top: 14px }
.funcion .texto > p { color: var(--muted); margin-top: 12px }
.chequeos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px }
.chequeos li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px }
.chequeos li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%; background: var(--ok-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312855B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.etiqueta { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2) }

/* Para quién */
.negocios { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px }
.negocios span { background: #fff; border: 1px solid var(--glass-border); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; box-shadow: 0 8px 20px -14px rgba(20, 26, 36, .4) }

/* Pasos */
.paso { position: relative; padding: 28px 26px }
.paso .num { font-family: var(--display); font-size: 15px; font-weight: 700; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)) }

/* Precio */
.precio-caja { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden }
@media (max-width: 680px) { .precio-caja { grid-template-columns: 1fr } }
.precio-caja .lado { padding: 34px }
.precio-caja .lado.oscuro { background: var(--ink-navy); color: #fff }
.precio-valor { font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; line-height: 1 }
.precio-valor small { font-size: 16px; font-weight: 500; opacity: .7; letter-spacing: 0 }
.precio-caja .nota { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: 14.5px }
.precio-caja .btn { width: 100%; margin-top: 14px }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
@media (max-width: 900px) { .galeria { grid-template-columns: repeat(2, 1fr) } }
.galeria figure { margin: 0; cursor: zoom-in }
.galeria img { border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 14px 30px -20px rgba(20, 26, 36, .5); transition: transform .15s }
.galeria figure:hover img { transform: translateY(-3px) }
.galeria figcaption { font-size: 13.5px; color: var(--muted); margin-top: 7px; text-align: center }
dialog.visor { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh }
dialog.visor::backdrop { background: rgba(8, 11, 18, .85) }
dialog.visor img { max-width: 94vw; max-height: 86vh; border-radius: 10px }
dialog.visor p { color: #fff; text-align: center; margin-top: 10px }
dialog.visor button { position: fixed; top: 16px; right: 20px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 22px; cursor: pointer }

/* Requisitos / avisos */
.aviso { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #FFF8E6; border: 1px solid #F3DFA8; font-size: 15px; color: #5B4A12 }
.aviso svg { flex: none; width: 22px; height: 22px; color: #C88A00; margin-top: 2px }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px }
.faq details { background: #fff; border: 1px solid var(--glass-border); border-radius: 14px; padding: 4px 22px }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--accent); transition: transform .15s }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details p { padding-bottom: 16px; color: var(--muted); font-size: 15.5px }

/* Cierre */
.cierre { text-align: center }
.cierre .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px }

/* Pie */
.pie { border-top: 3px solid var(--accent); background: var(--ink-navy); color: rgba(255, 255, 255, .72); padding: 34px 0; font-size: 14px }
.pie .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between }
.pie a { color: #fff; text-decoration: none }
.pie nav { display: flex; flex-wrap: wrap; gap: 18px }

/* Botón flotante de WhatsApp */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 9px;
  background: var(--wa); color: #0A2E1A; font-weight: 700; text-decoration: none; padding: 13px 18px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
}
.fab svg { width: 22px; height: 22px }
@media (max-width: 520px) { .fab .lbl { display: none } .fab { padding: 14px } }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease }
.rv.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none } html { scroll-behavior: auto } }
