/* Shared styles for the HiOla Business learning-center landing pages.
   Used by /learning-centers/ (en) and /centros-de-aprendizaje/ (es).
   Tokens mirror index.html and site.css - change them together. */
:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #617086;
  --line: #d7e4f2;
  --panel: #ffffff;
  --surface: #f4f8fd;
  --wash: #e8f3ff;
  --brand: #0878ff;
  --brand-dark: #0758c8;
  --brand-soft: #dceeff;
  --ok: #14714a;
  --ok-soft: #ddf2e7;
  --alert: #a53f2e;
  --alert-soft: #fdeae6;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
  --shadow-sm: 0 10px 26px rgba(17, 24, 39, 0.07);
  --anchor-offset: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid rgba(8, 120, 255, 0.4);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 250, 254, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 120, 255, 0.16);
}

.brand span {
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nav-actions a:hover {
  color: var(--ink);
}

.nav-actions .lang-link {
  color: var(--brand-dark);
  background: rgba(8, 120, 255, 0.08);
  margin-right: 4px;
}

.nav-actions .primary-link {
  background: var(--ink);
  color: #fff;
  padding-inline: 14px;
}

.nav-actions .primary-link:hover {
  color: #fff;
  background: #000;
}

/* ---------- shared section furniture ---------- */

section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.lc-section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.lc-section + .lc-section {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lc-head {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.lc-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.lc-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

/* ---------- hero ---------- */

.lc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 76px) 0 clamp(30px, 5vw, 60px);
  background:
    radial-gradient(1100px 460px at 12% -12%, rgba(8, 120, 255, 0.14), transparent 62%),
    radial-gradient(760px 420px at 96% 4%, rgba(8, 120, 255, 0.09), transparent 60%);
}

.lc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.lc-hero h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
}

.lc-hero .lead {
  margin: 20px 0 0;
  max-width: 600px;
}

.price-callout {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(8, 120, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.price-callout strong {
  color: var(--brand-dark);
  font-size: 14px;
}

.price-callout span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  font-size: 15px;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.button.secondary:hover {
  background: #f2f8ff;
  color: var(--brand-dark);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.trust-item {
  padding: 14px;
  border: 1px solid rgba(7, 88, 200, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 19px;
  line-height: 1.15;
}

.trust-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- kiosk figure ---------- */

.kiosk-figure {
  margin: 0;
}

.kiosk-stage {
  position: relative;
  margin-bottom: 54px;
}

.kiosk-frame {
  border-radius: 20px;
  background: linear-gradient(160deg, #16233a 0%, #0b1424 100%);
  padding: 14px;
  box-shadow: 0 30px 70px rgba(11, 20, 36, 0.32);
}

.kiosk-screen {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.kiosk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kiosk-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.kiosk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(20, 113, 74, 0.14);
}

.kiosk-clock {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.kiosk-scan {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.kiosk-scan strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.kiosk-scan p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.kiosk-roster {
  display: grid;
  gap: 8px;
}

.kiosk-roster-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roster-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.roster-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
}

.roster-name {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-name small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.chip.in {
  background: var(--ok-soft);
  color: var(--ok);
}

.chip.out {
  background: #eef2f7;
  color: var(--muted);
}

.pin-card {
  position: absolute;
  right: -8px;
  bottom: -34px;
  width: min(268px, 78%);
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pin-card strong {
  font-size: 13.5px;
  line-height: 1.25;
}

.pin-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pin-dots {
  display: flex;
  gap: 8px;
}

.pin-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
}

.pin-dots i:last-child {
  background: var(--line);
}

.figure-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---------- steps ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.step h3 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- safety ---------- */

.lc-safety {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 8px;
  background: linear-gradient(170deg, #0f1d31 0%, #0b1424 100%);
  color: #eaf2ff;
}

.lc-safety .eyebrow {
  color: #7fb6ff;
}

.lc-safety h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  color: #fff;
}

.lc-safety .safety-lead {
  margin: 16px 0 0;
  max-width: 700px;
  color: rgba(234, 242, 255, 0.76);
  font-size: 17px;
  line-height: 1.55;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.safety-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(127, 182, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.safety-item svg {
  width: 24px;
  height: 24px;
  color: #7fb6ff;
  flex: none;
}

.safety-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
}

.safety-item span {
  color: rgba(234, 242, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-list svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}

.feature-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.3;
}

.feature-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.guardian-panel {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(8, 120, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  box-shadow: var(--shadow-sm);
}

.guardian-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.guardian-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.phone-mock {
  max-width: 260px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, #16233a 0%, #0b1424 100%);
  box-shadow: 0 22px 48px rgba(11, 20, 36, 0.28);
}

.phone-screen {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
}

.phone-title {
  font-size: 15px;
  font-weight: 950;
}

.phone-student {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.phone-student span {
  font-size: 13px;
  font-weight: 800;
}

.phone-student small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.qr-block {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.qr-block small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}

.price-main {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(8, 120, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: var(--shadow-sm);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}

.price-tag b {
  color: var(--brand-dark);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 950;
  line-height: 1;
}

.price-tag span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.price-annual {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-annual strong {
  color: var(--brand-dark);
}

.price-includes {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-includes li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  color: #33423f;
  font-size: 14.5px;
  line-height: 1.45;
}

.price-includes svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand);
}

.price-cta {
  margin-top: auto;
  align-self: start;
}

.price-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.price-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.price-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.price-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.price-note.is-alert {
  border-color: rgba(165, 63, 46, 0.28);
  background: var(--alert-soft);
}

.price-note.is-alert strong {
  color: var(--alert);
}

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 4px 18px;
}

.faq-item[open] {
  border-color: rgba(8, 120, 255, 0.34);
  background: #f8fbff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- closing cta ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(8, 120, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 100%);
  box-shadow: var(--shadow-sm);
}

.closing h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.14;
}

.closing p {
  margin: 12px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.store-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.store-badge {
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: transform 150ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: 158px;
  height: 52px;
  object-fit: contain;
}

.store-badge--google img {
  width: 178px;
  object-fit: cover;
}

/* ---------- footer ---------- */

.legal-footer {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(30px, 5vw, 54px) auto 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.legal-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .lc-hero-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-figure {
    max-width: 560px;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .split,
  .safety-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .closing {
    grid-template-columns: 1fr;
  }

  .store-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .nav-actions .nav-hide {
    display: none;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 15px;
  }

  .trust-strip,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-scan {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .roster-name small {
    white-space: normal;
  }

  .pin-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .kiosk-stage {
    margin-bottom: 18px;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  .nav-actions .nav-compact-hide {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
