/* «Mis dudas» (notas.js) y «Tu presupuesto» (configurador.js), para las demos en vídeo de GestorTPV. */

/* El botón de la barra, el panel y el aviso de la primera vez */
.notas-boton { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-left: auto; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 700 14.5px/1 var(--sans, sans-serif); cursor: pointer; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .85; }
.notas-boton:hover { opacity: 1; }
.nav .notas-boton + .btn { margin-left: 10px; }
.notas-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #1e7bf5; color: #0f1c2b; font-size: 12px; line-height: 20px; text-align: center; }
.notas-n[hidden] { display: none; }
.notas-panel { position: fixed; right: clamp(10px, 3vw, 28px); top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 130; width: min(400px, calc(100vw - 20px)); max-height: calc(100dvh - 100px); overflow: auto; padding: 18px 18px 16px; border-radius: 22px; background: #fafcff; color: #182a3b; box-shadow: 0 30px 80px -20px rgba(15, 28, 43, .55), 0 0 0 1px rgba(24, 42, 59, .1); font-family: var(--sans, sans-serif); }
.notas-panel[hidden] { display: none; }
.notas-cab { display: flex; align-items: center; justify-content: space-between; }
.notas-cab h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 800; }
.notas-cerrar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e6edf5; color: #182a3b; font-size: 22px; line-height: 1; cursor: pointer; }
.notas-que { margin: 8px 0 12px; color: #4a5b6d; font-size: 14.5px; line-height: 1.45; }
.notas-escribir { position: relative; }
.notas-escribir textarea { width: 100%; resize: vertical; min-height: 78px; padding: 12px 50px 12px 12px; border-radius: 14px; border: 1.5px solid #d6dee8; background: #fff; color: inherit; font: 500 15px/1.4 var(--sans, sans-serif); }
.notas-escribir textarea:focus { outline: none; border-color: #1e7bf5; box-shadow: 0 0 0 3px rgba(30, 123, 245, .2); }
.notas-micro { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #e6edf5; color: #4a5b6d; cursor: pointer; }
.notas-micro.on { background: #e5484d; color: #fff; animation: respira 1.4s ease-in-out infinite; }
.notas-dictado { margin: 6px 0 0; color: #7b8897; font-size: 12.5px; }
.notas-guardar { margin-top: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #182a3b; color: #fff; font: 800 14px/1 var(--sans, sans-serif); cursor: pointer; }
.notas-lista { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: dudas; }
.notas-lista[hidden] { display: none; }
.notas-lista li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 10px 10px 12px; border-radius: 12px; background: #edf2f8; counter-increment: dudas; }
.notas-lista li::before { content: counter(dudas) "."; font-weight: 800; color: #1663cf; }
.notas-lista p { flex: 1; margin: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.notas-lista small { display: block; margin-top: 2px; color: #2f8f5b; font-weight: 700; font-size: 12px; }
.notas-lista button { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #7b8897; font-size: 18px; cursor: pointer; }
.notas-pie { display: grid; gap: 8px; margin-top: 14px; }
.notas-pie .btn { width: 100%; min-height: 48px; }
.notas-pie small { color: #7b8897; font-size: 12.5px; line-height: 1.4; }
.notas-aviso { position: fixed; left: 50%; top: calc(74px + env(safe-area-inset-top, 0px)); z-index: 140; transform: translateX(-50%); max-width: min(520px, calc(100vw - 24px)); padding: 10px 16px; border-radius: 14px; background: #fafcff; color: #182a3b; font: 700 14.5px/1.35 var(--sans, sans-serif); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); animation: aparecer .35s ease both; }

/* «Tu presupuesto» */
.cfg-ventana { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: 16px; background: rgba(11, 22, 34, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: auto; font-family: var(--sans, sans-serif); }
.cfg-ventana[hidden] { display: none; }
.cfg { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "preg res" "datos datos"; width: min(1040px, 100%); border-radius: 28px; overflow: hidden; background: #fafcff; color: #182a3b; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); animation: aparecer .35s ease both; }
.cfg h2 { margin: 0 0 2px; font: 800 clamp(26px, 3vw, 34px)/1.05 var(--sans, sans-serif); letter-spacing: -.02em; }
.cfg-cerrar { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(24, 42, 59, .08); color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.cfg-resultado .cfg-cerrar { color: #fff; }
.cfg-preguntas { grid-area: preg; display: grid; gap: 22px; align-content: start; padding: 28px; min-width: 0; }
.cfg-lab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; font-size: 16.5px; }
.cfg-lab i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; background: #182a3b; color: #fff; }
.cfg-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-tarjetas.tres { grid-template-columns: repeat(3, 1fr); }
.cfg-tarjetas button { display: grid; justify-items: start; align-content: start; gap: 4px; min-width: 0; padding: 13px 14px; border-radius: 16px; border: 1.5px solid #d6dee8; background: #fff; color: inherit; text-align: left; cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.cfg-tarjetas button svg { color: #1663cf; margin-bottom: 2px; }
.cfg-tarjetas button b { font-size: 15.5px; }
.cfg-tarjetas button small { color: #4a5b6d; font-size: 13px; line-height: 1.35; }
.cfg-tarjetas button:hover { border-color: #1e7bf5; }
.cfg-tarjetas button.on { border-color: #1e7bf5; background: #e8f1ff; box-shadow: 0 0 0 3px rgba(30, 123, 245, .22); }
.cfg-resultado { grid-area: res; padding: 28px; background: linear-gradient(160deg, #182a3b, #0f1c2b); color: #f3f7fb; min-width: 0; }
.cfg-kicker { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #5ea2ff; }
.cfg-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.cfg-total b { font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cfg-total span { color: #c5d0dc; font-weight: 700; }
.cfg-iva { margin: 4px 0 14px; color: #c5d0dc; font-size: 14px; }
.cfg-lineas { list-style: none; margin: 0; padding: 0; }
.cfg-lineas li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.cfg-lineas li span small { display: block; color: #a3afbc; font-size: 12.5px; line-height: 1.4; }
.cfg-lineas li b { white-space: nowrap; font-variant-numeric: tabular-nums; color: #5ea2ff; }
.cfg-condiciones { margin: 14px 0 0; color: #a3afbc; font-size: 13px; line-height: 1.5; }
.cfg-datos { grid-area: datos; display: grid; gap: 12px; padding: 22px 28px 26px; border-top: 1px solid #dfe7f0; background: #eef3f9; }
.cfg-campos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cfg-campos label { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 700; color: #4a5b6d; }
.cfg-campos input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #d6dee8; background: #fff; color: #182a3b; font: 500 15px var(--sans, sans-serif); }
.cfg-campos input:focus { outline: none; border-color: #1e7bf5; box-shadow: 0 0 0 3px rgba(30, 123, 245, .2); }
.cfg-campos .cfg-conocido { grid-column: 1 / -1; }
.cfg-campos .cfg-conocido small { font-weight: 500; color: #6b7c8e; }
.cfg-campos select { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #d6dee8; background: #fff; color: #182a3b; font: 500 15px var(--sans, sans-serif); }
.cfg-campos select:focus { outline: none; border-color: #1e7bf5; box-shadow: 0 0 0 3px rgba(30, 123, 245, .2); }
.cfg-dudas { display: flex; align-items: center; gap: 6px; margin: 0; color: #4a5b6d; font-size: 14px; }
.cfg-dudas a { color: #1663cf; font-weight: 800; }
.cfg-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cfg-botones .btn-borde-claro { color: #182a3b; background: #fff; box-shadow: inset 0 0 0 1.5px #c3cedb; }
.cfg-tel { color: #4a5b6d; font-weight: 700; font-size: 14.5px; }
.cfg-acepto { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; color: #4a5b6d; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.cfg-acepto input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1663cf; cursor: pointer; }
.cfg-acepto input:focus-visible { outline: 2px solid #1e7bf5; outline-offset: 2px; }
.cfg-acepto a { color: #182a3b; font-weight: 700; text-underline-offset: 2px; }
.cfg-aviso { margin: 0; color: #b4441b; font-weight: 700; font-size: 14px; }
.cfg-aviso:empty { display: none; }
.cfg-botones .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

@media (max-width: 760px) {
  .cfg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "preg" "res" "datos"; border-radius: 22px; }
  .cfg-preguntas, .cfg-resultado { padding: 22px 18px; }
  .cfg-datos { padding: 18px; }
  .cfg-tarjetas.tres { grid-template-columns: 1fr; }
  .cfg-tarjetas.tres button { grid-template-columns: 30px 1fr; column-gap: 10px; }
  .cfg-tarjetas.tres button svg { grid-row: span 2; }
  .cfg-campos { grid-template-columns: 1fr 1fr; }
  .cfg-botones .btn { width: 100%; }
  .cfg-ventana { place-items: start center; }
  .notas-panel { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 78dvh; }
  /* Encima de la demo en vídeo, una hoja baja (9-oct-2026): la peli se sigue viendo arriba, parada donde iba. */
  .en-peli .notas-panel { max-height: 60vh; max-height: 60dvh; }
  .notas-boton span { display: none; }
  .notas-boton { width: 42px; padding: 0; justify-content: center; }
}
