/* Sistemas POS — estilos de la página pública y del panel */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0e1e3a; --navy-oscuro: #0a1628; --naranja: #f97316; --naranja-claro: #fb923c;
  --crema: #fef3e2; --texto: #e2e8f0; --tenue: #94a3b8; --borde: rgba(255,255,255,.14);
  --panel: rgba(255,255,255,.06); --verde: #22c55e; --rojo: #ef4444;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-oscuro) 72%);
  min-height: 100vh; color: var(--texto);
  overflow-wrap: break-word;
}
a { color: var(--naranja-claro); text-decoration: none; }
img { max-width: 100%; }

/* franja "toldo" */
.toldo { display: flex; height: 14px; }
.toldo i { flex: 1; }
.toldo i:nth-child(odd) { background: var(--naranja); }
.toldo i:nth-child(even) { background: var(--crema); }

/* cabecera */
.cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 5vw; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.cubo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--naranja-claro), var(--naranja));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 24px; color: var(--navy-oscuro);
  box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.cubo.chico { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; vertical-align: middle; }
.logo .nombre { font-weight: 800; font-size: 20px; letter-spacing: 2px; color: #fff; }
.logo .nombre b { color: var(--naranja-claro); }
.acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.enlinea { display: inline; }

/* botones */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--panel); border: 2px solid var(--borde); text-align: center;
}
.btn-naranja { background: linear-gradient(135deg, var(--naranja-claro), var(--naranja)); border-color: transparent; color: var(--navy-oscuro); }
.btn-verde { background: var(--verde); border-color: transparent; color: #06240f; }
.btn-rojo { background: transparent; border-color: var(--rojo); color: var(--rojo); }
.btn-borde { background: transparent; }
.btn-gris { background: rgba(255,255,255,.1); border-color: transparent; color: var(--tenue); cursor: default; }
.btn-grande { padding: 15px 32px; font-size: 18px; }
.btn-chico { padding: 8px 18px; font-size: 14px; }
.btn-bloque { display: block; width: 100%; margin-top: 14px; }
.btn:hover { filter: brightness(1.08); }

/* contenido general */
.contenido { max-width: 1060px; margin: 0 auto; padding: 0 5vw 60px; }
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 54px); font-weight: 900; line-height: 1.1; color: #fff; margin: 22px 0 18px; }
.hero-texto { font-size: clamp(16px, 2.4vw, 20px); color: var(--tenue); max-width: 640px; margin: 0 auto 28px; line-height: 1.5; }
.hero-botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-block; background: rgba(249,115,22,.16); border: 2px solid var(--naranja);
  color: var(--naranja-claro); border-radius: 999px; padding: 7px 20px; font-weight: 800;
  font-size: 13px; letter-spacing: 1.5px;
}
.seccion { padding: 34px 0; }
.seccion h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 900; color: #fff; margin-bottom: 10px; }
.seccion-sub { color: var(--tenue); font-size: 17px; line-height: 1.5; margin-bottom: 24px; }
.seccion-encabezado { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

/* tarjetas de sistemas */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.tarjeta {
  background: var(--panel); border: 2px solid var(--borde); border-radius: 22px; overflow: hidden;
  color: var(--texto); display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.tarjeta:hover { transform: translateY(-4px); border-color: var(--naranja); }
.tarjeta-foto { aspect-ratio: 16/9; background: #0b1830; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.portada-emoji { font-size: 74px; }
.portada-emoji.gigante { font-size: 130px; padding: 60px 0; text-align: center; }
.portada-logo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #16294d 0%, #0b1830 75%);
}
.portada-logo img { width: auto; height: 62%; max-width: 62%; object-fit: contain; border-radius: 18%;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.portada-logo.grande { aspect-ratio: 16/10; border-radius: 12px; }
.portada-logo.grande img { height: 55%; }
.logo-mini { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.logo-detalle { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; }
.tarjeta-cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tarjeta-titulo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tarjeta-titulo .emoji { font-size: 26px; }
.tarjeta-titulo h3 { font-size: 24px; font-weight: 800; color: #fff; }
.tarjeta-titulo.grande h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; color: #fff; }
.tarjeta-titulo.grande .emoji { font-size: 40px; }
.tagline { color: var(--tenue); font-size: 15px; line-height: 1.4; }
.tagline.grande { font-size: 19px; margin-top: 8px; }
.badge { border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.badge-verde { background: rgba(34,197,94,.15); color: var(--verde); border: 1.5px solid var(--verde); }
.badge-naranja { background: rgba(249,115,22,.15); color: var(--naranja-claro); border: 1.5px solid var(--naranja); }
.badge-gris { background: rgba(255,255,255,.08); color: var(--tenue); border: 1.5px solid var(--borde); }
.badge-roja { background: rgba(239,68,68,.15); color: #fca5a5; border: 1.5px solid var(--rojo); }
.mini-lista { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini-lista li { font-size: 14px; color: var(--texto); padding-left: 24px; position: relative; }
.mini-lista li::before { content: '✓'; position: absolute; left: 0; color: var(--verde); font-weight: 900; }
.tarjeta-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.gratis { color: var(--verde); font-weight: 800; font-size: 14px; }
.gratis.pronto-nota { color: var(--tenue); font-weight: 700; }

/* banda CTA */
.banda {
  background: linear-gradient(135deg, rgba(249,115,22,.16), rgba(59,130,246,.10));
  border: 2px solid var(--borde); border-radius: 26px; padding: 36px 28px; text-align: center; margin: 30px 0;
}
.banda h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; color: #fff; margin-bottom: 10px; }
.banda p { color: var(--tenue); max-width: 560px; margin: 0 auto 20px; line-height: 1.5; }

/* detalle */
.volver { display: inline-block; margin: 22px 0 6px; font-weight: 700; }
.detalle-cabecera { padding: 10px 0 20px; }
.detalle-columnas { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 800px) {
  /* en el celu, el precio y el botón de descarga van ANTES que la galería */
  .detalle-columnas { grid-template-columns: 1fr; }
  .detalle-columnas .caja-precios { order: -1; position: static; }
}
.galeria { background: var(--panel); border: 2px solid var(--borde); border-radius: 22px; padding: 14px; }
.galeria #fotoGrande { width: 100%; border-radius: 12px; cursor: zoom-in; display: block; }
.miniaturas { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.miniaturas img { width: 110px; height: 66px; object-fit: cover; object-position: top left; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.miniaturas img:hover, .miniaturas img.activa { border-color: var(--naranja); }
.galeria-nota { color: var(--tenue); font-size: 12px; text-align: center; margin-top: 8px; }
.caja-precios { background: var(--panel); border: 2px solid var(--naranja); border-radius: 22px; padding: 24px; position: sticky; top: 16px; }
.precio-prueba { font-size: 26px; font-weight: 900; color: var(--verde); margin-bottom: 12px; }
.precio-linea { font-size: 16px; color: var(--texto); margin: 6px 0; line-height: 1.4; }
.precio-nota { font-size: 13px; color: var(--tenue); margin-top: 10px; line-height: 1.45; }
.texto-largo p { color: var(--texto); font-size: 17px; line-height: 1.65; margin-bottom: 14px; max-width: 760px; }
.lista-check { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.lista-check li {
  background: var(--panel); border: 2px solid var(--borde); border-radius: 14px;
  padding: 13px 16px 13px 42px; position: relative; font-size: 15px; line-height: 1.4;
}
.lista-check li::before { content: '✓'; position: absolute; left: 16px; color: var(--verde); font-weight: 900; }
.caja-aviso { background: var(--panel); border: 2px solid var(--borde); border-radius: 22px; padding: 26px 28px; margin-top: 10px; }
.caja-aviso h2 { font-size: 22px; }
.caja-aviso p, .caja-aviso li { color: var(--texto); line-height: 1.6; font-size: 16px; }
.caja-aviso ol { margin: 12px 0 0 22px; display: flex; flex-direction: column; gap: 6px; }

/* lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; background: rgba(5,10,20,.92); z-index: 50;
  align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out;
}
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox-cerrar {
  position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--borde); background: rgba(255,255,255,.1); color: #fff;
  font-size: 20px; font-weight: 700; cursor: pointer;
}

/* pie de página */
.pie-pagina {
  border-top: 1px solid var(--borde); padding: 26px 5vw 34px; color: var(--tenue);
  font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
}
.pie-legal a.tenue { color: rgba(148,163,184,.55); font-size: 12px; }

/* ------- admin ------- */
.alerta { border-radius: 14px; padding: 14px 18px; margin: 18px 0; font-size: 15px; line-height: 1.5; }
.alerta-verde { background: rgba(34,197,94,.12); border: 2px solid var(--verde); color: #bbf7d0; }
.alerta-roja { background: rgba(239,68,68,.12); border: 2px solid var(--rojo); color: #fecaca; }
.alerta-amarilla { background: rgba(250,204,21,.10); border: 2px solid #eab308; color: #fef08a; }
.tarjeta-login { max-width: 430px; margin: 60px auto; background: var(--panel); border: 2px solid var(--borde); border-radius: 22px; padding: 34px; }
.tarjeta-login h1 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.formulario { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.formulario label, .tarjeta-login label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--crema); font-size: 14px; }
.formulario small, fieldset small { color: var(--tenue); font-weight: 400; }
.formulario input, .formulario textarea, .formulario select, .tarjeta-login input {
  font-family: inherit; font-size: 15px; color: #fff; background: rgba(10,22,40,.7);
  border: 2px solid var(--borde); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.formulario input:focus, .formulario textarea:focus, .formulario select:focus, .tarjeta-login input:focus { outline: none; border-color: var(--naranja); }
.formulario textarea { resize: vertical; }
.form-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
fieldset { border: 2px solid var(--borde); border-radius: 16px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 800; color: #fff; padding: 0 8px; }
label.radio { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; color: var(--texto); }
label.radio input { width: auto; }
.fotos-actuales { display: flex; gap: 12px; flex-wrap: wrap; }
.foto-actual { display: flex; flex-direction: column; gap: 4px; font-weight: 400 !important; color: var(--tenue) !important; font-size: 13px; }
.foto-actual img { width: 130px; height: 78px; object-fit: cover; object-position: top left; border-radius: 8px; border: 2px solid var(--borde); }
.logo-actual img { width: 78px; height: 78px; object-fit: contain; background: #0b1830; }
.fila-sistema {
  display: flex; align-items: center; gap: 16px; background: var(--panel);
  border: 2px solid var(--borde); border-radius: 18px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap;
}
.fila-foto { width: 120px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #0b1830; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fila-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fila-foto .portada-emoji { font-size: 38px; }
.fila-datos { flex: 1; min-width: 200px; }
.fila-meta { color: var(--tenue); font-size: 13px; margin-top: 6px; }
.fila-acciones { display: flex; gap: 10px; align-items: center; }
