/* ==========================================================================
   NextClass Now · landing
   Estático y sin dependencias: no hay fuentes ni scripts externos.
   Tema oscuro por defecto + variante clara con `prefers-color-scheme`.
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-soft: #101830;
  --card: #151f3a;
  --line: #26314f;
  --text: #e9eefc;
  --muted: #9dafd0;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --shadow: 0 18px 40px rgba(4, 10, 26, 0.45);
  --radius: 18px;
  --watch-bg: #0d1428;
  --watch-case: #1c2540;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fd;
    --bg-soft: #ffffff;
    --card: #ffffff;
    --line: #dfe5f4;
    --text: #16203a;
    --muted: #5b6b8c;
    --shadow: 0 16px 34px rgba(21, 32, 58, 0.12);
    --watch-bg: #ffffff;
    --watch-case: #d8e0f2;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 78% -12%, rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(760px 420px at 8% 4%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: inherit;
}

code {
  background: rgba(37, 99, 235, 0.14);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
}

/* -------------------------------------------------------------- idiomas -- */

/* Sólo se muestra el bloque que coincide con el idioma del documento. */
.i18n {
  display: none;
}

html[lang="es"] .i18n[data-lang="es"],
html[lang="en"] .i18n[data-lang="en"] {
  display: inline;
}

html[lang="es"] p .i18n[data-lang="es"],
html[lang="en"] p .i18n[data-lang="en"],
html[lang="es"] li .i18n[data-lang="es"],
html[lang="en"] li .i18n[data-lang="en"],
html[lang="es"] figcaption .i18n[data-lang="es"],
html[lang="en"] figcaption .i18n[data-lang="en"] {
  display: inline;
}

/* --------------------------------------------------------------- layout -- */

.top,
main,
.foot {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1.25rem;
}

.top {
  align-items: center;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.85rem;
  padding-top: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 700;
  gap: 0.55rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  color: var(--accent-soft);
  display: inline-flex;
}

.nav {
  display: flex;
  gap: 1.20rem;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.lang {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  padding: 0.15rem;
}

.lang button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
}

.lang button.is-active {
  background: var(--accent);
  color: #fff;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 2.5rem 0 3.5rem;
}

.badge {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  color: var(--accent-soft);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding: 0.28rem 0.8rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 34rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1.2rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.hero-facts {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li::before {
  color: var(--accent-soft);
  content: "•";
  margin-right: 0.4rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------ capturas -- */

/* Capturas reales del reloj (landing/screenshots): las redondas ya vienen con
   las esquinas transparentes, así que se apoyan directamente en la tarjeta. */
.hero-shot {
  display: block;
  filter: drop-shadow(0 24px 44px rgba(4, 10, 26, 0.55));
  height: auto;
  margin: 0 auto;
  max-width: 340px;
  width: 100%;
}

.shot-img {
  display: block;
  height: 250px;
  margin: 0 auto;
  width: auto;
}

.shot-img.is-square {
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(4, 10, 26, 0.5);
}

/* Ajustes del teléfono: dos capturas verticales en su propia rejilla. */
.shots-phones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Las capturas se toman a 2x desde la vista previa de los ajustes, así que se
   pueden enseñar a tamaño de móvil sin perder nitidez. */
.shot-phone {
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(4, 10, 26, 0.55);
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
}

/* Nota al pie de la tabla de widget y tarjeta rápida. */
.tarjetas-note {
  margin-top: 1rem;
  max-width: 46rem;
}

/* ------------------------------------------- maquetas de las tarjetas -- */

/* No son capturas: son las dos tarjetas del reloj dibujadas con la geometría
   real de `secondary-widget` (pantalla completa) y `app-widget` (240 unidades).
   La escala se maneja con `--s`, así que el segundo caso es el mismo bloque
   con las letras y los paneles reducidos. */
.shots-mocks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.mock-screen {
  align-items: center;
  background: #000;
  border: 6px solid var(--watch-case);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex: 0 0 auto;
  height: 260px;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  width: 260px;
}

.mock-ui {
  --s: 1;
  display: grid;
  gap: calc(7px * var(--s));
  width: 190px;
}

.mock-ui.is-card {
  --s: 0.62;
}

.mock-brand {
  color: #ffffff;
  font-size: calc(16px * var(--s));
  font-weight: 700;
  text-align: center;
}

.mock-card {
  background: #111827;
  border-radius: calc(14px * var(--s));
  padding: calc(8px * var(--s)) calc(10px * var(--s)) calc(8px * var(--s)) calc(18px * var(--s));
  position: relative;
}

.mock-bar,
.mock-bar-sm {
  background: var(--tint, #3b82f6);
  border-radius: 2px;
  left: calc(8px * var(--s));
  position: absolute;
  width: calc(3px * var(--s));
}

.mock-bar {
  bottom: calc(9px * var(--s));
  top: calc(9px * var(--s));
}

.mock-brand,
.mock-label,
.mock-subject,
.mock-info {
  display: block;
}

.mock-label {
  color: #9ca3af;
  font-size: calc(10px * var(--s));
  letter-spacing: 0.04em;
}

.mock-subject {
  color: var(--tint, #3b82f6);
  font-size: calc(24px * var(--s));
  line-height: 1.15;
}

.mock-info {
  color: #9ca3af;
  font-size: calc(11px * var(--s));
}

.mock-progress {
  background: #64748b;
  border-radius: 999px;
  display: block;
  height: calc(4px * var(--s));
  margin-top: calc(7px * var(--s));
  overflow: hidden;
}

.mock-progress i {
  background: var(--tint, #3b82f6);
  display: block;
  height: 100%;
}

.mock-next {
  align-items: center;
  background: #111827;
  border-radius: calc(11px * var(--s));
  display: flex;
  padding: calc(6px * var(--s)) calc(10px * var(--s)) calc(6px * var(--s)) calc(20px * var(--s));
  position: relative;
}

.mock-next span {
  color: #9ca3af;
  font-size: calc(12px * var(--s));
}

.mock-bar-sm {
  bottom: calc(6px * var(--s));
  top: calc(6px * var(--s));
  width: calc(2px * var(--s));
}


/* ------------------------------------------------------------- secciones -- */

.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 46rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

/* -------------------------------------------------------------- capturas -- */

.shots {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}

.shot {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.shot figcaption strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/* ------------------------------------------------------------ tarjetas -- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.ico {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------------- pasos -- */

.steps {
  counter-reset: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 0.9rem;
  padding: 1.2rem;
}

.steps h3 {
  font-size: 1rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.step-n {
  align-items: center;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--accent-soft);
  display: flex;
  flex: 0 0 30px;
  font-size: 0.9rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
}

/* ---------------------------------------------------------------- tabla -- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 1rem;
  text-align: left;
}

thead th {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------- chips idiomas */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  padding: 0.4rem 0.95rem;
}

/* -------------------------------------------------------------- instalar -- */

/* Pasos a una sola columna, sin estirarse de lado a lado. */
.steps-compact {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

/* --------------------------------------------------------------- footer -- */

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-bottom: 2.4rem;
  padding-top: 1.8rem;
  text-align: center;
}

.foot p {
  margin: 0.4rem 0;
}

.foot a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-brand {
  color: var(--text);
}

.foot-meta {
  font-size: 0.85rem;
}

.foot .heart {
  color: #ef4444;
}

.foot .dot {
  color: var(--line);
  margin: 0 0.4rem;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.4rem;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cta,
  .hero-facts {
    justify-content: center;
  }

  .shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card {
    transition: none;
  }
}
