/* Landing de canoria.app, con la identidad visual de la app: la dirección A, «cálida», que Marcos eligió el
   23/10/2026 (E02-T14). Los valores de :root se copian de identidad/README.md con los mismos nombres; para
   cambiar uno se cambia allá, acá y en la app, en el mismo commit. El resto de la hoja usa solo las variables. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fuentes/figtree.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --fondo: #fbf4e8;
  --fondo-alterno: #f5ead6;
  --superficie: #ffffff;
  --texto: #221c14;
  --texto-suave: #655c51;
  --borde: #e3d3b8;
  --primario: #f2a818;
  --sobre-primario: #221c14;
  --primario-suave: #fcebc4;
  --primario-medio: #f8d27e;
  --acento: #8a5a00;
  --acierto: #2a7347;
  --ajustar: #a8490f;
  --fuente-titulos: "Figtree", system-ui, sans-serif;
  --fuente-texto: "Figtree", system-ui, sans-serif;
  --radio-chico: 12px;
  --radio: 20px;
  --radio-grande: 28px;
  --sombra: 0 1px 2px rgb(34 28 20 / 6%), 0 8px 24px rgb(34 28 20 / 8%);
}

/* Propios de la landing, fuera de la identidad: el ancho del contenido y la tinta del teléfono dibujado y del ojo
   del pájaro, igual en los dos modos (es el color del ojo en identidad/icono.svg). */
:root {
  --ancho: 1120px;
  --tinta: #221c14;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #1b1712;
    --fondo-alterno: #221d17;
    --superficie: #2a241c;
    --texto: #f7efe2;
    --texto-suave: #bdb2a2;
    --borde: #4a4034;
    --primario: #f5b835;
    --sobre-primario: #221c14;
    --primario-suave: #3e3220;
    --primario-medio: #7a5a1c;
    --acento: #f5c25a;
    --acierto: #7bd39c;
    --ajustar: #f2a36b;
    --sombra: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 40%);
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulos);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--acento);
}

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

::selection {
  background: var(--primario-medio);
  color: var(--texto);
}

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 20px;
}

.saltar {
  position: absolute;
  left: -999px;
}

.saltar:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--superficie);
  padding: 8px 12px;
  border-radius: var(--radio-chico);
}

.antetitulo {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acento);
}

/* Cabecera */

.cabecera {
  padding: 20px 0;
}

.cabecera .envoltura {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.marca-cuerpo {
  fill: var(--primario);
}

.marca-ojo {
  fill: var(--tinta);
}

.idioma {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--texto);
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
}

.idioma:hover {
  border-color: var(--texto-suave);
}

/* Portada */

.portada {
  position: relative;
  overflow: hidden;
  padding: 32px 0 88px;
}

/* Un pentagrama de fondo, en pantallas anchas: cinco líneas que se desvanecen hacia los costados. */
.portada::before {
  content: "";
  position: absolute;
  inset: 22% -10% auto;
  height: 168px;
  background: repeating-linear-gradient(
    to bottom,
    var(--borde) 0 1.5px,
    transparent 1.5px 42px
  );
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
  opacity: 0.6;
  pointer-events: none;
  display: none;
}

.portada::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  right: -200px;
  top: 0;
  background: radial-gradient(closest-side, var(--primario-suave), transparent);
  pointer-events: none;
}

.portada .envoltura {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 880px) {
  .portada {
    padding: 48px 0 112px;
  }

  .portada::before {
    display: block;
  }

  .portada .envoltura {
    grid-template-columns: 1.15fr 1fr;
  }
}

.portada h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  letter-spacing: -0.03em;
  margin-top: 16px;
}

/* Figtree no tiene itálica: la palabra que se destaca lleva un trazo amarillo, como de resaltador. */
.portada h1 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--primario) 58%, var(--primario) 90%, transparent 90%);
  padding: 0 0.06em;
  margin: 0 -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-color-scheme: dark) {
  .portada h1 em {
    background: linear-gradient(transparent 58%, var(--primario-medio) 58%, var(--primario-medio) 90%, transparent 90%);
  }
}

.lema {
  font-family: var(--fuente-titulos);
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 20px;
  max-width: 30ch;
}

.portada .detalle {
  color: var(--texto-suave);
  margin-top: 16px;
  max-width: 46ch;
}

/* El aviso no es un botón: va en primario suave, porque el amarillo lleno queda para las acciones. */
.pronto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 20px 12px 16px;
  background: var(--primario-suave);
  color: var(--texto);
  border-radius: 999px;
  font-size: clamp(0.9375rem, 4vw, 1.0625rem);
  font-weight: 700;
}

.pronto svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--acento);
}

/* El teléfono de la portada */

.telefono {
  justify-self: center;
  width: min(84%, 340px);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  background: var(--tinta);
  border-radius: 48px;
  outline: 1px solid var(--borde);
  box-shadow: var(--sombra), 0 40px 80px -24px color-mix(in srgb, var(--primario) 40%, transparent);
  rotate: 2deg;
}

.pantalla {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--fondo);
  padding: 44px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pantalla::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--tinta);
}

@media (prefers-color-scheme: dark) {
  .telefono,
  .pantalla::before {
    background: #0e0b08;
  }
}

.tarjeta {
  background: var(--superficie);
  border-radius: var(--radio);
  padding: 16px;
}

.tarjeta h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.tarjeta .suena {
  font-size: 0.8125rem;
  color: var(--texto-suave);
  margin-top: 2px;
}

