/* Pymax · lo propio del inicio (lo compartido está en estilos.css) */

.qhacemos { margin-top: 88px; }

/* El logo grande sigue un poquito al mouse (lo mueve js/escenas.js con --mx y --my) */
.logo-grande { transform: perspective(600px) rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -7deg)); transition: transform .5s var(--curva); }
.logo-grande .l5 { transition: transform .5s var(--curva); }
.logo-grande:hover .l5 { transform: rotate(-8deg) translateY(-2px); }

/* Tablero (pestaña Pymes) */
.tablero { padding: 18px 20px 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e8ecee; border-radius: 10px; }
.kpis span { color: var(--tinta-2); font-size: 11.5px; }
.kpis b { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.kpis em { color: var(--tinta-2); font-size: 11.5px; font-style: normal; }
.kpis em.sube { color: var(--ok); font-weight: 600; }
.barras { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 16px; padding: 0 4px 0; border-bottom: 1px solid #e8ecee; }
.barras i { flex: 1; border-radius: 6px 6px 0 0; background: #cfe9f0; transform-origin: bottom; }
.barras i.hoy { background: var(--acento); }
.b-48 { height: 48%; } .b-62 { height: 62%; } .b-55 { height: 55%; } .b-70 { height: 70%; } .b-66 { height: 66%; } .b-82 { height: 82%; } .b-76 { height: 76%; } .b-92 { height: 92%; }
.panel.activa .barras i { animation: crecer .9s var(--curva) both; }
.panel.activa .barras i:nth-child(2) { animation-delay: .05s; } .panel.activa .barras i:nth-child(3) { animation-delay: .1s; }
.panel.activa .barras i:nth-child(4) { animation-delay: .15s; } .panel.activa .barras i:nth-child(5) { animation-delay: .2s; }
.panel.activa .barras i:nth-child(6) { animation-delay: .25s; } .panel.activa .barras i:nth-child(7) { animation-delay: .3s; }
.panel.activa .barras i:nth-child(8) { animation-delay: .35s; }
@keyframes crecer { from { transform: scaleY(.15); } }
.tablero__pie { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--tinta-2); font-size: 12px; }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21, 115, 71, .4); }
@media (prefers-reduced-motion: no-preference) { .punto-vivo { animation: latido 2s ease-out infinite; } }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(21, 115, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 115, 71, 0); } }

/* Pedidos por WhatsApp (pestaña Comercios) */
.chat { display: grid; gap: 8px; padding: 16px 18px; background: #efeae2; }
.msj { max-width: 80%; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; line-height: 17px; box-shadow: 0 1px 0 rgba(8, 30, 43, .08); }
.msj--cliente { justify-self: start; border-top-left-radius: 2px; background: #fff; }
.msj--programa { justify-self: end; border-top-right-radius: 2px; background: #d9fdd3; }
.panel.activa .msj--cliente { animation: subir .5s var(--curva) .2s both; }
.panel.activa .msj--programa { animation: subir .5s var(--curva) 1s both; }

/* Turnos (pestaña Profesionales) */
.turnos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 18px 6px; }
.turnos__dia { display: grid; gap: 6px; align-content: start; }
.turnos__dia b { font-size: 12px; font-weight: 600; }
.turno { padding: 8px 9px; border-left: 3px solid var(--acento); border-radius: 6px; background: #eef8fb; font-size: 11.5px; line-height: 15px; }
.turno.libre { border-left-color: #d9dfe2; background: #f5f8fa; color: var(--tinta-2); }
.turnos__aviso { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 18px 16px; padding: 10px 12px; border-radius: 10px; background: #f5f8fa; color: var(--tinta-2); font-size: 12px; }
.panel.activa .turno { animation: subir .45s var(--curva) both; }
.panel.activa .turnos__dia:nth-child(2) .turno { animation-delay: .08s; } .panel.activa .turnos__dia:nth-child(3) .turno { animation-delay: .16s; }
.panel.activa .turnos__dia:nth-child(4) .turno { animation-delay: .24s; }

@media (max-width: 760px) {
  .kpis b { font-size: 19px; }
  .kpis div { padding: 10px; }
  .barras { height: 120px; gap: 6px; }
  .turnos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qhacemos { margin-top: 56px; }
}
