/* =====================================================================
   EducaQuix · páginas de producto (Restaurant, Scholar)
   ===================================================================== */
.phero { position: relative; overflow: hidden; padding: 48px 0 64px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 70%, var(--bg) 100%); }
@media (min-width: 1024px) { .phero { padding: 72px 0 96px; } }
.phero__grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
@media (min-width: 1060px) { .phero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.phero__type { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.phero__type .ico-badge { width: 56px; height: 56px; border-radius: 18px; }
.phero__type p { display: grid; line-height: 1.25; }
.phero__type b { font-size: 1.1rem; }
.phero__type span { font-size: .82rem; color: var(--text-2); font-family: var(--mono); }
.phero .h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem); }
.phero__lead { margin-top: 20px; max-width: 560px; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .phero__cta .btn { width: 100%; } }
.phero__note { margin-top: 16px; font-size: .86rem; color: var(--text-2); }
.phero__note .legal { display: block; margin-top: 3px; }
.phero__visual { position: relative; }
.phero__qx { position: absolute; z-index: 3; width: 150px; right: -18px; top: -86px; }
@media (max-width: 1059px) { .phero__qx { width: 120px; top: -70px; right: 0; } }

/* ventana genérica */
.win { position: relative; z-index: 2; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.win__dots { display: flex; gap: 6px; } .win__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(5, 35, 59, .16); }
:root[data-theme="dark"] .win__dots i { background: rgba(255, 255, 255, .18); }
.win__url { margin-inline: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; color: var(--text-2); font-family: var(--mono); }
.win__url svg { width: 12px; height: 12px; color: var(--turq-d); }
.win__sp { width: 42px; }
.win__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.win__title { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.win__title svg { width: 22px; height: 22px; color: var(--turq-d); }
:root[data-theme="dark"] .win__title svg { color: var(--agua); }
.win__body { background: var(--surface-2); }

/* split section */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } .split--rev > :first-child { order: 2; } }
.split__copy .lead { margin-top: 16px; }
.split__copy .checks { margin-top: 24px; }

/* flujo (secuencia real) */
.flow { display: grid; gap: 16px; list-style: none; padding: 0; counter-reset: fl; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.flow__i { counter-increment: fl; position: relative; padding: 24px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.flow__i::before { content: counter(fl); position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600; }
:root[data-theme="dark"] .flow__i::before { background: var(--turq); color: var(--navy); }
@media (min-width: 900px) { .flow__i:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -18px; width: 18px; height: 2px; background: var(--turq); } }
.flow__role { align-self: flex-start; }
.flow__i .h4 { margin-top: 4px; }

/* roles */
.roles { display: grid; gap: 16px; }
@media (min-width: 700px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.role__h { display: flex; align-items: center; gap: 12px; }
.role__h .h4 { font-size: 1.1rem; }
.role dl { display: grid; gap: 10px; }
.role dt { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.role dd { font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; }
.role dd svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.role .yes svg { color: var(--turq-d); } .role .no svg { color: var(--rojo); }
:root[data-theme="dark"] .role .yes svg { color: var(--agua); }
.guard { display: grid; gap: 20px; align-items: center; margin-top: 20px; padding: 22px; border-radius: 26px; background: var(--surface); border: 1px dashed var(--line-2); }
@media (min-width: 800px) { .guard { grid-template-columns: auto 1fr auto; padding: 22px 30px; } }
.guard .qx { width: 110px; }
.guard__code { font-family: var(--mono); font-size: .8rem; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.guard__code b { color: #B3202F; font-weight: 600; }
:root[data-theme="dark"] .guard__code b { color: #FFB3BB; }

/* reportes */
.rep { display: grid; gap: 18px; }
@media (min-width: 1000px) { .rep { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.rep__chart { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.rep__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rep__kpi b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.rep__kpi span { font-size: .8rem; color: var(--text-2); }
.bars { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 200px; flex: 1 1 200px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars__b { position: relative; flex: 1; border-radius: 8px 8px 3px 3px; background: var(--turq); height: var(--h); transition: height .5s var(--ease); min-width: 0; }
.bars__b:nth-child(odd) { background: color-mix(in srgb, var(--turq) 78%, var(--surface)); }
.bars__b.is-top { background: var(--navy); }
:root[data-theme="dark"] .bars__b.is-top { background: var(--agua); }
.bars__lbl { display: flex; gap: 8px; margin-top: -8px; }
.bars__lbl span { flex: 1; text-align: center; font-size: .66rem; color: var(--text-3); min-width: 0; overflow: hidden; }
.rep__side { display: grid; gap: 14px; }
.rep__list { padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.rep__list h3 { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.rep__list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rep__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: .88rem; }
.rep__list li i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--chip); position: relative; overflow: hidden; }
.rep__list li i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--turq); border-radius: 6px; }
.rep__list .none li i::after { background: var(--rosa); }
.rep__exp { display: flex; gap: 8px; flex-wrap: wrap; }
.rep__demo { font-size: .72rem; color: var(--text-3); }

/* mini facts row */
.facts { display: grid; gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.fact p { font-size: .9rem; color: var(--text-2); }

/* cta band (planes) */
.band { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
@media (min-width: 900px) { .band { grid-template-columns: auto 1fr auto; padding: 32px 40px; gap: 32px; } }
.band__price { display: flex; align-items: baseline; gap: 8px; }
.band__price span { color: var(--text-2); font-weight: 500; }
.band__price b { font-size: 3.2rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