.teclado {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.teclado .blanca {
  fill: #fff;
  stroke: var(--tinta);
  stroke-width: 1;
}

.teclado .negra {
  fill: var(--tinta);
}

.teclado .la3 {
  fill: var(--primario);
}

.teclado text {
  font-family: var(--fuente-texto);
  font-size: 13px;
  fill: var(--texto-suave);
  text-anchor: middle;
}

.teclado .desde {
  text-anchor: start;
}

.teclado .hasta {
  text-anchor: end;
}

.teclado .nombre-la3 {
  fill: var(--acento);
  font-weight: 700;
}

/* Tres momentos que se suceden: suena el piano, te toca cantar, llega la frase. */
.momentos {
  position: relative;
  flex: 1;
}

.momento {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  opacity: 0;
}

.momento-piano {
  animation: momento-1 9s infinite;
}

.momento-canto {
  animation: momento-2 9s infinite;
}

.momento-frase {
  animation: momento-3 9s infinite;
}

.momento .grande {
  font-family: var(--fuente-titulos);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.momento .chico {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.ondas {
  width: 96px;
  height: 56px;
  color: var(--primario);
}

.ondas circle {
  animation: onda 1.5s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.ondas circle:nth-child(2) {
  animation-delay: 0.25s;
}

.ondas circle:nth-child(3) {
  animation-delay: 0.5s;
}

.traza {
  width: 100%;
  height: 64px;
}

.traza .objetivo {
  stroke: var(--borde);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.traza .voz {
  fill: none;
  stroke: var(--acento);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: traza 9s infinite;
}

.microfono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.microfono::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primario);
  box-shadow: 0 0 0 4px var(--primario-medio);
  animation: latido 1.2s ease-in-out infinite;
}

.burbuja {
  background: var(--superficie);
  border-radius: var(--radio) var(--radio) var(--radio) 6px;
  padding: 14px 20px;
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--sombra);
}

.resultado {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.resultado b {
  color: var(--acierto);
}

.boton-cantar {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  background: var(--primario);
  color: var(--sobre-primario);
  font-weight: 700;
}

@keyframes momento-1 {
  0%, 30% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

@keyframes momento-2 {
  0%, 31% { opacity: 0; }
  35%, 63% { opacity: 1; }
  67%, 100% { opacity: 0; }
}

@keyframes momento-3 {
  0%, 64% { opacity: 0; translate: 0 8px; }
  68%, 96% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; }
}

@keyframes traza {
  0%, 35% { stroke-dashoffset: 320; }
  60%, 100% { stroke-dashoffset: 0; }
}

@keyframes onda {
  0% { opacity: 0; scale: 0.6; }
  40% { opacity: 1; }
  100% { opacity: 0; scale: 1.15; }
}

@keyframes latido {
  50% { opacity: 0.4; }
}

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

  .momento-piano,
  .momento-canto,
  .momento-frase,
  .traza .voz,
  .ondas circle,
  .microfono::before {
    animation: none;
  }

  .momento-frase {
    opacity: 1;
  }
}

/* Secciones */

.seccion {
  padding: 96px 0;
}

.seccion-alterna {
  background: var(--fondo-alterno);
}

.seccion h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  margin-top: 12px;
  max-width: 20ch;
}

.seccion .intro {
  color: var(--texto-suave);
  font-size: 1.125rem;
  margin-top: 16px;
  max-width: 56ch;
}

/* Cómo es una clase */

.pasos {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: paso;
}

@media (min-width: 800px) {
  .pasos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.paso {
  background: var(--superficie);
  border-radius: var(--radio-grande);
  padding: 28px;
  counter-increment: paso;
}

.paso-icono {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paso-icono svg {
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 50%;
  background: var(--primario-suave);
  color: var(--acento);
}

.paso-icono::after {
  content: counter(paso);
  font-family: var(--fuente-titulos);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primario-medio);
}

.paso h3 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-top: 24px;
}

.paso p {
  color: var(--texto-suave);
  margin-top: 10px;
}

.frases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.frase {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primario-suave);
}

.frase-bien {
  color: var(--acierto);
}

.frase-ajustar {
  color: var(--ajustar);
}

/* Un profesor que se acuerda */

.dos-columnas {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 880px) {
  .dos-columnas {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.decisiones {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decisiones li {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--superficie);
  font-size: 0.9375rem;
  font-weight: 600;
}

.sabe {
  background: var(--superficie);
  border-radius: var(--radio-grande);
  overflow: hidden;
}

.sabe-titulo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--borde);
}

.sabe-titulo h3 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.sabe-titulo p {
  color: var(--texto-suave);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.sabe-grupo {
  padding: 18px 24px;
  border-bottom: 1px solid var(--borde);
}

.sabe-grupo:last-child {
  border-bottom: 0;
}

.sabe-grupo h4 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acento);
}

.sabe-grupo .cita {
  font-size: 1.125rem;
  font-weight: 600;
}

.estado {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--primario-suave);
  color: var(--acento);
}

/* Cierre */

.cierre {
  text-align: center;
  padding: 112px 0;
}

.cierre h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 auto;
  max-width: 18ch;
}

.cierre .intro {
  margin-left: auto;
  margin-right: auto;
}

.pie {
  border-top: 1px solid var(--borde);
  padding: 28px 0;
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.pie .envoltura {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.pie a {
  color: inherit;
}
