/* ALIBABA · Diseño negro
   Fondo negro, grises para tarjetas, amarillo para botones y acción principal,
   gris para deudas y verde para abonos. */
:root {
  --fondo: #000000;
  --fondo-2: #0A0A0A;
  --tarjeta: #121212;
  --elevada: #1C1C1C;
  --linea: #262626;
  --borde: #343434;
  --pista: #222222;
  --texto: #F5F5F5;
  --suave: #A3A3A3;
  --tenue: #737373;

  /* negro y grises del logo, con AMARILLO para botones y lo importante */
  --ambar: #FFC727;
  --ambar-2: #FFD95C;
  --ambar-hondo: #FFB000;
  --sobre-ambar: #1A1300;
  --sobre-ambar-suave: #5C4A10;
  --naranja: #E8876C;
  --humo: #B8B8B8;

  --deuda: #C9C9C9;
  --alerta: #F07A72;
  --alerta-tinte: rgba(240, 122, 114, .12);
  --alerta-filo: rgba(240, 122, 114, .32);
  --amarillo-btn: #FFC727;
  --deuda-tinte: rgba(238, 138, 114, .12);
  --deuda-filo: rgba(238, 138, 114, .32);
  --abono: #86D3A8;
  --abono-tinte: rgba(134, 211, 168, .12);
  --abono-filo: rgba(134, 211, 168, .32);
  --ambar-tinte: rgba(255, 199, 39, .1);
  --ambar-filo: rgba(255, 199, 39, .32);
  /* burbujas del chat */
  --burbuja-mia: #3A3A3A;
  --burbuja-suya: #1A1A1A;
  --texto-mio: #F5F5F5;
  --rojo: #F2555A;

  /* nombres viejos que todavía usa la app */
  --amarillo: var(--ambar);
  --amarillo-claro: var(--ambar-2);
  --sobre-amarillo: var(--sobre-ambar);
  --sobre-amarillo-suave: var(--sobre-ambar-suave);

  --radio: 20px;
  --radio-chico: 14px;
  --abajo: env(safe-area-inset-bottom, 0px);
  --titulos: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
  /* un poco de "humo" de fondo, fijo */
  background:
    radial-gradient(120% 60% at 100% -10%, rgba(255, 255, 255, .05), transparent 60%),
    radial-gradient(90% 50% at -10% 0%, rgba(255, 255, 255, .02), transparent 55%),
    var(--fondo);
  background-attachment: fixed;
}
a { color: var(--ambar); }
a:hover { color: var(--ambar-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
h1, h2, p { margin: 0; }
h1 { font-family: var(--titulos); font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-family: var(--titulos); font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.muted { color: var(--suave); font-size: 14px; }
.grande { font-size: 22px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.pantalla { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 16px calc(112px + var(--abajo)); }
.pantalla.sin-nav { padding-bottom: calc(28px + var(--abajo)); }

/* ---------- Cabeceras ---------- */
.top { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.top .titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top .titulo strong { font-family: var(--titulos); font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.top .titulo span { font-size: 13px; color: var(--suave); }
.top .titulo strong.titulo-grande { font-size: 32px; font-weight: 750; letter-spacing: -.03em; }
.fijo-arriba {
  position: sticky; top: 0; z-index: 5;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  margin: calc(-1 * max(18px, env(safe-area-inset-top))) -16px 0;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid var(--linea);
}

/* ---------- Botones ---------- */
.btn {
  min-height: 54px; border: 1px solid transparent; border-radius: 16px; padding: 0 20px;
  font-weight: 700; font-size: 16px; letter-spacing: .005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
  transition: transform .12s ease, background-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn.primario {
  background: linear-gradient(180deg, var(--ambar-2), var(--ambar) 55%, var(--ambar-hondo));
  color: var(--sobre-ambar);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 24px -12px rgba(255, 199, 39, .7);
}
.btn.primario:hover { color: var(--sobre-ambar); filter: brightness(1.05); }
/* botones de color "teñido": fondo suave del color y letras del color */
.btn.deuda { background: rgba(255, 199, 39, .13); border-color: rgba(255, 199, 39, .4); color: var(--amarillo-btn); }
.btn.abono { background: var(--abono-tinte); border-color: var(--abono-filo); color: var(--abono); }
.btn.deuda:hover { color: var(--amarillo-btn); background: rgba(255, 199, 39, .2); }
.btn.abono:hover { color: var(--abono); background: rgba(63, 216, 164, .2); }
.btn.deuda svg, .btn.abono svg { width: 26px; height: 26px; padding: 4px; border-radius: 9px; background: currentColor; stroke: var(--fondo); stroke-width: 3; }
.btn.borde { background: var(--elevada); border-color: var(--borde); color: var(--texto); font-weight: 600; }
.btn.borde:hover { background: #262626; color: var(--texto); }
.btn.peligro { background: transparent; border-color: rgba(242, 85, 90, .4); color: #FF8A8E; font-weight: 600; margin-top: 8px; }
.btn.chico { min-height: 42px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.ancho { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.icono {
  width: 44px; height: 44px; flex: none; border-radius: 14px; border: 1px solid var(--linea);
  background: var(--tarjeta); color: var(--texto);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform .12s ease, background-color .15s;
}
.icono:hover { background: var(--elevada); color: var(--texto); }
.icono:active { transform: scale(.94); }
.icono.sin-borde { border: 0; background: transparent; }
.icono.lleno { border: 0; background: linear-gradient(180deg, var(--ambar-2), var(--ambar)); color: var(--sobre-ambar); box-shadow: 0 8px 20px -10px rgba(255, 199, 39, .8); }
.icono[disabled] { opacity: .4; }
.icono.chico-icono { width: 40px; height: 40px; border-radius: 12px; }
.btn-llamar { min-height: 44px; padding: 0 16px; border-radius: 14px; background: linear-gradient(180deg, var(--ambar-2), var(--ambar)); color: var(--sobre-ambar); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-llamar:hover { color: var(--sobre-ambar); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
label.campo { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--suave); }
.input {
  min-height: 54px; width: 100%; border: 1px solid var(--linea); border-radius: var(--radio-chico); padding: 0 16px;
  font-size: 17px; background: var(--fondo-2); color: var(--texto);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--ambar-filo); box-shadow: 0 0 0 4px var(--ambar-tinte); }
.input::placeholder { color: var(--tenue); }
.input.monto { min-height: 72px; font-family: var(--titulos); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
textarea.input { padding: 14px 16px; min-height: 54px; resize: none; line-height: 1.4; }
input[type=date].input { color-scheme: dark; }
.error { color: var(--alerta); font-size: 14px; font-weight: 500; }
.error:empty { display: none; }
.ayuda { font-size: 14px; color: var(--suave); text-align: center; }
.segmento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--fondo-2); border: 1px solid var(--linea); border-radius: 16px; padding: 4px; }
.segmento > * { min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; color: var(--suave); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color .15s, color .15s; }
.segmento > .on { background: var(--elevada); color: var(--texto); font-weight: 700; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .6); }
.segmento > .on.deuda { background: rgba(255, 199, 39, .13); color: var(--amarillo-btn); }
.segmento > .on.abono { background: var(--abono-tinte); color: var(--abono); }
.buscar { position: relative; }
.buscar svg { position: absolute; left: 15px; top: 17px; color: var(--tenue); pointer-events: none; }
.buscar .input { padding-left: 46px; border-radius: 16px; }
/* contraseña con ojito */
.con-ojo { position: relative; display: block; }
.con-ojo .input { padding-right: 56px; }
.con-ojo .ojo { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; }
.con-ojo .ojo:hover, .con-ojo .ojo[aria-pressed=true] { color: var(--ambar); }

/* ---------- Tarjetas y listas ---------- */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); }
.tarjeta.pad { padding: 18px; }
.tarjeta > h2 + * { margin-top: 10px; }
.lista { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); display: flex; flex-direction: column; overflow: hidden; }
.fila { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--linea); color: var(--texto); text-decoration: none; min-height: 66px; }
.fila:last-child { border-bottom: 0; }
a.fila { transition: background-color .15s; }
a.fila:hover, a.fila:active { background: var(--elevada); color: var(--texto); }
.fila .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fila .info strong { font-size: 16px; font-weight: 650; }
.fila .info span { font-size: 13px; color: var(--suave); }
.fila .monto { font-family: var(--titulos); font-weight: 650; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-deuda { color: var(--deuda); }
.c-abono { color: var(--abono); }
.vacio { padding: 22px 16px; color: var(--suave); text-align: center; font-size: 15px; }
.titulo-fila { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.items { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--suave); }
.burbuja-num { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ambar); color: var(--sobre-ambar); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.burbuja-num[hidden] { display: none; }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.resumen { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip { flex: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.chip-espera { background: var(--ambar-tinte); color: var(--ambar); border-color: var(--ambar-filo); }
.chip-ok { background: var(--abono-tinte); color: var(--abono); border-color: var(--abono-filo); }
.chip-mal { background: var(--alerta-tinte); color: var(--alerta); border-color: var(--alerta-filo); }

/* ---------- La tarjeta grande del saldo ("aceite en humo") ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 22px 22px 20px;
  background: linear-gradient(160deg, #1D1D1D 0%, #121212 55%, #0C0C0C 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .9);
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(38px); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); }
.hero::after { width: 260px; height: 160px; left: -80px; bottom: -90px; background: radial-gradient(circle, rgba(160, 160, 160, .12), rgba(160, 160, 160, 0) 70%); }
.hero-etq { font-size: 15px; font-weight: 600; color: var(--suave); }
.hero-monto { font-family: var(--titulos); font-size: 46px; line-height: 1.05; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.hero-pie { font-size: 14px; color: var(--suave); }
.hero .linea-acuerdos { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.linea-acuerdos { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ambar); }
.saldo-card { gap: 2px; }

/* ---------- Avisos ---------- */
.aviso { background: var(--ambar-tinte); border: 1px solid var(--ambar-filo); border-radius: var(--radio); padding: 16px; color: #E6E6E6; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.aviso > svg { flex: none; color: var(--ambar); margin-top: 1px; }
.aviso strong { display: block; color: var(--texto); font-size: 15px; margin-bottom: 2px; }
.aviso .acciones { display: flex; gap: 8px; flex: none; }
a.aviso-enlace { text-decoration: none; align-items: center; transition: transform .12s ease; }
a.aviso-enlace:active { transform: scale(.98); }
a.aviso-enlace:hover { color: #E6E6E6; }
.solicitud { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.solicitud + .solicitud { border-top: 1px solid var(--ambar-filo); padding-top: 10px; }
.btn.rechazar { background: transparent; border: 1px solid var(--ambar-filo); color: #E6E6E6; }

/* ---------- Marca / entrar ---------- */
.marca { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.logo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(150deg, #1F1F1F, #0E0E0E); border: 1px solid rgba(255, 255, 255, .08); color: var(--ambar); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 32px -18px rgba(255, 255, 255, .55); }
.logo img { display: block; }
.marca h1 { font-size: 36px; margin-top: 10px; letter-spacing: -.035em; }
.marca p { color: var(--suave); }
.entrar .aviso { background: var(--tarjeta); border-color: var(--linea); color: var(--suave); }

/* ---------- Navegación inferior (flotante) ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 12px calc(10px + var(--abajo)); pointer-events: none; }
.nav .dentro {
  pointer-events: auto; max-width: 440px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: rgba(24, 24, 24, .88); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85);
}
.nav a { min-height: 58px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--suave); text-decoration: none; position: relative; transition: background-color .15s, color .15s; }
.nav a.on { color: var(--ambar); font-weight: 700; background: var(--ambar-tinte); }
.nav a .burbuja-num { position: absolute; top: 5px; left: calc(50% + 6px); box-shadow: 0 0 0 2px #181818; }

/* ---------- Fotos, videos y audios en el chat (sin opción de guardar) ---------- */
.media { position: relative; margin: -3px -6px 4px; border-radius: 10px; overflow: hidden; background: #000; min-height: 120px; min-width: 180px; display: flex; align-items: center; justify-content: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.media img { display: block; max-width: 100%; max-height: 320px; width: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.media .tapa { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: zoom-in; }
.media video { display: block; width: 100%; max-height: 320px; background: #000; }
.media .cargando-media, .media.vencida { color: var(--suave); font-size: 13px; padding: 16px; display: flex; align-items: center; gap: 6px; }
.media.audio { background: rgba(0, 0, 0, .18); min-height: 56px; min-width: 240px; margin: -2px -6px 4px; border-radius: 14px; }
.media.audio audio { width: 100%; height: 44px; display: block; }
.msg.mio .media.audio { background: rgba(28, 18, 6, .12); }
.voz-dur { font-size: 13px; opacity: .8; }
.msg.mio .media.vencida { color: var(--sobre-ambar-suave); }
.media.vencida { background: transparent; min-height: 0; min-width: 0; margin: 0 0 4px; padding: 0; }
.msg.elegido { outline: 2px solid var(--texto); outline-offset: 2px; }
.borrar-msg { align-self: flex-end; margin-top: -4px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(242, 85, 90, .45); background: rgba(242, 85, 90, .12); color: #FF8A8E; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.adjuntar { width: 44px; height: 48px; color: var(--suave); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.adjuntar input { display: none; }
.subiendo { align-self: flex-end; font-size: 13px; color: var(--suave); background: var(--pista); padding: 8px 12px; border-radius: 12px; }
.visor { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .96); display: flex; align-items: center; justify-content: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.visor[hidden] { display: none; }
.visor img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.visor .tapa { position: absolute; inset: 0; background: transparent; border: 0; }
.visor .cerrar-visor { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; }

/* ---------- Candado con PIN ---------- */
.candado {
  position: fixed; inset: 0; z-index: 45;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%), radial-gradient(70% 40% at 50% 100%, rgba(255, 255, 255, .08), transparent 70%), var(--fondo);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 24px calc(24px + var(--abajo)); text-align: center;
}
.candado[hidden] { display: none; }
body.bloqueada #app, body.bloqueada .nav, body.bloqueada .escribir { visibility: hidden; }
.candado h1 { font-size: 26px; }
.candado p { color: var(--suave); max-width: 300px; }
.puntos { display: flex; gap: 18px; }
.puntos span { width: 14px; height: 14px; border-radius: 7px; background: var(--pista); transition: background-color .15s, transform .15s; }
.puntos span.lleno { background: var(--ambar); transform: scale(1.15); box-shadow: 0 0 12px rgba(255, 199, 39, .6); }
.puntos.error { animation: sacudir .35s; }
.puntos.error span.lleno { background: var(--alerta); box-shadow: none; }
@keyframes sacudir { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.teclado { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 22px; }
.teclado button { width: 76px; height: 76px; border-radius: 38px; border: 1px solid var(--linea); background: rgba(34, 34, 34, .75); font-family: var(--titulos); font-size: 30px; font-weight: 500; color: var(--texto); transition: background-color .1s, transform .1s; }
.teclado button:active { background: var(--ambar-tinte); border-color: var(--ambar-filo); transform: scale(.95); }
.teclado .vacio-tecla { visibility: hidden; }
.teclado .tecla-borrar { background: transparent; border: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--suave); }
.enlace-boton { background: none; border: 0; color: var(--ambar); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.boton-huella { min-width: 200px; }
.captcha { min-height: 70px; display: flex; justify-content: center; }

/* ---------- Pantalla de llamada ---------- */
.llamada {
  position: fixed; inset: 0; z-index: 50;
  background: radial-gradient(90% 55% at 50% 22%, rgba(255, 255, 255, .09), transparent 70%), radial-gradient(80% 40% at 50% 100%, rgba(255, 255, 255, .1), transparent 70%), #000000;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(64px + env(safe-area-inset-top)) 24px calc(48px + var(--abajo)); text-align: center;
}
.llamada[hidden] { display: none; }
.llamada .quien { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.llamada .cara { width: 116px; height: 116px; border-radius: 58px; background: linear-gradient(150deg, var(--ambar-2), var(--ambar-hondo)); color: var(--sobre-ambar); display: flex; align-items: center; justify-content: center; font-family: var(--titulos); font-size: 50px; font-weight: 700; }
.llamada.sonando .cara { animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 199, 39, .5); } 50% { box-shadow: 0 0 0 24px rgba(255, 199, 39, 0); } }
.llamada h2 { font-size: 32px; letter-spacing: -.02em; }
.llamada .estado { color: var(--suave); font-size: 17px; min-height: 24px; font-variant-numeric: tabular-nums; }
.llamada .botones { display: flex; gap: 40px; justify-content: center; }
.llamada .boton-llamada { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--suave); background: none; border: 0; }
.llamada .boton-llamada span.circulo { width: 72px; height: 72px; border-radius: 36px; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.llamada .boton-llamada:active span.circulo { transform: scale(.93); }
.circulo.rojo { background: var(--rojo); color: #fff; box-shadow: 0 12px 28px -12px rgba(242, 85, 90, .8); }
.circulo.verde { background: #2FBF7F; color: #fff; box-shadow: 0 12px 28px -12px rgba(47, 191, 127, .8); }
.circulo.gris { background: rgba(255, 255, 255, .1); color: var(--texto); }
.circulo.gris.activo { background: var(--texto); color: var(--sobre-ambar); }
.colgar-icono { transform: rotate(135deg); }
.pastilla-llamada { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--suave); background: var(--tarjeta); border: 1px solid var(--linea); padding: 6px 12px; border-radius: 999px; }
.pastilla-llamada.perdida { color: var(--alerta); border-color: var(--alerta-filo); }

/* avatares: cada persona con su color */
.avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(150deg, #2A2A2A, #171717); color: var(--texto); display: inline-flex; align-items: center; justify-content: center; font-family: var(--titulos); font-weight: 650; font-size: 19px; }
.avatar.con-aviso { box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--ambar); }
.avatar-num { position: absolute; top: -7px; right: -8px; border: 2px solid var(--tarjeta); height: 24px; min-width: 24px; }
.no-leido { color: var(--texto) !important; font-weight: 600; }

/* ---------- Chat (estilo WhatsApp) ---------- */
.pantalla-chat {
  /* fondo con puntitos muy suaves, como el "papel tapiz" de WhatsApp */
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px), radial-gradient(rgba(255, 199, 39, .035) 1px, transparent 1.2px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px;
}
.chat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 2px 10px; }
.dia { align-self: center; font-size: 12px; font-weight: 600; color: var(--suave); background: var(--burbuja-suya); padding: 5px 12px; border-radius: 10px; margin: 10px 0 6px; }
.chat > .vacio { align-self: center; margin-top: 30px; background: var(--burbuja-suya); border-radius: 12px; padding: 12px 16px; }
.msg { position: relative; max-width: 82%; padding: 6px 9px 6px 10px; border-radius: 12px; font-size: 16px; line-height: 1.35; }
.msg:not(.seguido) { margin-top: 6px; }
.msg::after { content: ''; display: block; clear: both; }
.msg .texto { white-space: pre-wrap; }
.msg time { float: right; position: relative; top: 5px; margin-left: 10px; font-size: 11px; line-height: 1; white-space: nowrap; }
.msg.mio { align-self: flex-end; background: linear-gradient(160deg, #4A4A4A, #262626); color: var(--texto-mio); }
.msg.mio time { color: rgba(245, 245, 245, .62); }
.msg.suyo { align-self: flex-start; background: var(--burbuja-suya); color: var(--texto); }
.msg.suyo time { color: var(--suave); }
/* la "colita" de la burbuja, solo en el primer mensaje de cada grupo */
.msg.mio:not(.seguido) { border-top-right-radius: 0; }
.msg.suyo:not(.seguido) { border-top-left-radius: 0; }
.msg:not(.seguido)::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.msg.mio:not(.seguido)::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); background: #444; }
.msg.suyo:not(.seguido)::before { left: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.msg.mio .media.vencida { color: rgba(245, 245, 245, .7); }

/* llamadas dentro del chat */
.msg.msg-llamada { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 8px 10px; }
.msg-llamada::after { display: none; }
.llamada-ico { flex: none; width: 38px; height: 38px; border-radius: 19px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--abono); }
.msg.mio .llamada-ico { background: rgba(0, 0, 0, .22); color: var(--ambar-2); }
.msg-llamada.perdida .llamada-ico { color: var(--alerta); }
.msg-llamada > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-llamada strong { font-size: 15px; font-weight: 600; }
.msg-llamada.perdida strong { color: var(--alerta); }
.msg-llamada > div span { font-size: 13px; opacity: .7; }
.msg-llamada time { float: none; top: 0; align-self: flex-end; }

/* notas de voz: reproductor con onda, velocidad 1x · 1.5x · 2x */
.msg.voz-msg { min-width: min(285px, 82%); padding: 6px 8px 18px; }
.msg.voz-msg time { position: absolute; right: 10px; bottom: 5px; top: auto; float: none; }
.voz { display: flex; align-items: center; gap: 6px; }
.voz-play { flex: none; width: 40px; height: 40px; border: 0; border-radius: 20px; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.voz-play svg { fill: currentColor; }
.voz-play[disabled] { opacity: .35; cursor: default; }
.voz-cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.voz-onda { height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: manipulation; }
.voz-onda i { flex: 1; min-height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); pointer-events: none; transition: background-color .1s; }
.msg.mio .voz-onda i { background: rgba(245, 245, 245, .3); }
.voz-onda i.on, .msg.mio .voz-onda i.on { background: var(--ambar); }
.voz-t { position: absolute; left: 56px; bottom: 5px; font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
.voz-vel { flex: none; min-width: 40px; height: 26px; padding: 0 6px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, .12); color: inherit; font-size: 12px; font-weight: 700; }
.msg.mio .voz-vel { background: rgba(0, 0, 0, .25); }
.voz-oreja { flex: none; width: 32px; height: 32px; border: 0; border-radius: 16px; background: transparent; font-size: 17px; opacity: .45; padding: 0; }
.voz-oreja.on { opacity: 1; background: rgba(255, 199, 39, .25); }

/* cabecera del chat: foto, nombre, llamar y ⋮ */
.fijo-arriba.top { gap: 2px; }
.atras-chat { width: 36px; margin-left: -6px; }
.quien-chat { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; }
.quien-chat:hover { color: var(--texto); }
.quien-chat .avatar { width: 40px; height: 40px; border-radius: 20px; font-size: 17px; }
.quien-chat .titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quien-chat .titulo strong { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quien-chat .titulo span { font-size: 12.5px; color: var(--suave); }
.avatar-logo { background: #000; border: 1px solid var(--linea); overflow: hidden; }

/* barra de escribir: [😊 Mensaje 📎 📷] (🎤) */
.escribir { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(0, 0, 0, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 6px 6px calc(6px + var(--abajo)); }
.escribir form { max-width: 560px; margin: 0 auto; display: flex; gap: 6px; align-items: flex-end; position: relative; }
.caja-escribir { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--burbuja-suya); border-radius: 25px; padding: 0 4px; min-height: 50px; }
.caja-escribir textarea { flex: 1; min-width: 0; min-height: 50px; max-height: 140px; border: 0; background: transparent; color: var(--texto); padding: 14px 4px 13px; font-size: 17px; line-height: 1.35; resize: none; outline: none; }
.caja-escribir textarea::placeholder { color: var(--tenue); }
.btn-ico { flex: none; width: 40px; height: 50px; border: 0; background: transparent; color: var(--suave); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 20px; }
.btn-ico:hover, .btn-ico[aria-expanded=true] { color: var(--ambar); }
.btn-ico input { display: none; }
.caja-escribir .adjuntar { width: 40px; height: 50px; }
.redondo { flex: none; width: 50px; height: 50px; border: 0; border-radius: 25px; background: var(--ambar); color: var(--sobre-ambar); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -10px rgba(255, 199, 39, .8); transition: transform .12s; }
.redondo:active { transform: scale(.92); }
/* el cuadrito de la cámara se esconde mientras escribe, como en WhatsApp */
.escribir form:has(.redondo.enviar) .caja-escribir label.btn-ico { display: none; }
.panel-emojis { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 12; max-height: 270px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 2px; padding: 8px; background: var(--elevada); border: 1px solid var(--borde); border-radius: 20px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.panel-emojis[hidden] { display: none; }
.panel-emojis button { height: 44px; border: 0; background: transparent; border-radius: 12px; font-size: 26px; line-height: 1; padding: 0; }
.panel-emojis button:active { background: rgba(255, 255, 255, .08); }
/* grabando nota de voz */
.grabando { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--burbuja-suya); border-radius: 25px; padding: 0 0 0 4px; }
.grabando .icono { width: 50px; height: 50px; border-radius: 25px; }
.grabando .icono:not(.lleno) { border: 0; background: transparent; color: var(--alerta); }
.grabando .muted { flex: 1; }
.punto-rojo { width: 10px; height: 10px; border-radius: 5px; background: var(--rojo); animation: titila 1s ease-in-out infinite; }
@keyframes titila { 50% { opacity: .25; } }
.grabando .tiempo { font-family: var(--titulos); font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Carrito ---------- */
.resultado { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--linea); }
.resultado:last-child { border-bottom: 0; }
.cant { display: flex; align-items: center; gap: 6px; }
.cant button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--borde); background: var(--elevada); font-weight: 700; font-size: 18px; }
.cant span { min-width: 22px; text-align: center; font-weight: 700; }
.sub-total { min-width: 72px; text-align: right; font-weight: 700; }

/* ---------- Pagos por SINPE ---------- */
.paso-tarjeta { display: flex; flex-direction: column; gap: 12px; }
.paso-cab { display: flex; align-items: center; gap: 12px; }
.paso { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ambar-tinte); border: 1px solid var(--ambar-filo); color: var(--ambar); font-family: var(--titulos); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sinpe-num { font-family: var(--titulos); font-size: 40px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.subir-foto { position: relative; min-height: 64px; border: 1.5px dashed var(--borde); border-radius: var(--radio-chico); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--texto); font-weight: 600; background: var(--fondo-2); }
.subir-foto svg { color: var(--ambar); }
.subir-foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vista-previa { width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--radio-chico); background: #000; }
.vista-previa[hidden] { display: none; }
.pago { display: flex; flex-direction: column; gap: 12px; }
.pago-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pago-cab > div { display: flex; flex-direction: column; }
.pago-monto { font-family: var(--titulos); font-size: 24px; font-weight: 700; color: var(--abono); }
.pago-nota { color: var(--suave); font-style: italic; }
.media.comprobante { margin: 0; min-height: 160px; border-radius: var(--radio-chico); }

/* ---------- Acuerdos de pago ---------- */
.acuerdo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-top: 10px; border-radius: var(--radio-chico); background: var(--fondo-2); border: 1px solid var(--linea); border-left: 4px solid var(--borde); }
.acuerdo.acu-hoy { border-left-color: var(--ambar); }
.acuerdo.acu-vencido { border-left-color: var(--alerta); }
.acuerdo.acu-futuro { border-left-color: var(--humo); }
.acuerdo-info { display: flex; flex-direction: column; min-width: 0; }
.acuerdo-info strong { font-family: var(--titulos); font-size: 18px; }
.acuerdo-info span { font-size: 13px; color: var(--suave); }
.acu-vencido .acuerdo-info span { color: var(--alerta); }
.acuerdo-botones { display: flex; gap: 6px; align-items: center; width: 100%; }
.acuerdo-botones .btn { flex: 1; }
.acuerdo-linea { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.fila .info .acuerdo-linea.acu-hoy { color: var(--ambar); }
.fila .info .acuerdo-linea.acu-vencido { color: var(--alerta); }
.fila .info .acuerdo-linea.acu-futuro { color: var(--humo); }
.nuevo-acuerdo { margin-top: 12px; }
.nuevo-acuerdo > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ambar); }
.nuevo-acuerdo[open] > summary { margin-bottom: 8px; }

/* ---------- Varios ---------- */
.cargando { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--suave); padding: 40px 16px; min-height: 60dvh; }
.rueda { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--pista); border-top-color: var(--ambar); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(108px + var(--abajo)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--texto); color: var(--sobre-ambar); padding: 13px 18px; border-radius: 16px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .8); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.mal { background: var(--alerta); color: #1F0806; }
details.plegable > summary { list-style: none; cursor: pointer; }
details.plegable > summary::-webkit-details-marker { display: none; }
.nota-pie { font-size: 13px; color: var(--tenue); text-align: center; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 48px; }
.check input { width: 22px; height: 22px; accent-color: var(--ambar); }
.menu-adjuntar { position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 12; background: var(--elevada); border: 1px solid var(--borde); border-radius: 20px; padding: 6px; display: flex; flex-direction: column; min-width: 250px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.menu-adjuntar[hidden] { display: none; }
.menu-adjuntar label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 600; cursor: pointer; color: var(--texto); }
.menu-adjuntar label:hover { background: rgba(255, 255, 255, .05); }
.menu-adjuntar label svg { color: var(--ambar); }
.menu-adjuntar input { display: none; }
button.adjuntar { border: 0; background: transparent; }
.fila-sel { width: 100%; border: 0; border-bottom: 1px solid var(--linea); background: transparent; text-align: left; font: inherit; color: inherit; }
.fila-sel.marcada { background: var(--ambar-tinte); }
.marca-sel { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--borde); display: inline-flex; align-items: center; justify-content: center; color: var(--sobre-ambar); }
.marca-sel.on { background: var(--ambar); border-color: var(--ambar); }
.btn.borrar-rojo { background: var(--rojo); color: #fff; }
.btn.borrar-rojo[disabled] { opacity: .45; cursor: default; }
a[data-chat-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ajuste { display: flex; flex-direction: column; gap: 12px; }
.ajuste select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ajuste select.input:disabled { opacity: .5; }
.interruptor { justify-content: space-between; flex-direction: row-reverse; padding: 4px 0; border-top: 1px solid var(--linea); }
.ok-verde { color: var(--abono); }
p.chico { font-size: 13px; margin-top: -4px; }

@media (prefers-reduced-motion: reduce) {
  .rueda { animation-duration: 2s; }
  .toast, .btn, .icono, .nav a { transition: none; }
  .llamada.sonando .cara, .punto-rojo { animation: none; }
}
.dos > .btn.deuda, .dos > .btn.abono { white-space: nowrap; padding: 0 12px; font-size: 15px; gap: 8px; }
/* pantalla de entrar: logo y nombre al centro */
.entrar .marca, .pantalla.sin-nav > .marca { align-items: center; text-align: center; }
.logo.logo-grande { width: 88px; height: 88px; border-radius: 26px; }
.logo-nombre { width: min(300px, 78vw); height: auto; display: block; margin: 0 auto 4px; }
/* ---------- Menú de 3 puntos (⋮) ---------- */
.menu-puntos { position: relative; flex: none; }
.menu-lista { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 230px; padding: 6px 0; background: var(--elevada); border: 1px solid var(--borde); border-radius: 16px; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .9); display: flex; flex-direction: column; transform-origin: top right; animation: abrir-menu .14s ease-out; }
.menu-lista[hidden] { display: none; }
.menu-lista > a, .menu-lista > button { display: flex; align-items: center; min-height: 50px; padding: 0 20px; border: 0; background: transparent; color: var(--texto); font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; }
.menu-lista > a:hover, .menu-lista > button:hover, .menu-lista > a:active, .menu-lista > button:active { background: rgba(255, 255, 255, .06); color: var(--texto); }
@keyframes abrir-menu { from { opacity: 0; transform: scale(.92); } }

/* ---------- Ajustes ---------- */
.perfil-ajustes { display: flex; align-items: center; gap: 14px; }
.perfil-ajustes .avatar { width: 58px; height: 58px; border-radius: 29px; font-size: 24px; }
.perfil-ajustes > div { display: flex; flex-direction: column; min-width: 0; }
.perfil-ajustes strong { font-family: var(--titulos); font-size: 19px; }
.fila-ajuste > svg:last-child { color: var(--tenue); flex: none; }
.ico-ajuste { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ambar-tinte); color: var(--ambar); display: inline-flex; align-items: center; justify-content: center; }
.subir-tono { min-height: 54px; font-size: 15px; }

/* iPhone: que tocar rápido dos veces (por ejemplo el PIN) no haga zoom */
html, body, a, button, label, input, select, textarea, summary { touch-action: manipulation; }
.teclado, .teclado button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* privacidad: al salir de la app todo se pone borroso */
body.privado #app, body.privado .nav, body.privado .escribir, body.privado .visor { filter: blur(26px); }

/* ---------- Privacidad: marca de agua, ver una vez, visto, ubicación ---------- */
.marca-agua { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--marca-agua); background-repeat: repeat; background-size: 230px 150px; }
.visor .marca-agua { position: fixed; z-index: 1; }
.media.con-video { min-height: 160px; }
.media.con-video video { pointer-events: none; }
.video-play { position: absolute; inset: 0; z-index: 3; border: 0; background: rgba(0, 0, 0, .25); color: #fff; display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 58px; height: 58px; padding: 14px 12px 14px 16px; border-radius: 50%; background: rgba(0, 0, 0, .55); fill: currentColor; }
.media.sonando .video-play { background: transparent; }
.media.sonando .video-play svg { opacity: 0; }
.video-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .2); pointer-events: none; }
.video-barra i { display: block; height: 100%; width: 0; background: var(--ambar); }
.visor video { max-width: 100%; max-height: 100%; }
.aviso-una-vez { position: absolute; left: 50%; bottom: calc(24px + var(--abajo)); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; white-space: nowrap; pointer-events: none; }
.uno { flex: none; width: 22px; height: 22px; border-radius: 11px; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1; }
.una-vez { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 2px 4px 2px 2px; font-weight: 600; font-size: 15px; }
.una-vez.abierta { opacity: .65; font-weight: 500; }
.btn-una-vez { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 0; padding: 0 6px 0 2px; background: transparent; color: var(--ambar); font-weight: 700; font-size: 15px; }
.msg time .reloj-msg { display: inline-flex; vertical-align: -1px; margin-right: 3px; opacity: .85; }
.msg time .tilde { margin-left: 3px; letter-spacing: -2px; }
.msg time .tilde.visto { color: var(--ambar); }
.visto-linea { display: block; clear: both; font-size: 11px; text-align: right; margin-top: 7px; color: var(--ambar-2); opacity: .9; }
.msg.voz-msg .visto-linea { position: absolute; right: 10px; bottom: -16px; }
.msg.voz-msg:has(.visto-linea) { margin-bottom: 16px; }
.ubic { display: flex; gap: 10px; align-items: flex-start; padding: 4px 2px; min-width: 220px; }
.ubic > svg, .ubic-pin { flex: none; color: var(--ambar); }
.ubic-pin { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 199, 39, .15); display: inline-flex; align-items: center; justify-content: center; }
.ubic > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ubic strong { font-size: 15px; }
.ubic span { font-size: 12px; opacity: .7; }
.ubic-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ubic-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.msg.mio .ubic-links a { background: rgba(0, 0, 0, .25); }
/* menú del clip: botón de ubicación y "ver una vez" */
.menu-adjuntar > button { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--texto); font-weight: 600; text-align: left; }
.menu-adjuntar > button svg { color: var(--ambar); }
.menu-adjuntar > button:hover { background: rgba(255, 255, 255, .05); }
.menu-adjuntar .interruptor-una-vez { border-top: 1px solid var(--linea); margin-top: 4px; padding-top: 6px; min-height: 60px; }
.interruptor-una-vez .uno { color: var(--ambar); }
.interruptor-una-vez > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.interruptor-una-vez small { font-size: 12px; color: var(--suave); font-weight: 500; }
.menu-adjuntar .interruptor-una-vez input { display: block; width: 22px; height: 22px; accent-color: var(--ambar); }
.caja-escribir.una-vez-on { box-shadow: inset 0 0 0 2px var(--ambar); }
.check-fila { cursor: pointer; }
.check-fila input { width: 22px; height: 22px; flex: none; accent-color: var(--ambar); }
.consejo-llamada { max-width: 280px; margin: 4px auto 0; font-size: 13px; color: var(--tenue); text-align: center; }
.cant-medida { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--suave); }
.cant-input { width: 66px; height: 40px; border-radius: 10px; border: 1px solid var(--borde); background: var(--fondo-2); color: var(--texto); text-align: center; font-size: 16px; font-weight: 700; }
.cant-input:focus { outline: none; border-color: var(--ambar-filo); box-shadow: 0 0 0 3px var(--ambar-tinte); }
/* compartir desde la galería */
.previas-compartir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.previas-compartir img, .previa-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--elevada); }
.previa-video { display: flex; align-items: center; justify-content: center; color: var(--texto); }
.previa-video svg { fill: currentColor; }
[data-lista-compartir] [hidden] { display: none; }
[data-lista-compartir] .fila > svg:last-child { color: var(--ambar); flex: none; }
/* productos por kilo/litro: la cantidad baja a su propia línea para que el nombre se lea bien */
.resultado:has(.cant-medida) { flex-wrap: wrap; row-gap: 8px; }
.resultado:has(.cant-medida) > div:first-child { flex: 1 1 100% !important; }
.resultado:has(.cant-medida) .cant { margin-right: auto; }
