/* =====================================================================
   Pymax · lo propio de Servicios, Pymes, Comercios y Profesionales
   (servicios.html, pymes.html, comercios.html, profesionales.html).
   Lo compartido de todo el sitio está en estilos.css: acá va solo lo de estas cuatro páginas.
   Lo que se mueve lo hacen js/servicios.js, js/escenas.js (recibos) y js/animacion.js (facturas).
   ===================================================================== */

/* ---------- Detalles de las pantallas de estas páginas ---------- */
.chip[data-estado="yendo"] { background: var(--info-f); color: var(--info); }
.ventana__pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 20px; border-top: 1px solid #e8ecee; background: #fbfcfc; color: var(--tinta-2); font-size: 12px; }
.ventana__pie b { color: var(--tinta); font-weight: 600; font-variant-numeric: tabular-nums; }
.vivo { display: inline-flex; align-items: center; gap: 8px; }
.vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .vivo::before { animation: latido-vivo 2s ease-out infinite; } }
@keyframes latido-vivo { 0% { box-shadow: 0 0 0 0 rgba(21, 115, 71, .4); } 70%, 100% { box-shadow: 0 0 0 7px rgba(21, 115, 71, 0); } }
.raya { display: block; height: 7px; border-radius: 9px; background: #e6ecef; }
.r-40 { width: 40%; } .r-55 { width: 55%; } .r-70 { width: 70%; } .r-85 { width: 85%; } .r-90 { width: 90%; }
.p-60 { --p: 60%; }
.quien { padding: 2px 8px; border-radius: 99px; background: var(--crema); color: var(--tinta-2); font-size: 11px; font-weight: 500; white-space: nowrap; }

/* ---------- Cabecera: la pantalla y su globo ---------- */
.cabecera__visual { min-width: 0; }
.cabecera__visual > .ventana { position: relative; z-index: 1; }
.cabecera__visual--recibos .globo { left: -44px; bottom: -40px; } /* tapa el menú del costado, que abajo está vacío */
.cabecera__visual--turnos { padding-bottom: 140px; }
.cabecera__visual--turnos .globo { right: 24px; bottom: 0; } /* cuelga abajo de la agenda, sin tapar turnos */
.globo__de b.enviado { color: var(--info); }
.globo__respuesta { width: fit-content; max-width: 80%; margin: 8px 0 0 auto; padding: 7px 10px; border-radius: 12px 4px 12px 12px; background: #f1f4f6; color: var(--tinta); transition: opacity .3s var(--curva), transform .3s var(--curva); }
.globo__respuesta.esperando { opacity: 0; transform: translateY(4px); }

/* ---------- Lo que se hizo solo hoy (servicios.html) ---------- */
.actividad li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 38px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f4; }
.actividad li:last-child { border-bottom: 0; }
.actividad li.nueva { animation: entra-mail .5s var(--curva) both; }
.actividad__icono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eaf6f9; color: var(--acento-fuerte); }
.actividad__icono .icono { width: 15px; height: 15px; }
.actividad b { display: block; font-size: 13px; font-weight: 600; }
.actividad small { display: block; overflow: hidden; color: var(--tinta-2); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.actividad time { color: var(--tinta-2); font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.cabecera .app__cabeza { margin-bottom: 6px; }

/* ---------- Las tres tarjetas con su dibujo (servicios.html) ---------- */
.mini { position: relative; isolation: isolate; height: 176px; margin: -14px -14px 0; overflow: hidden; border-radius: 10px; background: linear-gradient(170deg, var(--cielo-1), var(--cielo-2) 60%, var(--cielo-3)); }
.mini::after { content: ""; position: absolute; right: -40px; top: -60px; z-index: -1; width: 220px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .8); filter: blur(30px); }
.mini__ventana { position: absolute; left: 24px; right: -14px; top: 24px; bottom: -14px; padding: 12px 16px; border-radius: 10px; background: #fff; box-shadow: 0 18px 36px -20px rgba(8, 30, 43, .35), 0 0 0 1px rgba(8, 30, 43, .06); transition: transform .4s var(--curva); }
a.tarjeta:hover .mini__ventana, a.tarjeta:focus-visible .mini__ventana { transform: translate(-5px, -5px); }
.mini .chip { height: 18px; padding: 0 7px; font-size: 10px; }
.mini__fila { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f4; }
.mini__fila:last-child { border-bottom: 0; }
.mini__sigla { width: 18px; height: 18px; border-radius: 50%; background: #eaf6f9; }
.mini__fila .chip { transition: background-color .3s var(--curva), color .3s var(--curva); }
.mini__ventana--chat { display: grid; align-content: start; gap: 8px; background: #efeae2; }
.mini__burbuja { display: grid; gap: 5px; width: 70%; padding: 8px 10px; border-radius: 2px 9px 9px 9px; background: #fff; box-shadow: 0 1px 0 rgba(8, 30, 43, .08); transition: transform .4s var(--curva); }
.mini__burbuja .raya { height: 6px; background: rgba(8, 30, 43, .12); }
.mini__burbuja--yo { justify-self: end; border-radius: 9px 2px 9px 9px; background: #d9fdd3; }
.mini__burbuja--yo .chip { justify-self: start; margin-top: 2px; }
a.tarjeta:hover .mini__burbuja--yo { transform: translateY(-3px); }
.mini__semana { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mini__semana b { padding-bottom: 2px; color: var(--tinta-2); font-size: 10px; font-weight: 600; }
.mini__semana i { height: 26px; border-radius: 5px; background: #f1f4f6; transition: background-color .3s var(--curva), border-color .3s var(--curva); }
.mini__semana i.t { border-left: 3px solid var(--acento); background: #eef8fb; }
.mini__semana i.ok { border-left: 3px solid var(--ok); background: var(--ok-f); }
a.tarjeta:hover .mini__semana i.t:nth-of-type(3n) { border-left-color: var(--ok); background: var(--ok-f); }
.tarjeta--servicio h3 { margin-top: 30px; }

/* ---------- Tabla «a medida vs tradicional» (pymes.html) ---------- */
.comparar { position: relative; margin-top: 8px; }
.comparar__marco { position: absolute; top: -14px; bottom: -14px; left: 64%; right: 0; border: 1px solid rgba(24, 162, 193, .45); border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -48px rgba(8, 30, 43, .45); transform-origin: 50% 0; }
.comparar__vs { position: absolute; z-index: 2; left: 64%; top: 33px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tinta); color: #fff; font: italic 300 16px/1 var(--serif); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px var(--crema); }
.comparar table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; table-layout: fixed; }
.comparar .c-criterio { width: 28%; }
.comparar .c-lado { width: 36%; }
.comparar thead th { height: 66px; padding: 0 28px; text-align: left; vertical-align: middle; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.comparar thead th:first-child { padding-left: 0; }
.comparar thead .tradicional { color: var(--tinta-2); }
.comparar thead .medida { color: var(--acento-fuerte); }
.comparar thead .medida span { display: inline-flex; align-items: center; gap: 8px; }
.comparar thead .medida span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px rgba(24, 162, 193, .18); }
.comparar tbody th, .comparar tbody td { padding: 22px 28px; border-top: 1px solid var(--linea); text-align: left; vertical-align: top; }
.comparar tbody td.medida { border-top-color: #e3f1f5; }
.comparar tbody th { padding-left: 0; font-size: 16px; font-weight: 500; line-height: 24px; }
.comparar tbody th span { display: flex; align-items: center; gap: 12px; }
.comparar tbody th i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--acento-fuerte); }
.comparar td { position: relative; padding-left: 58px !important; }
.comparar td b { display: block; font-size: 16px; font-weight: 500; line-height: 24px; }
.comparar td span { display: block; margin-top: 2px; color: var(--tinta-2); font-size: 14px; line-height: 21px; }
.comparar td.tradicional b { color: var(--tinta-2); }
.comparar .marca { position: absolute; left: 24px; top: 24px; margin: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.comparar .marca .icono { width: 13px; height: 13px; stroke-width: 2.6; }
.comparar .tradicional .marca { background: #ebe7dd; color: #8b8f8c; }
.comparar .medida .marca { background: var(--acento); color: var(--sobre-acento); }

/* Las filas aparecen y después la columna de Pymax se resalta (js/servicios.js) */
@media (prefers-reduced-motion: no-preference) {
  .comparar.por-animar tbody tr { opacity: 0; transform: translateY(16px); }
  .comparar.por-animar .comparar__marco { opacity: 0; transform: scaleY(.94); }
  .comparar.por-animar .comparar__vs { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  .comparar.por-animar .medida .marca { transform: scale(0); }
  .comparar.por-animar td.medida b { color: var(--tinta-2); }
  .comparar.animando tbody tr { transition: opacity .7s var(--curva), transform .7s var(--curva); }
  .comparar.animando tbody tr:nth-child(2) { transition-delay: .08s; }
  .comparar.animando tbody tr:nth-child(3) { transition-delay: .16s; }
  .comparar.animando tbody tr:nth-child(4) { transition-delay: .24s; }
  .comparar.animando tbody tr:nth-child(5) { transition-delay: .32s; }
  .comparar.animando .comparar__marco { transition: opacity .8s var(--curva) .6s, transform .8s var(--curva) .6s; }
  .comparar.animando .comparar__vs { transition: opacity .5s var(--curva) .9s, transform .5s cubic-bezier(.3, 1.6, .5, 1) .9s; }
  .comparar.animando .medida .marca { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
  .comparar.animando td.medida b { transition: color .5s var(--curva); }
  .comparar.animando tr:nth-child(1) .medida .marca, .comparar.animando tr:nth-child(1) td.medida b { transition-delay: 1s; }
  .comparar.animando tr:nth-child(2) .medida .marca, .comparar.animando tr:nth-child(2) td.medida b { transition-delay: 1.12s; }
  .comparar.animando tr:nth-child(3) .medida .marca, .comparar.animando tr:nth-child(3) td.medida b { transition-delay: 1.24s; }
  .comparar.animando tr:nth-child(4) .medida .marca, .comparar.animando tr:nth-child(4) td.medida b { transition-delay: 1.36s; }
  .comparar.animando tr:nth-child(5) .medida .marca, .comparar.animando tr:nth-child(5) td.medida b { transition-delay: 1.48s; }
}
.comparar__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; }
.comparar__pie p { max-width: 560px; color: var(--tinta-2); }

/* ---------- Ejemplos con texto y pantalla (comercios.html y profesionales.html) ---------- */
.ejemplos { display: grid; gap: clamp(88px, 9vw, 128px); }
.ejemplo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.ejemplo--al-reves { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ejemplo--al-reves > .ejemplo__texto { order: 2; }
.ejemplo__num { margin-bottom: 18px; color: var(--acento-fuerte); font-size: 14px; font-weight: 500; }
.ejemplo h3 { font-family: var(--serif); font-size: clamp(28px, 2.5vw, 36px); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.ejemplo__texto > .texto { max-width: 460px; margin-top: 16px; }
.ejemplo__lista { display: grid; gap: 10px; margin-top: 22px; font-size: 15px; }
.ejemplo__lista li { display: flex; gap: 10px; align-items: flex-start; }
.ejemplo__lista .icono { margin-top: 4px; color: var(--acento-fuerte); }
.tiempos--cajas { gap: 10px 12px; margin: 26px 0 0; }
.tiempos--cajas > div { min-width: 150px; padding: 12px 16px 14px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.tiempos--cajas dd { font-size: 17px; line-height: 24px; }
.tiempos--cajas .ahora { border-color: rgba(24, 162, 193, .4); background: #eef8fb; }
.tiempos--cajas .ahora dt { color: var(--acento-fuerte); }
.tiempos--cajas > .icono { margin-top: 0; }

/* El fondo de cielo que lleva cada pantalla */
.lienzo { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.4vw, 48px); border-radius: 16px; background: linear-gradient(170deg, var(--cielo-1), var(--cielo-2) 55%, var(--cielo-3)); }
.lienzo::before, .lienzo::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); }
.lienzo::before { right: -60px; top: -80px; width: 420px; height: 300px; background: rgba(255, 255, 255, .85); }
.lienzo::after { left: -80px; bottom: -120px; width: 460px; height: 280px; background: rgba(250, 216, 190, .8); }
.lienzo .globo { position: relative; margin: -26px -12px 0 auto; }

/* ---------- Las facturas que se emiten solas (js/animacion.js) ---------- */
.reloj { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 20px; border-bottom: 1px solid #e8ecee; }
.reloj__rotulo { color: var(--tinta-2); font-size: 12px; }
.reloj__fin { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.reloj__valor { min-width: 4.4em; font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reloj__barra { display: block; height: 5px; border-radius: 9px; background: #e9eef1; overflow: hidden; }
.reloj__barra i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--acento); transform: scaleX(.02); transform-origin: left; }
.sello { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px 0 8px; border-radius: 99px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 600; }
.sello .icono { width: 13px; height: 13px; stroke-width: 2.6; }
.tabla tr td { transition: background-color .25s var(--curva); }
.tabla tr.yendo td { background: #f3fafc; }

/* ---------- Pedidos por WhatsApp a toda hora (comercios.html) ---------- */
.chat-local { display: grid; grid-template-columns: minmax(0, 1fr) 208px; }
.chat-local__conversa { display: flex; flex-direction: column; min-width: 0; background: #efeae2; }
.chat-local__cabeza { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #e4ded3; background: #f7f5f1; }
.chat-local__cabeza .sigla { background: #fff; }
.chat-local__cabeza b { display: block; font-size: 13px; font-weight: 600; }
.chat-local__cabeza small { display: block; overflow: hidden; color: var(--tinta-2); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.chat-local__mensajes { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 300px; padding: 16px; overflow: hidden; }
.burbuja { max-width: 84%; padding: 7px 10px 6px; border-radius: 10px; font-size: 12.5px; line-height: 17px; box-shadow: 0 1px 0 rgba(8, 30, 43, .08); }
.burbuja time { float: right; margin: 5px 0 -2px 10px; color: rgba(8, 30, 43, .45); font-size: 10.5px; }
.burbuja--cliente { align-self: flex-start; border-top-left-radius: 2px; background: #fff; }
.burbuja--programa { align-self: flex-end; border-top-right-radius: 2px; background: #d9fdd3; }
.burbuja.nueva { animation: subir .4s var(--curva) both; }
.escribiendo { display: inline-flex; gap: 4px; padding: 11px 12px; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: rgba(8, 30, 43, .35); animation: puntos 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 0%, 60%, 100% { opacity: .45; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-local__lado { padding: 14px; border-left: 1px solid #e8ecee; background: #f5f8fa; }
.chat-local__titulo { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; }
.chat-local__titulo b { font-variant-numeric: tabular-nums; }
.pedidos li { display: grid; gap: 2px; margin-bottom: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e1e8ec; }
.pedidos li.nueva { animation: entra-mail .5s var(--curva) both; }
.pedidos b { font-size: 12.5px; font-weight: 600; }
.pedidos small { overflow: hidden; color: var(--tinta-2); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.pedidos .chip { justify-self: start; margin-top: 6px; }

/* ---------- Stock y caja (comercios.html) ---------- */
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 20px 8px; }
.numeros div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e8ecee; border-radius: 10px; }
.numeros span { color: var(--tinta-2); font-size: 11.5px; }
.numeros b { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numeros em { color: var(--ok); font-size: 11.5px; font-style: normal; font-weight: 600; }
.stock-aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 20px 16px; padding: 10px 12px; border-radius: 10px; background: #f5f8fa; color: var(--tinta-2); font-size: 12px; transition: opacity .5s var(--curva), transform .5s var(--curva); }
.stock-aviso .icono { width: 15px; height: 15px; color: var(--acento-fuerte); }
.stock-aviso.esperando { opacity: 0; transform: translateY(8px); }

/* ---------- Turnos con recordatorio (profesionales.html) ---------- */
.semanal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 16px 18px 8px; }
.semanal__dia { display: grid; align-content: start; gap: 6px; }
.semanal__dia > b { padding-bottom: 4px; font-size: 12px; font-weight: 600; }
.turno-b { position: relative; display: grid; padding: 8px 20px 8px 9px; border-left: 3px solid var(--acento); border-radius: 6px; background: #eef8fb; font-size: 11.5px; line-height: 15px; transition: background-color .3s var(--curva), border-color .3s var(--curva), box-shadow .3s var(--curva); }
.turno-b b { font-weight: 600; }
.turno-b span { overflow: hidden; color: var(--tinta-2); white-space: nowrap; text-overflow: ellipsis; }
.turno-b.libre { border-left-color: #d9dfe2; background: #f5f8fa; color: var(--tinta-2); }
.turno-b.confirmado { border-left-color: var(--ok); background: var(--ok-f); }
.turno-b.confirmado::after { content: ""; position: absolute; right: 8px; top: 10px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.turno-b.avisando { background: #fff; box-shadow: 0 0 0 2px var(--acento); }
.semanal__aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 18px 16px; padding: 10px 12px; border-radius: 10px; background: #f5f8fa; color: var(--tinta-2); font-size: 12px; }

/* ---------- Seguimiento de un trámite (profesionales.html) ---------- */
.tramite li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f4; }
.tramite li:last-child { border-bottom: 0; }
.tramite__marca { position: relative; width: 20px; height: 20px; border: 1.5px solid #cdd5d8; border-radius: 50%; background: #fff; transition: background-color .3s var(--curva), border-color .3s var(--curva); }
.tramite li.hecho .tramite__marca { border-color: var(--ok); background: var(--ok); }
.tramite li.hecho .tramite__marca::after { content: ""; position: absolute; left: 4.5px; top: 4.5px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tramite li.actual .tramite__marca { border: 1.5px dashed var(--aviso); }
.tramite b { display: block; font-size: 13px; font-weight: 600; }
.tramite small { display: block; overflow: hidden; color: var(--tinta-2); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.tramite li:not(.hecho):not(.actual) b { color: var(--tinta-2); font-weight: 500; }

/* ---------- Un presupuesto que se completa solo (profesionales.html) ---------- */
.documento { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.documento__ficha { padding: 16px 18px; border-right: 1px solid #e8ecee; background: #f5f8fa; }
.documento__rotulo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; }
.documento__rotulo span { color: var(--tinta-2); font-size: 11px; font-weight: 500; }
.documento__ficha dl { display: grid; gap: 9px; }
.documento__ficha dt { color: var(--tinta-2); font-size: 11px; }
.documento__ficha dd { font-size: 12.5px; font-weight: 500; }
.documento__hoja { margin: 16px 18px; padding: 16px 18px 14px; border: 1px solid #ece8de; border-radius: 8px; background: #fffdf8; box-shadow: 0 12px 24px -18px rgba(8, 30, 43, .3); font-size: 12px; line-height: 20px; }
.documento__titulo { margin-bottom: 10px; font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; }
.documento__hoja p + p { margin-top: 8px; }
.documento__hoja .raya { height: 6px; margin-top: 10px; }
.documento mark { padding: 1px 4px; border-radius: 4px; background: #e2f3f8; color: var(--tinta); font-weight: 500; transition: background-color .6s var(--curva); }
.documento mark.vacio { background: #eef1f3; color: transparent; }
.documento mark.lleno { background: #bfe5ee; }
.documento__firma { width: 42%; margin-top: 18px; padding-top: 5px; border-top: 1px solid var(--tinta); color: var(--tinta-2); font-size: 11px; }
.documento__tambien { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #e8ecee; color: var(--tinta-2); font-size: 12px; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .cabecera__visual--recibos { margin-bottom: 40px; }
  .cabecera__visual--recibos .globo { left: 16px; }
  .ejemplo, .ejemplo--al-reves { grid-template-columns: 1fr; gap: 40px; }
  .ejemplo--al-reves > .ejemplo__texto { order: 0; }
  .ejemplo__texto > .texto { max-width: 620px; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .cabecera__visual--recibos { margin-bottom: 0; }
  .cabecera__visual--turnos { padding-bottom: 0; }
  .cabecera__visual .globo { position: relative; left: auto; right: auto; bottom: auto; width: 240px; margin: -22px 10px 0 auto; }
  .actividad li { grid-template-columns: 30px minmax(0, 1fr) 38px; }
  .actividad .quien { display: none; }
  .mini { height: 160px; }

  /* La tabla comparativa pasa a tarjetas: cada fila con sus dos lados uno al lado del otro */
  .comparar__marco, .comparar__vs, .comparar colgroup, .comparar thead { display: none; }
  .comparar table, .comparar tbody { display: block; }
  .comparar tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 22px 0; border-top: 1px solid var(--linea); }
  .comparar tbody th, .comparar tbody td { border-top: 0; }
  .comparar tbody th { grid-column: 1 / -1; padding: 0 0 4px; }
  .comparar td { padding: 14px 12px 14px 14px !important; border: 1px solid var(--linea); border-radius: 12px; }
  .comparar td.medida { border-color: rgba(24, 162, 193, .45); background: #fff; }
  .comparar td::before { content: attr(data-lado); display: block; margin-bottom: 8px; color: var(--tinta-2); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .comparar td.medida::before { color: var(--acento-fuerte); }
  .comparar .marca { display: none; }
  .comparar td b { font-size: 15px; line-height: 21px; }
  .comparar td span { font-size: 13px; line-height: 19px; }

  .lienzo { padding: 20px 14px; }
  .lienzo .globo { width: 236px; margin-right: 0; }
  .reloj { padding: 12px 16px; }
  .reloj__valor { font-size: 22px; }
  .sello { height: 24px; padding: 0 9px 0 7px; }
  .chat-local { grid-template-columns: 1fr; }
  .chat-local__lado { display: none; }
  .chat-local__mensajes { height: 286px; padding: 12px; }
  .numeros { grid-template-columns: 1fr 1fr; padding: 14px 14px 6px; }
  .numeros div:nth-child(3) { display: none; }
  .numeros b { font-size: 18px; }
  .stock-aviso { margin: 4px 14px 14px; }
  .semanal { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 14px 6px; }
  .semanal__dia:nth-child(n + 4) { display: none; }
  .semanal__aviso { min-height: 58px; margin: 8px 14px 14px; }
  .documento { grid-template-columns: 1fr; }
  .documento__ficha { border-right: 0; border-bottom: 1px solid #e8ecee; }
  .documento__ficha dl { grid-template-columns: 1fr 1fr; }
  .documento__ficha dl div:nth-child(n + 4) { display: none; }
  .documento__hoja { margin: 14px; }
}

/* ---------- Catálogo (comercios.html y profesionales.html) ---------- */
.catalogo { display: grid; justify-items: center; margin-bottom: 72px; text-align: center; }
.catalogo__lista { position: relative; width: min(100%, 440px); margin-top: 28px; }
.catalogo__lista > summary { display: flex; justify-content: center; list-style: none; cursor: pointer; }
.catalogo__lista > summary::-webkit-details-marker { display: none; }
.catalogo__lista > summary .icono { transition: transform .2s var(--curva); }
.catalogo__lista[open] > summary .icono { transform: rotate(180deg); }
.catalogo__lista ul { margin-top: 10px; padding: 8px; border: 1px solid var(--linea); border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -34px rgba(8, 30, 43, .35); text-align: left; }
.catalogo__lista a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 14px; border-radius: 10px; color: var(--tinta); text-decoration: none; }
.catalogo__lista a:hover { background: var(--crema); }
.catalogo__lista a > .icono:first-child { width: 20px; height: 20px; color: var(--acento-fuerte); }
.catalogo__lista b, .catalogo__lista small { display: block; }
.catalogo__lista b { font-weight: 500; }
.catalogo__lista small { color: var(--tinta-2); font-size: 14px; }
.precio-celda { color: var(--tinta); font-size: 18px; font-weight: 600; }
.generico { margin-bottom: 0; }
.generico .bajada { margin-top: 18px; }
.generico > .boton { justify-self: start; }
.cabecera .bajada strong { color: var(--tinta); font-weight: 500; }

/* ---------- El programa de Arquitectura (cabecera de profesionales.html) ---------- */
.estudio__sello { justify-content: flex-start !important; gap: 8px !important; margin-bottom: 8px; padding-bottom: 12px !important; border-bottom: 1px solid #e1e8ec; border-radius: 0 !important; color: #ab4a1b !important; font-weight: 600; }
.estudio .app__lado li.activo { box-shadow: inset 2px 0 0 #ab4a1b, 0 0 0 1px #e1e8ec; }
.estudio .app__lado .cuenta { background: #ab4a1b; color: #fff; }
.estudio__numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.estudio__numeros div { padding: 10px 12px; border: 1px solid #e8ecee; border-radius: 10px; }
.estudio__numeros span { display: block; color: var(--tinta-2); font-size: 11.5px; line-height: 15px; }
.estudio__numeros b { font-family: var(--serif); font-size: 21px; font-weight: 400; white-space: nowrap; }
.estudio__titulo { font-size: 12.5px; font-weight: 600; }
.estudio .filas li { transition: background-color .3s var(--curva); }
.estudio .filas li.resolviendo { background: #eef8fb; }
