:root {
  --ama: #FFC83D; --ama2: #FFF3C4; --verde: #12B76A; --verde2: #DDF5E8; --rojo: #E5484D; --rojo2: #FDE4E4;
  --tinta: #14161A; --gris: #6B7280; --linea: #E8E4D8; --papel: #FFFDF6; --fondo: #F6F2E6;
  --r: 16px; --sombra: 0 2px 0 rgba(20,22,26,.08), 0 8px 24px rgba(20,22,26,.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: Figtree, system-ui, sans-serif; color: var(--tinta); background: var(--fondo); line-height: 1.45; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; }
.num { font-variant-numeric: tabular-nums; }
.verde { color: var(--verde); } .rojo { color: var(--rojo); } .gris { color: var(--gris); }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--tinta); color: #fff; font-weight: 800; padding: 14px 20px; border-radius: 14px; font-size: 17px; }
.boton.ama { background: var(--ama); color: var(--tinta); box-shadow: 0 3px 0 #C99A1E; }
.boton.verde { background: var(--verde); color: #fff; box-shadow: 0 3px 0 #0B8A4F; }
.boton.rojo { background: var(--rojo); color: #fff; box-shadow: 0 3px 0 #B3363A; }
.boton.sec { background: #fff; color: var(--tinta); border: 2px solid var(--tinta); }
.boton.chico { padding: 9px 14px; font-size: 15px; border-radius: 11px; }
.boton.ancho { width: 100%; }
.boton:active { transform: translateY(2px); box-shadow: none; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--gris); }

/* tarjetas tipo ticket */
.ticket { background: var(--papel); border-radius: var(--r); box-shadow: var(--sombra); padding: 18px; position: relative; }
.ticket + .ticket { margin-top: 14px; }
.ticket h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); font-weight: 800; }
.corte { border-top: 2px dashed var(--linea); margin: 14px -18px; }
.pastilla { display: inline-block; background: var(--tinta); color: var(--ama); font-weight: 900; font-size: 12px; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.sello { display: inline-block; border: 3px solid var(--verde); color: var(--verde); font-weight: 900; padding: 6px 12px; border-radius: 10px;
  transform: rotate(-3deg); text-transform: uppercase; letter-spacing: .03em; }
.sello.rojo { border-color: var(--rojo); color: var(--rojo); }

/* formularios */
label.campo { display: block; margin: 0 0 12px; font-weight: 700; font-size: 15px; }
label.campo small { display: block; font-weight: 400; color: var(--gris); }
.entrada { width: 100%; border: 2px solid var(--linea); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 18px; margin-top: 5px; outline: none; }
.entrada:focus { border-color: var(--ama); box-shadow: 0 0 0 3px var(--ama2); }
.pesos { position: relative; }
.pesos::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-38%); font-weight: 800; color: var(--gris); font-size: 18px; }
.pesos .entrada { padding-left: 30px; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--linea); background: #fff; border-radius: 999px; padding: 8px 13px; font-weight: 700; cursor: pointer; font-size: 15px; }
.chip.si { background: var(--tinta); color: #fff; border-color: var(--tinta); }
input[type=range] { width: 100%; accent-color: var(--tinta); }

/* ======================================================= LA APP */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 0 16px 110px; }
.cabeza { display: flex; align-items: center; gap: 10px; padding: 16px 0 12px; position: sticky; top: 0; background: var(--fondo); z-index: 5; }
.cabeza img { width: 38px; height: 38px; border-radius: 10px; }
.cabeza .t { font-weight: 900; font-size: 18px; line-height: 1.1; }
.cabeza .s { font-size: 13px; color: var(--gris); }
.cabeza .der { margin-left: auto; }
.titulo { font-size: 26px; font-weight: 900; margin: 6px 0 14px; }
.ayuda { color: var(--gris); font-size: 15px; margin: -6px 0 14px; }

