/* Página comercial de SchoolPlayer (dominios `web` de la sección [app]). No depende de styles.css. */

:root {
  color-scheme: light;
  --navy: #0d2a4d;
  --accent: #e8731a;
  --accent-ink: #b4520a;
  --on-accent: #fff;
  --bg: #fbfbfd;
  --bg-alt: #f1f4f9;
  --surface: #fff;
  --line: #dfe4ec;
  --text: #121a26;
  --muted: #566173;
  --ok: #157347;
  --ok-soft: #e4f5ec;
  --no: #b42318;
  --no-soft: #fdecea;
  --hero-a: #0d2a4d;
  --hero-b: #16467c;
  --shadow: 0 1px 2px rgb(13 42 77 / 6%), 0 12px 32px rgb(13 42 77 / 8%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent-ink: #ffa45c;
    --bg: #0c1118;
    --bg-alt: #111822;
    --surface: #161e2a;
    --line: #273142;
    --text: #edf1f6;
    --muted: #9fabbd;
    --ok: #4ac98a;
    --ok-soft: #12291e;
    --no: #f97066;
    --no-soft: #3a1a18;
    --hero-a: #08182c;
    --hero-b: #103459;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ancho {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.seccion {
  padding: clamp(56px, 9vw, 104px) 0;
}

.seccion.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.antetitulo {
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entrada {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hero-a) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.cabecera .ancho {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.marca svg {
  width: 28px;
  height: 28px;
}

.marca b {
  color: var(--accent);
  font-weight: 700;
}

.menu {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.92rem;
}

.menu a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}

.menu a:hover {
  color: #fff;
}

/* Selector de idioma: un enlace por idioma, sin scripts. */
.idiomas {
  display: flex;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.idiomas a {
  padding: 4px 7px;
  border-radius: 6px;
  color: rgb(255 255 255 / 62%);
  text-decoration: none;
}

.idiomas a:hover {
  color: #fff;
}

.idiomas a[aria-current="page"] {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.boton:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  transform: translateY(-1px);
}

.boton.pequeno {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.boton.claro {
  border-color: rgb(255 255 255 / 35%);
  background: transparent;
  color: #fff;
}

.boton.claro:hover {
  background: rgb(255 255 255 / 10%);
}

/* Portada */

.portada {
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgb(232 115 26 / 22%), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: #fff;
}

.portada .ancho {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 9vw, 112px);
}

.portada h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.portada h1 em {
  color: var(--accent);
  font-style: normal;
}

.portada .entrada {
  color: rgb(255 255 255 / 80%);
  font-size: 1.15rem;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.garantias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
}

.garantias li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 700;
}

/* Maqueta del reproductor */

.maqueta {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: #0a1422;
  box-shadow: 0 30px 80px rgb(0 0 0 / 40%);
  transform: rotate(1.2deg);
}

.maqueta-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.maqueta-barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
}

.maqueta-url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: rgb(255 255 255 / 70%);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maqueta-url s {
  color: rgb(255 255 255 / 38%);
}

.maqueta-url b {
  color: #fff;
  font-weight: 600;
}

.maqueta-video {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1c3d66, #0f2440);
}

.maqueta-video svg {
  width: 72px;
  height: 72px;
  fill: #fff;
  opacity: 0.92;
}

.maqueta-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 16px;
  color: rgb(255 255 255 / 75%);
  font-size: 0.85rem;
}

.sello {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgb(74 201 138 / 16%);
  color: #6fe0a8;
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Los logos son para fondo claro: van siempre sobre una ficha blanca. */
.logo-ficha {
  display: grid;
  place-items: center;
  height: 84px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.logo-ficha img {
  display: block;
  width: auto;
  height: 52px;
}

/* Rejillas y tarjetas */

.rejilla {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.rejilla.tres {
  grid-template-columns: repeat(3, 1fr);
}

.rejilla.dos {
  grid-template-columns: repeat(2, 1fr);
}

.tarjeta {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tarjeta p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}

.tarjeta .icono {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink);
}

.icono svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Comparativa */

.comparativa .tarjeta h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.etiqueta {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.etiqueta.no {
  background: var(--no-soft);
  color: var(--no);
}

.etiqueta.si {
  background: var(--ok-soft);
  color: var(--ok);
}

.tarjeta.destacada {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow);
}

/* Pasos */

.pasos {
  counter-reset: paso;
}

.pasos li {
  position: relative;
  counter-increment: paso;
}

.pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.rutas {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.92rem;
}

.rutas li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.rutas code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem;
}

.rutas span:last-child {
  margin-left: auto;
  color: var(--muted);
}

/* Dispositivos */

.dispositivo h3 {
  font-size: 1.35rem;
}

.dispositivo .sub {
  margin-top: 4px;
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.lista {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.97rem;
}

.lista li {
  position: relative;
  padding-left: 26px;
}

.lista li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.lista strong {
  color: var(--text);
  font-weight: 600;
}

/* Privacidad */

.dos-columnas {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

/* Plataformas */

.plataformas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.plataformas li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
}

.plataformas svg {
  width: 20px;
  height: 20px;
  fill: currentcolor;
}

/* Cierre */

.cierre {
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: #fff;
  text-align: center;
}

.cierre .entrada {
  margin-inline: auto;
  color: rgb(255 255 255 / 80%);
}

.cierre .acciones {
  justify-content: center;
}

.cierre .correo {
  margin-top: 18px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.92rem;
}

.pie {
  padding: 40px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.pie .ancho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.pie .logo-ficha {
  height: 72px;
  padding: 8px 16px;
}

.pie .logo-ficha img {
  height: 54px;
}

.pie nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.pie small {
  flex-basis: 100%;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .portada .ancho,
  .dos-columnas,
  .rejilla.tres,
  .rejilla.dos {
    /* minmax(0, …): con 1fr la columna no baja del ancho mínimo de su contenido
       (la barra de la maqueta no se parte) y la página se sale de la pantalla. */
    grid-template-columns: minmax(0, 1fr);
  }

  .menu {
    display: none;
  }

  .cabecera .ancho {
    gap: 12px;
  }

  .idiomas {
    margin-left: auto;
  }
}

/* En el móvil no caben la marca, el idioma y el botón: el botón ya está en la portada y al final. */
@media (max-width: 560px) {
  .cabecera .boton {
    display: none;
  }

  .maqueta {
    transform: none;
  }

  .rutas span:last-child,
  .pie nav {
    margin-left: 0;
  }
}

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

  .boton {
    transition: none;
  }
}

[id] {
  scroll-margin-top: 72px;
}

/* Caso real */

.caso {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-left-width: 5px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.caso h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.caso > p:not(.antetitulo) {
  max-width: 78ch;
  margin-top: 12px;
  color: var(--muted);
}

.cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 0;
}

.cifras dt {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cifras dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.caso .fuente {
  margin-top: 22px;
  font-size: 0.88rem;
}

.caso a {
  color: var(--accent-ink);
}

@media (max-width: 900px) {
  .cifras {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Aviso legal */

.legal {
  padding: 48px 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.86rem;
}

.legal {
  min-height: 60vh;
}

.legal h1 {
  color: var(--text);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.legal .rejilla {
  gap: 32px;
  margin-top: 32px;
  font-size: 0.95rem;
}

.legal h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.legal a {
  color: var(--accent-ink);
}

.legal .nota-idioma {
  margin-top: 32px;
  font-size: 0.82rem;
}
