/* ==========================================================================
   Valyon para Clínicas — estilos específicos de la sublanding
   ========================================================================== */

.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--ion); background: var(--ion-tint); padding: 7px 14px; border-radius: 100px; margin-bottom: 18px;
}

/* Servicios (3 col en vez de 2) */
.servicios-grid--clinicas { grid-template-columns: repeat(3, 1fr); }
.servicios-grid--clinicas .servicio-card--featured { grid-column: auto; grid-template-columns: 1fr; padding: 40px; }
.servicios-grid--clinicas .servicio-card--featured .servicio-icon,
.servicios-grid--clinicas .servicio-card--featured h3,
.servicios-grid--clinicas .servicio-card--featured p,
.servicios-grid--clinicas .servicio-card--featured .servicio-link,
.servicios-grid--clinicas .servicio-badge { grid-column: 1; grid-row: auto; }

/* Valoraciones */
.valoraciones { background: linear-gradient(180deg, var(--white), var(--ion-tint) 160%); }
.valoraciones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.valoracion {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mist-line);
  border-radius: var(--radius-md); padding: 30px 28px; box-shadow: 0 24px 50px -34px rgba(22,23,26,.2);
}
.valoracion-stars { color: #F5A623; font-size: 17px; letter-spacing: 2px; margin-bottom: 16px; }
.valoracion-text { font-size: 15px; line-height: 1.65; color: var(--graphite); flex: 1; margin-bottom: 22px; }
.valoracion-autor { display: flex; align-items: center; gap: 12px; }
.valoracion-avatar {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ion-tint); color: var(--ion);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.valoracion-autor strong { display: block; font-family: var(--font-body); font-size: 14.5px; color: var(--ink); }
.valoracion-autor small { font-size: 12.5px; color: var(--mist); }
.valoraciones-nota { text-align: center; font-size: 12.5px; color: var(--mist); margin-top: 32px; }

/* ==========================================================================
   Panel de gestión scroll-driven (dashboard que se ensambla al bajar)
   ========================================================================== */
.dash-reveal { background: var(--ion-tint); }
.dash-sticky { padding: clamp(72px, 10vw, 130px) 0; }
.dash-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.dash-head .section-title { margin: 0 auto 14px; }
.dash-sub { font-size: 16px; color: var(--graphite); }

.dash {
  display: grid; grid-template-columns: 210px 1fr; gap: 0; max-width: 1040px; margin: 0 auto;
  background: #fff; border: 1px solid var(--mist-line); border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -50px rgba(22,23,26,.4); overflow: hidden; font-size: 13px;
}
.dash-side { border-right: 1px solid var(--mist-line); padding: 22px 16px; }
.dash-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; padding-left: 4px; }
.dash-brand .logo-symbol { width: 25px; height: 25px; }
.dash-brand-word { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--ion); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--graphite); font-weight: 500; }
.dash-nav span.on { background: var(--ion); color: #fff; }
.dash-nav svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-main { padding: 22px 24px; min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dash-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); }
.dash-search { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--mist-line); border-radius: 100px; padding: 7px 14px; color: var(--mist); font-size: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dash-kpi { border: 1px solid var(--mist-line); border-radius: 13px; padding: 13px 15px; }
.dash-kpi span { display: block; font-size: 11.5px; color: var(--mist); margin-bottom: 6px; }
.dash-kpi strong { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink); }
.dash-kpi--accent strong { color: var(--ion); }
.dash-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-bottom: 14px; }
.dash-card { border: 1px solid var(--mist-line); border-radius: 13px; padding: 15px 17px; }
.dash-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.dash-chart { width: 100%; height: 96px; display: block; }
.dash-appt { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mist-line); font-size: 12.5px; color: var(--ink); }
.dash-appt:last-child { border-bottom: none; }
.dash-av { width: 26px; height: 26px; border-radius: 50%; background: var(--ion-tint); color: var(--ion); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.dash-reports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-rep { border: 1px solid var(--mist-line); border-radius: 13px; padding: 14px 16px; }
.dash-rep h5 { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--ink); margin-bottom: 12px; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.dash-bars i { flex: 1; background: var(--ion); border-radius: 3px 3px 0 0; opacity: .85; }

/* estado inicial de los pop (JS los revela con el scroll) */
.dash-pop { opacity: 0; transform: translateY(24px) scale(.96); }
.dash-ready .dash-pop { opacity: 1; transform: none; } /* fallback sin animación */

@media (max-width: 900px) {
  .dash-sticky { min-height: 0; padding: 64px 0; }
  .dash { grid-template-columns: 1fr; font-size: 12px; max-width: 460px; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--mist-line); padding: 14px 18px; }
  .dash-brand { margin-bottom: 0; }
  .dash-nav { display: none; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-reports { grid-template-columns: 1fr; }
}

/* Sección móvil ERP con pop-ups scroll-driven */
.movil { background: var(--ink); overflow: hidden; }
.section-lead--light { color: rgba(255,255,255,.65); }
.movil-stage { position: relative; max-width: 500px; margin: 72px auto 0; }
.movil-phone { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

.movil-pop {
  position: absolute; display: flex; gap: 14px; align-items: center;
  padding: 16px 20px; border-radius: 18px; width: max-content; max-width: 260px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; box-shadow: 0 24px 60px -24px rgba(0,0,0,.65);
}
.movil-pop-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(75,73,224,.4); display: flex; align-items: center; justify-content: center;
}
.movil-pop-icon svg { width: 21px; height: 21px; }
.movil-pop strong { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.movil-pop-value { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ion-light); line-height: 1.2; }
.movil-pop small { display: block; font-size: 11.5px; color: rgba(255,255,255,.5); }

.movil-pop--1 { left: -38%; top: 16%; }
.movil-pop--2 { right: -40%; top: 44%; }
.movil-pop--3 { left: -32%; bottom: 9%; }

@media (max-width: 960px) {
  .movil-stage { max-width: 420px; }
  .movil-pop { position: static; margin: 14px auto 0; width: 100%; max-width: 340px; }
  .movil-pop--1 { margin-top: 28px; }
}

@media (max-width: 900px) {
  .servicios-grid--clinicas { grid-template-columns: 1fr; }
  .valoraciones-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
