/* =================== RICKY LOZANO · escenas «de verdad» (17-nov) — scripts/escenas/ricky-vivo.mjs ===================
   Su sistema en FIXYOUROFFIX con los colores de su marca (de su sitio): dorado #B08D57, tinta #0A0A0A, crema #F4F1EA,
   arena #DDD6C8, humo #8C857A. Sus letras (Bodoni Moda y Tenor Sans, OFL) sólo en lo que lleva su marca (el recibo). */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/BodoniModa-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Tenor Sans"; src: url("../fonts/TenorSans-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- la ventana de su sistema, con su tema ---------- */
.gf.rk { background: radial-gradient(120% 90% at 15% 0%, #f4efe6 0%, #e9dfd0 60%, #ddd2bf 100%); --p: #B08D57; --oro-osc: #8a6a35; --vino: #0A0A0A; --f: #0A0A0A; --m: #75695b; --b: rgba(60, 45, 20, .12); --v: #2f7a4a; --rosa-suave: #f4ecdf; }
.rk .gf__pista { color: #6b6257; } .rk .gf__pista .pista__ico { color: var(--oro-osc); background: rgba(176, 141, 87, .16); }
.rk .gf__ventana { background: #f9f6f0; box-shadow: 0 30px 70px rgba(60, 45, 20, .3), 0 0 0 1px rgba(255, 255, 255, .4); }
.rk .gf__app { background: linear-gradient(180deg, #f3ece0 0%, #f8f5ef 40%, #faf8f4 100%); }
.rk .gf__app::before { background-image: linear-gradient(rgba(176, 141, 87, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(176, 141, 87, .08) 1px, transparent 1px); }
.rk .gf__menu { background: rgba(251, 249, 245, .95); box-shadow: 0 8px 24px rgba(60, 45, 20, .06); }
.rk .gf__logo img { width: 96px; }
.rk .gf__menu span svg { color: #3a3128; }
.rk .gf__menu span.act { background: var(--rosa-suave); box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .4); color: var(--oro-osc); }
.rk .gf__menu span.act svg { color: var(--p); }
.rk .gf__menu small { color: #3a3128; }
.rk .gf__negocio img { border-radius: 5px; }
.rk .gf__iconos i.gf__nuevo { background: var(--p); color: #0A0A0A; box-shadow: 0 4px 10px rgba(176, 141, 87, .4); }
.rk .gf__iconos i.aviso em { background: var(--p); color: #0A0A0A; box-shadow: 0 0 0 2px #f6f1e8; }
.rk .gf__iconos i.yo { background: #efe4d0; color: var(--oro-osc); }
.rk .gf__main { background: #fff; box-shadow: 0 8px 24px rgba(60, 45, 20, .05); }
.rk .gf__cab h3 em { color: var(--oro-osc); }
.rk .gf__vista b { background: #0A0A0A; color: #F4F1EA; }
.rk-eti { font: 600 9.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-osc); }
.rk-aviso { display: flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border-radius: 11px; background: #0A0A0A; color: #F4F1EA; font-size: 12px; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.rk-aviso svg { flex: none; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--p); color: #0A0A0A; box-sizing: content-box; }
.rk-aviso.ver { opacity: 1; transform: none; }

/* ---------- 2 · tablero de pedidos ---------- */
.rp .gf__main { position: relative; }
.rp__tablero { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding-bottom: 12px; }
.rp__col { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 8px; border-radius: 12px; background: #f8f4ec; border: 1px solid #eee5d6; }
.rp__col > header { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; }
.rp__col > header b { font-size: 12px; font-weight: 600; }
.rp__col > header em { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #eee5d6; font: 600 10px/1.2 "Geist Mono", ui-monospace, monospace; font-style: normal; text-align: center; color: var(--m); }
.rp__lista { display: flex; flex-direction: column; gap: 7px; }
.rp-card { position: relative; padding: 9px 10px 8px; border-radius: 10px; background: #fff; border: 1px solid #eee5d6; box-shadow: 0 1px 2px rgba(60, 45, 20, .05); cursor: pointer; transition: box-shadow .3s ease, border-color .3s ease, opacity .4s ease; }
.rp-card:hover { box-shadow: 0 6px 16px rgba(60, 45, 20, .1); }
.rp-card small { display: block; font: 500 9.5px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-card b { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.rp-card > span { display: block; font-size: 11px; color: var(--m); }
.rp-card p { margin: 6px 0 0; padding: 4px 7px; border-radius: 6px; background: #f8f3ea; font-size: 10.5px; line-height: 1.3; color: #6b5a3a; transition: background .4s ease; }
.rp-card footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.rp-card .gf-num { font-size: 11px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.rp-card__sig { border: 0; padding: 3px 7px; border-radius: 6px; background: none; font: 600 10.5px Geist, system-ui, sans-serif; color: var(--oro-osc); cursor: pointer; opacity: 0; transition: opacity .25s ease, background .25s ease, transform .2s ease; white-space: nowrap; }
.rp-card:hover .rp-card__sig, .rp-card.es .rp-card__sig { opacity: 1; }
.rp-card__sig:hover { background: #f4ecdf; }
.rp-card__sig.pulsa { background: var(--p); color: #0A0A0A; transform: scale(.94); }
.rp-card.es { border-color: var(--p); box-shadow: 0 0 0 2px rgba(176, 141, 87, .22), 0 8px 18px rgba(60, 45, 20, .12); }
.rp-card.es p { background: #f4ead8; }
.rp-card.recien p { animation: rpNota .9s ease; }
@keyframes rpNota { 30% { background: #ead7b0; } }
.rp-card.sale { opacity: 0; transform: scale(.94); transition: opacity .4s ease, transform .4s ease; }
.rp .rk-aviso { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); white-space: nowrap; }
.rp .rk-aviso.ver { transform: translate(-50%, 0); }
@container gf (max-width: 760px) {
  /* en pantallas chicas, carril de 2 columnas a la vista que sigue al vestido de Daniela (y se puede deslizar) */
  .rp__tablero { display: flex; overflow-x: auto; scrollbar-width: none; }
  .rp__tablero::-webkit-scrollbar { display: none; }
  .rp__col { flex: 0 0 calc(50% - 5px); }
  .rp .rk-aviso { display: none; }
}

/* ---------- 3 · medidas y pruebas ---------- */
.rm__tabs { flex: none; display: flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--b); }
.rm__tabs button { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 500 12px Geist, system-ui, sans-serif; color: var(--m); cursor: pointer; transition: background .3s ease, color .3s ease; }
.rm__tabs button.act { background: #0A0A0A; color: #F4F1EA; }
.rm__cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 10px; }
.rm__medidas { align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 4px 14px 6px; border-radius: 12px; background: #fff; border: 1px solid #eee5d6; }
.rm-m { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px 38px; align-items: center; gap: 5px; padding: 9px 0; border-top: 1px solid #f2ece1; font-size: 12px; }
.rm-m:nth-child(-n+2) { border-top: 0; }
.rm-m > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3a3128; }
.rm-m .gf-num { font-size: 13.5px; text-align: right; transition: color .4s ease; }
.rm-m small { font-size: 10px; color: var(--m); }
.rm-m em { justify-self: end; min-width: 0; padding: 1px 5px; border-radius: 6px; font: 600 10px/1.4 "Geist Mono", ui-monospace, monospace; font-style: normal; color: var(--oro-osc); background: #f4ead8; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.6, .5, 1); }
.rm-m em.ver { opacity: 1; transform: none; }
.rm-m.cambio .gf-num { color: var(--oro-osc); }
.rm-m.escribe .gf-num { animation: rmEscribe .5s ease; }
@keyframes rmEscribe { 30% { color: var(--p); } }
.rm__lado { align-self: start; display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #eee5d6; min-height: 290px; }
.rm__ajustes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rm__ajustes li { position: relative; padding: 7px 9px 7px 22px; border-radius: 9px; background: #faf6ee; font-size: 11.5px; line-height: 1.3; opacity: 0; transform: translateX(-6px); animation: rmAjuste .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--k) * .22s + .15s); }
.rm__ajustes li::before { content: ""; position: absolute; left: 9px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--p); }
@keyframes rmAjuste { to { opacity: 1; transform: none; } }
.rm__proxima { padding: 9px 10px; border-radius: 10px; border: 1px dashed rgba(176, 141, 87, .55); }
.rm__proxima small { display: block; font-size: 10.5px; color: var(--m); }
.rm__proxima b { font-size: 13px; font-weight: 600; }
.rm__boton { display: grid; place-items: center; height: 32px; border-radius: 10px; background: var(--p); color: #0A0A0A; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.rm__boton:hover { filter: brightness(1.05); }
.rm__boton.pulsa { transform: scale(.95); filter: brightness(.9); }
@container gf (max-width: 760px) {
  .rm__medidas { grid-template-columns: 1fr; }
  .rm-m:nth-child(n+7) { display: none; }
  .rm-m:nth-child(2) { border-top: 1px solid #f2ece1; }
  .rm__cuerpo { grid-template-columns: minmax(0, 1fr) 176px; }
  .rm__tabs button { padding: 0 8px; font-size: 11px; }
  .rm .gf__cab { display: flex; } .rm .gf__cab > div span { display: none; }
  .rm__lado { min-height: 0; } .rm__lado .rk-aviso { display: none; }
}

/* ---------- 4 · lo que vive la novia ---------- */
.rn { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #f4efe6 0%, #e9dfd0 60%, #ddd2bf 100%); }
.rn__lienzo { position: absolute; left: 0; top: 0; width: 880px; height: 660px; transform: scale(var(--s, .8)); transform-origin: 0 0; container: rn / inline-size; font-family: Geist, -apple-system, system-ui, sans-serif; color: #0A0A0A; text-align: left; }
.rn__pista { position: absolute; left: 30px; top: 12px; margin: 0; font-size: 14px; color: #6b6257; }
.rn__pista .pista__ico, .rn__vista .pista__ico { color: #8a6a35; background: rgba(176, 141, 87, .16); }
.rn__vista { position: absolute; left: 640px; top: 12px; margin: 0; transform: translateX(-50%); font-size: 14px; color: #6b6257; white-space: nowrap; }
.rn__vista .pista__ico svg { animation: none; } .rn__vista .pista__ico::after { display: none; }
/* el recibo, con su marca: así sale solo con cada abono */
.rn-recibo { width: 300px; padding: 22px 24px 18px; background: #fffdf8; border-top: 3px solid #B08D57; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); font-family: "Tenor Sans", Geist, sans-serif; color: #0A0A0A; }
.rn-recibo header { display: flex; align-items: center; gap: 10px; }
.rn-recibo header img { width: 34px; height: 34px; border-radius: 8px; }
.rn-recibo header b { display: block; font-size: 13px; font-weight: 400; letter-spacing: .24em; }
.rn-recibo header i { display: block; margin-top: 1px; font: italic 500 13px "Bodoni Moda", Didot, Georgia, serif; color: #8a6a35; }
.rn-recibo h4 { margin: 16px 0 10px; font: 500 25px/1.1 "Bodoni Moda", Didot, Georgia, serif; letter-spacing: -.01em; }
.rn-recibo dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; padding: 10px 0; border-top: 1px solid #ece3d3; border-bottom: 1px solid #ece3d3; font-size: 10.5px; }
.rn-recibo dt { color: #8C857A; letter-spacing: .12em; text-transform: uppercase; font-size: 9px; padding-top: 1px; }
.rn-recibo dd { margin: 0; }
.rn-recibo__monto { margin-top: 12px; }
.rn-recibo__monto small { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #8a6a35; }
.rn-recibo__monto b { font: 500 34px/1.1 "Bodoni Moda", Didot, Georgia, serif; letter-spacing: -.01em; }
.rn-recibo__saldo { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 10px; color: #8C857A; }
.rn-recibo footer { margin-top: 16px; padding-top: 10px; border-top: 1px solid #ece3d3; text-align: center; font: italic 12.5px "Bodoni Moda", Didot, Georgia, serif; color: #8a6a35; }
.rn__papel { position: absolute; left: 52px; top: 96px; transform: rotate(-4deg); filter: drop-shadow(0 22px 34px rgba(60, 45, 20, .22)); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.rn__papel.genera { animation: rnGenera 1.1s ease; }
@keyframes rnGenera { 30% { transform: rotate(-4deg) translateY(-8px) scale(1.02); filter: drop-shadow(0 30px 40px rgba(176, 141, 87, .45)); } }
.rn__sello { display: block; margin-top: 16px; text-align: center; font: italic 15px "Bodoni Moda", Didot, Georgia, serif; color: #8a6a35; }
.rn__vuela { position: absolute; left: 52px; top: 96px; z-index: 5; opacity: 0; pointer-events: none; }
.rn__vuela.va { animation: rnVuela 1s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes rnVuela { 0% { opacity: 0; transform: rotate(-4deg); } 12% { opacity: 1; transform: rotate(-4deg) translateY(-12px); } 70% { opacity: 1; transform: translate(430px, 60px) scale(.45) rotate(6deg); } 100% { opacity: 0; transform: translate(470px, 90px) scale(.3) rotate(8deg); } }
/* su iPhone (render que mira a la derecha), con WhatsApp */
.ip.ip--chat.ip--ricky { left: 466px; top: -36px; width: 356px; }
.wa-img { width: 214px; padding: 3px 3px 5px; }
.wa-img__vista { height: 232px; border-radius: 6px; overflow: hidden; background: #f4efe6; display: flex; justify-content: center; cursor: zoom-in; }
.wa-img__vista .rn-recibo { flex: none; margin-top: 6px; transform: scale(.68); transform-origin: 50% 0; }
.wa-img p { margin: 6px 4px 0; }
.wa__visor { position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s ease; cursor: zoom-out; }
.wa__visor.abierto { opacity: 1; pointer-events: auto; }
.wa__visor > header { position: absolute; left: 0; right: 0; top: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; }
.wa__visor > header svg { width: 11px; height: 18px; color: #fff; }
.wa__visor > header b { display: block; font-size: 13px; } .wa__visor header small { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.wa__visor-hoja { position: absolute; left: 0; right: 0; top: 140px; height: 380px; overflow: hidden; }
.wa__visor-hoja .rn-recibo { position: absolute; left: 50%; top: 0; margin-left: -150px; transform: scale(.92); transform-origin: 50% 0; }
@container rn (max-width: 760px) {
  .rn__papel, .rn__vuela, .rn__pista { display: none; }
  .ip.ip--chat.ip--ricky { left: 50%; top: -14px; width: 250px; margin-left: -125px; }
  .rn__vista { left: 50%; top: 10px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) /* 19-nov: nunca se quita el movimiento */ { .rk *, .rn * { animation: none !important; transition: none !important; } }

/* ajustes: «Lo que sigue» es una barrita debajo del saldo en todas las tarjetas (dorada en la de Daniela), así el saldo
   no se parte y se ve que se pueden tocar; las medidas con un poco más de lugar para su nombre */
.rp-card footer { display: block; }
.rp-card footer .gf-num { display: block; font-size: 11px; }
.rp-card__sig { display: block; width: 100%; margin-top: 6px; padding: 5px 0; border-radius: 7px; background: #f6f0e4; text-align: center; opacity: 1; }
.rp-card:hover .rp-card__sig { background: #efe4d0; }
.rp-card.es .rp-card__sig { background: var(--p); color: #0A0A0A; }
.rm__cuerpo { grid-template-columns: minmax(0, 1fr) 176px; }
.rm__medidas { gap: 0 12px; padding: 4px 12px 6px; }
.rm-m { grid-template-columns: minmax(0, 1fr) auto 14px 34px; gap: 4px; font-size: 11.5px; }
.rm__boton { padding: 0 8px; text-align: center; }

/* (18-nov) «Vista de cliente» centrada sobre el borde de arriba del teléfono */
.rn__vista { left: 626px; }
@container rn (max-width: 760px) { .rn__vista { left: 50%; top: 10px; } }

/* (18-nov) esquinas redondeadas tipo Apple, como las demás escenas */
.rn { border-radius: 22px; }