.grande { font-size: 40px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.medio { font-size: 24px; font-weight: 900; }
.renglon { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 16px; }
.renglon b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.renglon.total { font-size: 19px; font-weight: 900; border-top: 2px solid var(--tinta); margin-top: 6px; padding-top: 10px; }
.barra { height: 14px; background: #ECE7D8; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.barra > i { display: block; height: 100%; background: var(--verde); border-radius: 99px; transition: width .4s; }
.barra.ama > i { background: var(--ama); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.dos .boton { padding: 18px 10px; font-size: 18px; }

.lista { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item .nom { font-weight: 700; }
.item .sub { font-size: 13px; color: var(--gris); }
.item .der { margin-left: auto; text-align: right; white-space: nowrap; }
.semaforo { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.semaforo.v { background: var(--verde); } .semaforo.a { background: var(--ama); } .semaforo.r { background: var(--rojo); }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.etiqueta.v { background: var(--verde2); color: #0B7A47; } .etiqueta.a { background: var(--ama2); color: #8A6400; } .etiqueta.r { background: var(--rojo2); color: #B3363A; }
.vacio { text-align: center; color: var(--gris); padding: 26px 10px; }
.consejo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.consejo:last-child { border-bottom: 0; }
.consejo .ic { font-size: 24px; line-height: 1; }
.aviso-ej { background: var(--ama2); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

/* barra de abajo */
.menu { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--linea); display: flex; justify-content: center;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.menu a { flex: 1; max-width: 104px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--gris); padding: 4px 0; border-radius: 12px; }
.menu a .i { display: block; font-size: 22px; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.menu a.si { color: var(--tinta); background: var(--ama2); }
.menu a.si .i { filter: none; opacity: 1; }

/* hoja que sube (para cargar algo) */
.velo { position: fixed; inset: 0; background: rgba(20,22,26,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.hoja { background: var(--papel); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow: auto; animation: sube .22s ease-out; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.hoja h2 { font-size: 22px; font-weight: 900; }
.hoja .acciones { display: flex; gap: 10px; margin-top: 14px; }
.hoja .acciones .boton { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; z-index: 60; box-shadow: var(--sombra); max-width: 90vw; text-align: center; }

/* pantalla de entrada (sin acceso) */
.puerta { max-width: 460px; margin: 0 auto; padding: 40px 18px; text-align: center; }
.puerta img { width: 96px; border-radius: 24px; box-shadow: var(--sombra); }
.puerta h1 { font-size: 30px; font-weight: 900; margin-top: 18px; }
.puerta .ticket { text-align: left; margin-top: 22px; }
.cargando { text-align: center; padding: 80px 20px; color: var(--gris); font-weight: 700; }

/* ======================================================= LA PÁGINA DE VENTA */
.venta { overflow-x: hidden; }
.venta .ancho { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.venta nav { display: flex; align-items: center; gap: 10px; padding: 16px 0; }
.venta nav img { width: 40px; border-radius: 10px; }
.venta nav b { font-size: 18px; font-weight: 900; }
.venta nav .boton { margin-left: auto; }
.heroe { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 30px 0 60px; }
.heroe h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 900; letter-spacing: -.03em; }
.heroe h1 mark { background: var(--ama); padding: 0 .12em; border-radius: 8px; }
.heroe p.bajada { font-size: 20px; color: #3D4048; margin: 0 0 22px; }
.heroe .precio-chico { margin-top: 12px; color: var(--gris); font-size: 15px; }
.tel { width: 300px; max-width: 100%; margin: 0 auto; background: var(--tinta); border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px rgba(20,22,26,.25); transform: rotate(2deg); }
.tel .pantalla { background: var(--fondo); border-radius: 32px; padding: 18px 14px; min-height: 520px; }
.tel .ticket { padding: 14px; }
.tel .grande { font-size: 34px; }
.banda { background: var(--tinta); color: #fff; padding: 60px 0; }
.banda h2 { color: var(--ama); }
.seccion { padding: 64px 0; }
.seccion h2, .banda h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; }
.seccion .intro { font-size: 19px; color: #3D4048; max-width: 700px; margin: 0 0 30px; }
.dolores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.dolores div { background: rgba(255,255,255,.07); border-radius: 16px; padding: 20px; font-size: 17px; }
.dolores div b { display: block; font-size: 20px; color: var(--ama); margin-bottom: 6px; }
.funciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.funciones .ticket { margin: 0 !important; }
.funciones .ic { font-size: 34px; }
.funciones h3 { text-transform: none; letter-spacing: 0; color: var(--tinta); font-size: 20px; margin: 8px 0 6px; }
.funciones p { margin: 0; color: #3D4048; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pasos { counter-reset: p; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pasos div { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--sombra); }
.pasos div::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ama); font-weight: 900; font-size: 20px; margin-bottom: 10px; }
.precio { max-width: 460px; margin: 0 auto; text-align: center; }
.precio .grande { font-size: 60px; }
.precio ul { text-align: left; padding-left: 0; list-style: none; margin: 18px 0; }
.precio li { padding: 7px 0 7px 30px; position: relative; font-size: 17px; }
.precio li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 900; }
.faq details { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--sombra); }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; }
.faq p { margin: 10px 0 0; color: #3D4048; }
.pie { padding: 30px 0 50px; color: var(--gris); font-size: 14px; text-align: center; }
.pie a { margin: 0 8px; }
.legal { max-width: 760px; margin: 0 auto; padding: 20px; }
.legal h3 { margin-top: 22px; }

@media (max-width: 860px) {
  .heroe, .demo { grid-template-columns: 1fr; }
  .heroe { gap: 30px; padding-top: 10px; }
  .dolores, .funciones { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .venta nav .boton { display: none; }
}
