/* PediloFlow · Clientes fieles: franja, ventanita, «Mis puntos» y carrito del catálogo, y la página «Te falta un paso» (cliente-google.php).
   El color del negocio llega por las variables del catálogo (--c, --c-sobre, --c-suave, --c-tinta). */

/* ---------- Franja arriba del menú ---------- */
.fid-franja {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; padding: 10px 16px;
  border: 0; border-bottom: 1px solid #cfe7dc; background: #e8f5ee; color: #133d2a; font: inherit; font-size: .95rem; text-align: left;
  text-decoration: none; cursor: pointer;
}
.fid-franja > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fid-franja > strong { flex: none; color: var(--c-tinta, #0f6b4a); white-space: nowrap; }
.fid-franja.fuera { background: #fff8e1; border-bottom-color: #f0e2b0; color: #4d3b07; }
.fid-franja.premio { background: linear-gradient(90deg, #fff3c4, #ffe7a0); border-bottom-color: #e9c552; color: #4d3b07; }
.fid-msg { padding: 10px 16px; background: #133d2a; color: #fff; font-size: .92rem; font-weight: 600; }

.fid-dots { display: inline-flex; gap: 4px; flex: none; }
.fid-dot { width: 16px; height: 16px; border-radius: 50%; background: #cfe3da; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; }
.fid-dot.lleno { background: var(--c, #0f9464); }
.fid-dot.meta { background: transparent; font-size: 13px; }
.fid-barra { display: block; height: 8px; border-radius: 6px; background: #d6e6e0; overflow: hidden; flex: 0 0 90px; }
.fid-barra i { display: block; height: 100%; background: var(--c, #0f9464); border-radius: 6px; }
.fid-barra.claro { background: rgba(255, 255, 255, .28); flex: none; width: 100%; }
.fid-barra.claro i { background: #ffe08a; }

/* ---------- Ventanita de bienvenida (abajo, el menú se ve detrás) ---------- */
html.fid-sin-scroll { overflow: hidden; }
.fid-velo { position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 18, .45); display: flex; align-items: flex-end; justify-content: center; }
.fid-hoja {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: #fff; color: #1a2320;
  border-radius: 22px 22px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .22); animation: fid-sube .28s ease-out;
}
@media (min-width: 560px) { .fid-velo { align-items: center; } .fid-hoja { border-radius: 22px; } }
@keyframes fid-sube { from { transform: translateY(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fid-hoja { animation: none; } }
.fid-agarre { display: block; width: 40px; height: 5px; border-radius: 3px; background: #d5dbd9; margin: 0 auto 10px; }
.fid-x { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f0f3f2; color: #4a5752; font-size: 1rem; cursor: pointer; }
.fid-regalo { font-size: 2.5rem; line-height: 1; margin-top: 4px; }
.fid-hoja h2 { font-size: 1.25rem; line-height: 1.25; margin: 8px 36px 0; }
.fid-sub { color: #5a6862; font-size: .95rem; margin-top: 6px; }
.fid-sub strong { color: #1a2320; }
.fid-pasos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 0; }
.fid-pasos li { background: var(--c-suave, #e8f1ef); border-radius: 12px; padding: 10px 6px; font-size: .8rem; color: #33413c; line-height: 1.3; }
.fid-pasos span { display: block; font-size: 1.35rem; margin-bottom: 4px; }
.fid-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 16px; border: 1px solid #cfd6d3;
  border-radius: 12px; background: #fff; color: #1a2320; font-weight: 600; font-size: 1rem; text-decoration: none;
}
.fid-google:hover { background: #f6f8f7; }
.fid-google.chico { min-height: 46px; font-size: .95rem; }
.fid-g { flex: none; }
.fid-ver { display: block; width: 100%; min-height: 46px; margin-top: 8px; border: 0; background: none; color: var(--c-tinta, #0f6b4a); font-weight: 700; font-size: 1rem; }
.fid-nota { font-size: .8rem; color: #66706c; margin-top: 8px; line-height: 1.35; }

/* ---------- «Mis puntos» ---------- */
.fid-dlg { width: min(460px, calc(100% - 20px)); max-height: 90vh; border: 0; border-radius: 20px; padding: 0 16px 16px; color: #1a2320; }
.fid-dlg::backdrop { background: rgba(10, 20, 18, .45); }
.fid-dlg-cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px 0 8px; }
.fid-dlg-cab h2 { font-size: 1.2rem; }
.fid-dlg-cab .fid-x { position: static; }
.fid-tarjeta { background: var(--c, #0f9464); color: var(--c-sobre, #fff); border-radius: 18px; padding: 16px 18px; }
.fid-t-neg strong { display: block; font-size: 1.05rem; }
.fid-t-neg small { opacity: .85; font-size: .82rem; }
.fid-t-num { font-size: 2rem; font-weight: 800; margin: 10px 0 6px; line-height: 1.1; }
.fid-t-num small { font-size: 1rem; font-weight: 600; opacity: .85; }
.fid-t-falta { font-size: .88rem; margin-top: 8px; }
.fid-t-vence { font-size: .84rem; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.fid-premio { margin-top: 12px; background: linear-gradient(135deg, #fff3c4, #ffe08a); border: 1.5px solid #e9bf3c; border-radius: 14px; padding: 12px 14px; color: #4d3b07; }
.fid-premio strong { display: block; }
.fid-premio small { font-size: .82rem; }
.fid-premio-ir { margin-top: 10px; width: 100%; min-height: 44px; background: #4d3b07; color: #fff; border: 0; border-radius: 10px; font-weight: 700; font-size: 1rem; }
.fid-qr-caja { margin-top: 12px; border: 1px solid #e4e9e7; border-radius: 14px; padding: 14px; text-align: center; }
.fid-qr-tit { font-weight: 600; font-size: .92rem; }
.fid-qr { width: 180px; height: 180px; margin: 10px auto 4px; background: #fff; }
.fid-qr svg { width: 100%; height: 100%; display: block; }
.fid-codigo { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .12em; font-weight: 700; }
.fid-mov-tit { font-size: .92rem; margin: 16px 0 4px; }
.fid-mov { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.fid-mov li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e4e9e7; }
.fid-mov b { color: #0f7a52; white-space: nowrap; }
.fid-mov b.gris { color: #9aa4a0; }
.fid-esp { font-style: normal; font-size: .72rem; font-weight: 700; background: #fff3d6; color: #8a5f00; border-radius: 10px; padding: 2px 7px; white-space: nowrap; }
.fid-salir { text-align: center; margin-top: 14px; font-size: .88rem; }
.fid-salir a { color: #66706c; }

/* ---------- Carrito ---------- */
.fid-carrito { border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; font-size: .92rem; }
.fid-carrito p strong { display: block; }
.fid-carrito small { display: block; color: #5a6862; font-size: .8rem; margin-top: 2px; }
.fid-carrito.fuera { background: #fff8e1; border: 1.5px dashed #e3c45a; }
.fid-carrito.fuera .fid-google { margin-top: 10px; }
.fid-carrito.dentro { background: #e8f5ee; border: 1px solid #cfe7dc; }
.fid-carrito.dentro .fid-barra, .fid-carrito.dentro .fid-dots { margin: 8px 0 4px; }
.fid-carrito.dentro .fid-barra { width: 100%; }
.fid-suma { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fid-suma strong { display: inline !important; }
.fid-suma b { color: var(--c-tinta, #0f6b4a); white-space: nowrap; }
.fid-carrito.premio { background: linear-gradient(135deg, #fff3c4, #ffe08a); border: 1.5px solid #e9bf3c; color: #4d3b07; }
.fid-carrito.premio small { color: #6b5512; }
.fid-carrito.premio.aplicado { background: #fffbea; }
.fid-usar { width: 100%; min-height: 46px; margin-top: 10px; border: 0; border-radius: 10px; background: #1a2320; color: #fff; font-weight: 700; font-size: 1rem; }
.fid-usar:disabled { opacity: .45; cursor: default; }
.fid-usado { margin-top: 8px; font-weight: 700; color: #0f7a52; }
.fid-quitar { border: 0; background: none; padding: 4px; color: #6b5512; text-decoration: underline; font: inherit; font-weight: 500; min-height: 32px; }
.fid-premio-error { margin-top: 8px; color: #a0281d; font-size: .85rem; font-weight: 600; }
.fid-listo { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #e8f5ee; color: #133d2a; font-size: .9rem; }

/* ---------- Página «Te falta un paso» (cliente-google.php) ---------- */
.fid-pagina { margin: 0; font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f5f7f6; color: #1a2320; line-height: 1.45; }
.fid-pagina *, .fid-pagina *::before, .fid-pagina *::after { box-sizing: border-box; }
.fid-datos { max-width: 460px; margin: 0 auto; padding: 22px 18px 32px; }
.fid-hola { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.fid-hola h1 { font-size: 1.3rem; margin: 0; }
.fid-hola p { margin: 2px 0 0; color: #5a6862; }
.fid-av { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; background: var(--c-suave, #dbe9e4); color: var(--c-tinta, #0f6b4a); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fid-error { background: #fdecec; border: 1px solid #f1c4bf; color: #8f2a22; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.fid-campo { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.fid-campo > label, .fid-campo legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.fid-campo legend span { font-weight: 400; color: #66706c; }
.fid-campo input, .fid-campo select { width: 100%; min-height: 48px; border: 1px solid #cfd6d3; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
.fid-campo input:focus, .fid-campo select:focus { outline: 3px solid var(--c, #0f9464); outline-offset: 1px; }
.fid-fijo { display: flex; justify-content: space-between; gap: 8px; min-height: 48px; align-items: center; border: 1px solid #dfe5e2; border-radius: 10px; padding: 10px 12px; background: #eef2f0; color: #55605b; overflow-wrap: anywhere; }
.fid-fijo small { flex: none; font-size: .78rem; }
.fid-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; }
.fid-ayuda { font-size: .8rem; color: #66706c; margin: 5px 0 0; line-height: 1.35; }
.fid-tilde { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 6px 0 18px; }
.fid-tilde input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--c, #0f9464); }
.fid-tilde a { color: var(--c-tinta, #0f6b4a); }
.fid-boton { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--c, #0f9464); color: var(--c-sobre, #fff); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.fid-pie { text-align: center; margin-top: 14px; font-size: .9rem; }
.fid-pie a { color: #66706c; }
.fid-pagina .solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* lo que el JS esconde con hidden no se ve aunque tenga display propio */
[class^="fid-"][hidden], [class*=" fid-"][hidden], #fid-escanear[hidden] { display: none !important; }
