/* ── Web pública de FactuAR ───────────────────────────────────────────
   Papel + tinta: fondo crema, texto azul tinta, un solo azul de marca y un
   naranja de "birome" para las notas a mano. El panel /app usa styles.css. */

:root {
  --papel: #f4efe4;
  --papel-2: #ebe4d3;
  --blanco: #fffdf8;
  --tinta: #16213a;
  --tinta-2: #3b4458;
  --gris: #6e6758;
  --linea: #d9cfbb;
  --azul: #1d57c9;
  --azul-osc: #16449f;
  --birome: #c2410c;
  --verde: #2f6b3a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mano: "Caveat", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ancho: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; }

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }

/* ── Tipografía ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 5.6vw, 66px); }
h1 em { font-style: italic; font-weight: 500; color: var(--azul); }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 22px; }

.volanta {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 18px;
}
.bajada { font-size: 19px; color: var(--tinta-2); max-width: 36em; margin-top: 22px; }
.letra-chica { font-size: 14px; color: var(--gris); margin-top: 16px; }
.letra-chica.claro { color: #b9bfcc; }
.subrayado { text-decoration: underline; text-underline-offset: 3px; }
.titulo-pagina { font-size: clamp(38px, 5vw, 58px); }

/* Nota "escrita a mano" */
.nota {
  font-family: var(--mano); font-size: 24px; font-weight: 700; line-height: 1;
  color: var(--birome); position: absolute; white-space: nowrap; pointer-events: none;
}
.flecha { position: absolute; width: 70px; fill: none; stroke: var(--birome); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Botones y enlaces ──────────────────────────────────── */
.boton {
  display: inline-block; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--tinta); color: var(--blanco);
  padding: 15px 24px; border-radius: 6px;
  box-shadow: 0 2px 0 #000;
  transition: background .15s, transform .1s;
}
.boton:hover { background: var(--azul-osc); }
.boton:active { transform: translateY(2px); box-shadow: none; }
.boton-chico { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.boton-grande { font-size: 18px; padding: 18px 30px; margin-top: 30px; }
.boton-ancho { display: block; text-align: center; margin-top: 26px; }
.boton-claro { background: var(--blanco); color: var(--tinta); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.boton-claro:hover { background: #fff; color: var(--azul-osc); }

.enlace { font-weight: 600; color: var(--azul); text-decoration: none; }
.enlace:hover { text-decoration: underline; text-underline-offset: 4px; }
.enlace.claro { color: #c9d6f5; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }

/* ── Aviso superior + cabecera ──────────────────────────── */
.aviso-top { background: var(--tinta); color: #d7dbe4; font-size: 14px; padding: 9px 0; }
.aviso-top a { color: #fff; font-weight: 600; }
.aviso-beta {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #5b6479; border-radius: 3px; padding: 1px 6px; margin-right: 8px; color: #fff;
}

.cabecera { border-bottom: 1px solid var(--linea); background: var(--papel); position: sticky; top: 0; z-index: 20; }
.cabecera-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.marca {
  font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -0.03em;
  text-decoration: none; color: var(--tinta);
}
.marca span { color: var(--azul); }
.menu { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; }
.menu a:not(.boton):hover { color: var(--azul); }
.menu-sec { color: var(--gris); }
.menu-toggle, .menu-btn { display: none; }

/* ── Portada ────────────────────────────────────────────── */
.portada { padding: 72px 0 84px; }
.portada-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.portada-ticket { position: relative; display: flex; justify-content: center; padding: 40px 0 50px; }
.nota-cae { top: 0; left: 2%; transform: rotate(-6deg); }
.flecha-cae { top: 18px; left: 22%; transform: rotate(8deg); }
.nota-wpp { bottom: 0; right: 0; transform: rotate(-3deg); }

/* Ticket térmico */
.ticket {
  width: 300px; max-width: 100%;
  background: var(--blanco);
  font-family: var(--mono); font-size: 12px; line-height: 1.5; color: #222;
  padding: 22px 20px 26px;
  transform: rotate(2.2deg);
  box-shadow: 0 1px 0 var(--linea), 0 18px 30px -18px rgba(22,33,58,.45);
  position: relative;
  /* borde de corte dentado abajo */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.ticket span { display: block; }
.ticket-cab { text-align: center; border-bottom: 1px dashed #999; padding-bottom: 10px; }
.ticket-cab strong { font-size: 14px; letter-spacing: .05em; }
.ticket-cab span { color: #666; font-size: 11px; }
.ticket-tipo { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #999; }
.ticket-letra {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 2px solid #222; font-size: 22px; font-weight: 600;
}
.ticket-cliente { padding: 8px 0; color: #555; border-bottom: 1px dashed #999; }
.ticket-items { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ticket-items td { padding: 2px 0; vertical-align: top; }
.ticket-items td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.ticket-total {
  display: flex; justify-content: space-between; font-size: 15px; font-weight: 600;
  border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 6px 0;
}
.ticket-pie { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 10.5px; color: #555; }
.ticket-qr { display: grid; grid-template-columns: repeat(7, 7px); gap: 1px; flex: none; }
.ticket-qr i { width: 7px; height: 7px; background: #ddd; }
.ticket-qr i.on { background: #222; }

/* ── Franja de tres frases ──────────────────────────────── */
.franja { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); background: var(--papel-2); }
.franja-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.franja p { padding: 26px 26px 26px 0; font-size: 16px; color: var(--tinta-2); }
.franja p + p { padding-left: 26px; border-left: 1px solid var(--linea); }
.franja strong { font-family: var(--serif); font-size: 24px; color: var(--tinta); display: block; line-height: 1.2; margin-bottom: 2px; }

/* ── Secciones ──────────────────────────────────────────── */
.seccion { padding: 96px 0; }
.seccion-papel { background: var(--papel-2); border-top: 1px solid var(--linea); }
.seccion-tinta { background: var(--tinta); color: #e6e9f0; }
.seccion-tinta h2 { color: #fff; }
.seccion-tinta .titulo-seccion p { color: #b9bfcc; }

.titulo-seccion { max-width: 640px; margin-bottom: 48px; }
.precio-in .titulo-seccion { margin-bottom: 0; }
.titulo-seccion p { color: var(--tinta-2); font-size: 18px; margin-top: 14px; }
.numero {
  display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--birome);
  border-bottom: 2px solid var(--birome); margin-bottom: 16px; padding-bottom: 2px;
}

/* Índice de funciones: tres columnas de lista, como un diario */
.indice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; border-top: 2px solid var(--tinta); }
.indice-col { padding-top: 20px; }
.indice-col h3 { font-size: 24px; margin-bottom: 8px; }
.indice-col ul { list-style: none; }
.indice-col li { padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 15.5px; color: var(--tinta-2); }
.indice-col li b { color: var(--tinta); }
.al-margen {
  font-family: var(--mano); font-size: 25px; line-height: 1.25; color: var(--birome);
  margin-top: 38px; max-width: 32em; transform: rotate(-1deg);
}
.al-margen a { color: inherit; }

/* Catálogo */
.catalogo-in { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.pasos { list-style: none; counter-reset: paso; margin-top: 8px; }
.pasos li { counter-increment: paso; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid #2c3854; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 12px;
  font-family: var(--serif); font-size: 30px; line-height: 1; color: #7fa3ec;
}
.pasos-oscuros li { border-top-color: var(--linea); color: var(--tinta-2); }
.pasos-oscuros li::before { color: var(--azul); }
.pasos-oscuros li b { color: var(--tinta); }

.celu { position: relative; justify-self: center; }
.celu-pantalla {
  width: 300px; background: var(--blanco); color: var(--tinta);
  border: 10px solid #0b1224; border-radius: 34px; padding: 16px 14px 18px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
  font-size: 13px;
}
.celu-cab { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.celu-cab strong { display: block; font-size: 14px; }
.celu-cab span { color: #888; font-size: 11.5px; }
.celu-logo { width: 34px; height: 34px; border-radius: 8px; background: #b4271c; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.celu-buscar { margin: 12px 0 6px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; color: #999; font-size: 12px; }
.celu-item { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0ece2; }
.celu-item div { flex: 1; min-width: 0; }
.celu-item b { display: block; font-size: 13px; font-weight: 600; }
.celu-item span:not(.celu-foto) { color: #888; font-size: 11.5px; }
.celu-item em { font-style: normal; font-weight: 600; white-space: nowrap; }
.celu-foto { width: 40px; height: 40px; border-radius: 6px; flex: none; background: repeating-linear-gradient(45deg, #d9d2c2 0 6px, #e6e0d2 6px 12px); }
.celu-foto.f2 { background: repeating-linear-gradient(-45deg, #cfd8e6 0 6px, #dde4ee 6px 12px); }
.celu-foto.f3 { background: repeating-linear-gradient(90deg, #e3d4c6 0 5px, #ede3d8 5px 10px); }
.celu-foto.f4 { background: #eee; }
.celu-item.agotado { opacity: .55; }
.celu-carrito { margin-top: 14px; background: #1f8a4c; color: #fff; text-align: center; padding: 11px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.nota-celu { color: #ffb489; bottom: -34px; left: -30px; transform: rotate(-5deg); }

/* Precio: etiqueta colgante */
.precio-in { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.etiqueta {
  position: relative; background: var(--blanco);
  border: 1.5px solid var(--tinta); border-radius: 4px 4px 4px 4px;
  padding: 44px 34px 34px; transform: rotate(-1.2deg);
  box-shadow: 6px 6px 0 var(--papel-2), 6px 6px 0 1.5px var(--tinta);
}
.etiqueta-agujero {
  position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; border: 1.5px solid var(--tinta); background: var(--papel);
}
.etiqueta-nombre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); text-align: center; }
.etiqueta-precio { font-family: var(--serif); font-size: 72px; font-weight: 700; line-height: 1; text-align: center; margin-top: 10px; }
.etiqueta-precio span { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--gris); margin-left: 8px; }
.etiqueta-por { text-align: center; color: var(--tinta-2); margin-top: 6px; }
.etiqueta-lista { margin-top: 24px; border-top: 1px dashed var(--linea); }
.etiqueta-lista div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--linea); font-size: 15px; }
.etiqueta-lista dt { color: var(--tinta-2); }
.etiqueta-lista dd { font-weight: 600; text-align: right; }
.nota-precio { bottom: -38px; left: 14px; transform: rotate(-4deg); }
.como-se-paga { list-style: none; margin-top: 30px; border-top: 1px solid var(--linea); }
.como-se-paga li { padding: 14px 0; border-bottom: 1px solid var(--linea); color: var(--tinta-2); font-size: 16px; }
.como-se-paga li b { color: var(--tinta); }

/* Preguntas */
.preguntas-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas details:first-child { border-top: 2px solid var(--tinta); }
.preguntas summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--serif); font-size: 21px; font-weight: 600;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--azul);
}
.preguntas details[open] summary::after { content: "–"; }
.preguntas details p { padding: 0 36px 22px 0; color: var(--tinta-2); }

/* Cierre */
.cierre { background: var(--azul); color: #fff; padding: 84px 0; }
.cierre h2 { color: #fff; max-width: 16em; }
.cierre p { color: #dbe5fb; font-size: 18px; margin-top: 16px; max-width: 36em; }

/* Descargar */
.descarga-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.instalar { background: var(--blanco); border: 1px solid var(--linea); padding: 34px; border-radius: 4px; }
.instalar h2 { font-size: 30px; margin-bottom: 14px; }

.vacio { max-width: 680px; padding: 20px 24px; }

/* ── Pie ────────────────────────────────────────────────── */
.pie { border-top: 2px solid var(--tinta); padding-top: 56px; background: var(--papel); }
.pie-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.pie-marca p { color: var(--gris); font-size: 15px; margin-top: 12px; max-width: 24em; }
.pie-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 12px; }
.pie-col a { display: block; text-decoration: none; font-size: 15px; padding: 4px 0; }
.pie-col a:hover { color: var(--azul); }
.pie-abajo { margin-top: 48px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--gris); }

/* Botón flotante de WhatsApp: discreto */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  background: #1f8a4c; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 11px 16px 11px 13px; border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
}
.wa:hover { background: #18703d; }

/* ── Páginas legales (términos, privacidad) ─────────────── */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal-fecha { color: var(--gris); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--tinta-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--azul); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .portada { padding-top: 48px; }
  .portada-in, .catalogo-in, .precio-in, .preguntas-in, .descarga-in { grid-template-columns: 1fr; gap: 48px; }
  .indice { grid-template-columns: 1fr; }
  .indice-col + .indice-col { margin-top: 12px; }
  .etiqueta { max-width: 440px; }
  .pie-in { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }

  .menu-btn { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px 4px; }
  .menu-btn span { width: 24px; height: 2px; background: var(--tinta); }
  .menu {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--papel); border-bottom: 1px solid var(--linea); padding: 8px 24px 20px;
  }
  .menu a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--linea); }
  .menu a.boton { margin-top: 14px; width: auto; border: 0; padding: 12px 18px; }
  .menu-toggle:checked ~ .menu { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .seccion { padding: 68px 0; }
  .bajada { font-size: 17px; }
  .franja-in { grid-template-columns: 1fr; }
  .franja p, .franja p + p { padding: 18px 0; border-left: 0; }
  .franja p + p { border-top: 1px solid var(--linea); }
  .celu-pantalla { width: 280px; }
  .nota-celu { left: 0; }
  .etiqueta { padding: 40px 22px 26px; }
  .etiqueta-precio { font-size: 58px; }
  .pie-in { grid-template-columns: 1fr; }
  .pie-abajo { flex-direction: column; }
  .wa span { display: none; }
  .wa { padding: 13px; }
  .aviso-top { font-size: 13px; }
}
