/* Contadores, panel de producto animado y CTA fijo en móvil (js/osd-motion.js). Sin JS todo se ve en su estado final. */

/* ── Contadores ── */
.osd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; text-align: center; }
.osd-stat { padding: 24px; background: #f5f7fb; border-radius: 16px; }
.osd-stat-num { font-size: 32px; font-weight: 800; color: #00356a; font-variant-numeric: tabular-nums; }
.osd-stat-label { font-size: 14px; color: #555; margin-top: 4px; }

/* ── Panel de producto ── */
.osd-panel-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; }
.osd-panel-copy { max-width: 420px; }
.osd-panel {
  position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 17, 38, .12); padding: 20px 22px 24px; font-family: inherit; color: #001126;
}
.osd-panel-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.osd-panel-top i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.osd-panel-top span { margin-left: 8px; font-size: 12px; color: #8a94a6; }
.osd-panel h4 { font-size: 14px; font-weight: 700; color: #00356a; margin: 14px 0 10px; }
.osd-row { display: grid; grid-template-columns: 96px 1fr 84px; align-items: center; gap: 10px; font-size: 14px; margin: 7px 0; }
.osd-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-row em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.osd-bar { height: 10px; border-radius: 6px; background: #eef3f8; overflow: hidden; }
.osd-bar > span { display: block; height: 100%; width: var(--w); border-radius: 6px; background: #00356a; }
.osd-row.is-bad .osd-bar > span { background: #d93b3b; }
.osd-row.is-bad em { color: #d93b3b; }
.osd-trend { font-size: 11px; font-weight: 700; color: #d93b3b; margin-right: 4px; }
.osd-row em { white-space: nowrap; }
.osd-alert {
  margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: #fff4f2; border: 1px solid #ffd7d0; font-size: 13.5px; line-height: 1.45;
}
.osd-alert strong { display: block; color: #b42318; }
.osd-panel-note { font-size: 12px; color: #8a94a6; margin-top: 10px; text-align: center; }

/* Estado inicial solo si el JS va a animar (clase .osd-anim) */
.osd-anim .osd-bar > span { width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.osd-anim .osd-row { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.osd-anim .osd-alert { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.osd-anim.is-in .osd-row { opacity: 1; transform: none; }
.osd-anim.is-in .osd-bar > span { width: var(--w); }
.osd-anim.is-in .osd-alert { opacity: 1; transform: none; transition-delay: 1.6s; }

/* ── CTA fijo en móvil ── */
.osd-sticky-cta { display: none; }
@media (max-width: 767px) {
  .osd-sticky-cta {
    display: flex; position: fixed; left: 12px; right: 84px; bottom: 16px; z-index: 900;
    justify-content: center; align-items: center; padding: 15px 18px; border-radius: 14px;
    background: #00356a; color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 17, 38, .28);
    transform: translateY(140%); transition: transform .35s ease;
  }
  .osd-sticky-cta.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .osd-anim .osd-row, .osd-anim .osd-alert, .osd-anim .osd-bar > span, .osd-sticky-cta { transition: none !important; }
}

/* ── Hero de /analisis-cadena en dos columnas ── */
.osd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #00356a; margin: 0 0 14px; }
.osd-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; text-align: left; }
.osd-hero-h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; text-align: left; }
.osd-hero-p { margin: 0 0 18px; max-width: 560px; }
.osd-hero-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: 16px; color: #001126; }
.osd-hero-list span { display: inline-flex; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: #00356a; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.osd-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.osd-btn { display: inline-flex; align-items: center; padding: 16px 28px; background: #00356a; color: #fff !important; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; }
.osd-btn-ghost { background: transparent; border: 1.5px solid #00356a; color: #00356a !important; padding: 14.5px 22px; }
.osd-hero-reassure { margin: 12px 0 0; font-size: 13px; color: #556; }
.osd-hero-proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0, 53, 106, .15); }
.osd-hero-proof div { display: flex; flex-direction: column; }
.osd-hero-proof strong { font-size: 24px; font-weight: 800; color: #00356a; font-variant-numeric: tabular-nums; }
.osd-hero-proof span { font-size: 13px; color: #556; }
.osd-hero-visual { display: flex; justify-content: center; }
@media (max-width: 991px) {
  .osd-hero { grid-template-columns: 1fr; gap: 40px; }
  .osd-hero-proof { gap: 20px; }
}

/* Webflow mete ::before/::after (clearfix) en .w-container: en grid ocupan celdas */
.osd-hero::before, .osd-hero::after, .osd-panel-wrap::before, .osd-panel-wrap::after { content: none !important; display: none !important; }

/* ── Panel en el hero de la home (sustituye a la demo de Power BI, que baja a su propia sección) ── */
.osd-home-hero-visual {
  position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 56px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
}
.osd-home-hero-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.15; color: #fff; margin: 0 0 14px; }
.osd-home-hero-text { font-size: 17px; line-height: 1.55; color: #c9d6ea; margin: 0 0 24px; }
.osd-btn-light { background: #fff; color: #001126 !important; }
.osd-home-hero-visual .osd-panel { justify-self: center; }
@media (max-width: 991px) {
  .osd-home-hero-visual { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}

/* Menos plantilla: kicker en minúscula, cita del fundador, punto rojo en la alerta */
.osd-kicker { font-size: 15px; font-weight: 600; color: #00356a; margin: 0 0 14px; }
.osd-founder { display: flex; gap: 14px; align-items: center; margin: 4px 0 26px; max-width: 520px; }
.osd-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.osd-founder p { margin: 0; font-size: 15px; line-height: 1.45; color: #001126; font-style: italic; }
.osd-founder span { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: #556; }
.osd-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #d93b3b; flex: none; box-shadow: 0 0 0 4px rgba(217, 59, 59, .15); }
