/* ==========================================================
   sguevara.com — El Cuaderno
   Colores de tema: cambia aquí y cambia todo el sitio.
   Para usar el violeta de tu logo en vez del cian:
   --sistemas: #A27BFF;
   ========================================================== */
/* Fuentes alojadas en el propio sitio (licencia OFL, ver assets/fonts) */
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ser: #E8388E;       /* fucsia — Ser */
  --tiempo: #F28C28;    /* naranja — Tiempo */
  --sistemas: #2FC6D8;  /* cian — Sistemas */

  --fondo: #0B0B0C;
  --texto: #EDEAE3;
  --texto-2: #D6D2CA;
  --suave: #B9B5AD;
  --apagado: #A29E96;
  --linea: #2A2A2D;
  --linea-2: #3A3A3E;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Página del libro: clima tierra */
body.tierra {
  --fondo: #E7C08A;
  --texto: #2A1A0E;
  --texto-2: #3A2414;
  --suave: #4A2E16;
  --apagado: #6B4420;
  --linea: rgba(42, 26, 14, 0.22);
  --linea-2: rgba(42, 26, 14, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--texto); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sistemas); outline-offset: 3px; }
::selection { background: var(--ser); color: #0B0B0C; }

.envoltura { max-width: 1360px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.envoltura-lectura { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.saltar { position: absolute; left: -9999px; top: 8px; background: var(--texto); color: var(--fondo); padding: 8px 14px; z-index: 10; }
.saltar:focus { left: 8px; }

/* utilidades */
.c-ser { color: var(--ser); }
.c-tiempo { color: var(--tiempo); }
.c-sistemas { color: var(--sistemas); }
.f-ser { background: var(--ser); }
.f-tiempo { background: var(--tiempo); }
.f-sistemas { background: var(--sistemas); }
.tema-ser { --tema: var(--ser); }
.tema-tiempo { --tema: var(--tiempo); }
.tema-sistemas { --tema: var(--sistemas); }

.mono { font-family: var(--mono); font-size: 14px; }
.mono-suave { font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--apagado); margin: 0; }
.derecha { text-align: right; }
.etiqueta {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--apagado); margin: 0 0 12px; font-weight: 400;
}
.grande { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; margin: 0; }
.cursiva { font-style: italic; }
.bajada { margin: 0; max-width: 580px; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--texto-2); }
.enlace-mono, .menu a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- La marca (T + tres puntos) ---------- */
.marca { display: block; overflow: visible; }
.marca .trazo { fill: currentColor; }
.marca .p1 { fill: var(--ser); }
.marca .p2 { fill: var(--sistemas); }
.marca .p3 { fill: var(--tiempo); }
.marca-nav { width: 40px; height: 47px; color: var(--texto); }
.marca-hero { width: clamp(120px, 15vw, 220px); height: auto; color: var(--texto); flex: none; }
.marca-pie { width: clamp(90px, 11vw, 160px); height: auto; color: var(--texto); flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .marca-hero .punto { animation: caer 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.25) both; transform-box: fill-box; transform-origin: center; }
  .marca-hero .p1 { animation-delay: 0.15s; }
  .marca-hero .p2 { animation-delay: 0.3s; }
  .marca-hero .p3 { animation-delay: 0.45s; }
  .marca-hero .trazo { animation: aparecer 0.8s ease-out both; }
  .logo:hover .marca-nav .punto { animation: latir 0.6s ease-in-out; transform-box: fill-box; transform-origin: center; }
  .logo:hover .marca-nav .p2 { animation-delay: 0.08s; }
  .logo:hover .marca-nav .p3 { animation-delay: 0.16s; }
}
@keyframes caer { from { transform: translateY(-60px) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes latir { 50% { transform: translateY(-5px); } }

/* ---------- Cabecera ---------- */
.cabecera {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px; padding-top: 22px; padding-bottom: 22px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo span { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.menu a { text-decoration: none; padding: 8px 0; display: inline-block; }
.menu a[aria-current="page"], .menu a:hover { color: var(--sistemas); }
body.tierra .menu a[aria-current="page"], body.tierra .menu a:hover { color: #7A2E05; }

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: 56px; }
.hero-arriba { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hero-arriba .etiqueta { margin: 0; }
.titular {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 11.2vw, 168px); line-height: 0.92; letter-spacing: -0.005em;
}
.titular span { display: block; }
.hero-abajo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 44px; }

/* ---------- Tres movimientos ---------- */
.movimientos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
  padding-top: 0; padding-bottom: 0;
}
.movimiento { padding: 30px 28px 34px 0; display: flex; flex-direction: column; gap: 10px; }
.movimiento h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; }
.movimiento p { margin: 0; font-size: 18px; color: var(--suave); }

/* ---------- Secciones ---------- */
.seccion { padding-top: 110px; padding-bottom: 32px; }
.seccion.arriba { padding-top: 48px; }
.seccion-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.titulo-seccion { margin: 0 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 7.5vw, 104px); text-transform: uppercase; line-height: 0.95; }
.seccion-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 26px; }
.seccion-pie .mono-suave { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Cuaderno: filtros y lista ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.chip {
  min-height: 44px; padding: 0 16px; cursor: pointer; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  background: transparent; color: var(--texto); border: 1px solid var(--linea-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-ser { color: var(--ser); }
.chip-tiempo { color: var(--tiempo); }
.chip-sistemas { color: var(--sistemas); }
.chip:hover { border-color: currentColor; }
.chip[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: var(--fondo); }
.chip-ser[aria-pressed="true"] { background: var(--ser); border-color: var(--ser); color: #0B0B0C; }
.chip-tiempo[aria-pressed="true"] { background: var(--tiempo); border-color: var(--tiempo); color: #0B0B0C; }
.chip-sistemas[aria-pressed="true"] { background: var(--sistemas); border-color: var(--sistemas); color: #0B0B0C; }

.notas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.nota[hidden] { display: none; }
.nota a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--linea); text-decoration: none;
  transition: padding 0.2s ease;
}
.nota a:hover { padding-left: 12px; }
.nota a:hover .nota-titulo { color: var(--tema); }
.nota-num { flex: 0 0 56px; font-family: var(--mono); font-size: 14px; color: var(--apagado); }
.nota-meta {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 170px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--apagado);
}
.punto-tema { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tema); }
.nota-cuerpo { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nota-titulo { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; line-height: 1.05; transition: color 0.15s; }
.nota-extracto { font-size: 19px; line-height: 1.45; color: var(--suave); max-width: 720px; }
.nota-flecha { font-family: var(--mono); font-size: 20px; color: var(--tema); margin-left: auto; }
.sin-resultados { font-family: var(--mono); color: var(--apagado); padding: 28px 0; margin: 0; }

/* ---------- Tanmayo ---------- */
.tanmayo {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(72px, 15vw, 230px); line-height: 0.86;
  color: transparent; -webkit-text-stroke: 2px var(--texto);
}
.tanmayo-cuerpo { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.tanmayo-texto { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tarjetas {
  flex: 1.4 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--linea); border: 1px solid var(--linea);
}
.tarjeta { background: var(--fondo); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.tarjeta p { margin: 0; font-size: 18px; color: var(--suave); }
.raya { width: 28px; height: 4px; display: block; }

.boton {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--texto); font-family: var(--mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; color: var(--texto);
  transition: background 0.15s, color 0.15s;
}
.boton:hover { background: var(--texto); color: var(--fondo); }
.boton-oscuro { background: #2A1A0E; color: #F3E3CB; border-color: #2A1A0E; }
.boton-oscuro:hover { background: #4A2E16; color: #F3E3CB; }
.boton-borde { border-color: #2A1A0E; color: #2A1A0E; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Compás (bloque en inicio) ---------- */
.compas { margin-top: 110px; background: #E7C08A; color: #2A1A0E; }
.compas a { color: #2A1A0E; }
.compas .etiqueta { color: #6B4420; }
.compas-dentro { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.compas-portada { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.compas-portada img { width: 100%; box-shadow: 0 24px 60px rgba(60, 30, 5, 0.35); transition: transform 0.4s ease; }
.compas-portada:hover img { transform: rotate(-1deg) scale(1.01); }
.compas-texto { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.compas-texto h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.5vw, 76px); line-height: 0.95; text-transform: uppercase; }
.compas-texto p { margin: 0; }
.compas .boton-oscuro { color: #F3E3CB; }

/* ---------- Sobre mí ---------- */
.sobre { display: flex; flex-wrap: wrap; gap: 48px; }
.sobre-foto { flex: 1 1 300px; }
.sobre-foto img, .foto-vacia { max-width: 380px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sobre-foto img { filter: grayscale(1) contrast(1.05); }
.foto-vacia {
  background: #1A1A1C; border: 1px dashed var(--linea-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--apagado); text-align: center; padding: 16px;
}
.sobre-texto { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sobre-texto > p { margin: 0; }
.sobre-texto > p:not(.grande) { color: var(--suave); }
.linaje { border-top: 1px solid var(--linea); padding-top: 20px; }
.linaje .mono { font-size: 15px; line-height: 1.9; margin: 0; }

/* ---------- Pie ---------- */
.pie { padding-top: 120px; padding-bottom: 36px; }
.pie-grande { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(16px, 3vw, 40px); }
.conversemos {
  display: block; text-decoration: none; font-family: var(--display); text-transform: uppercase;
  font-size: clamp(52px, 11vw, 176px); line-height: 0.9; min-width: 0; overflow-wrap: anywhere;
}
html, body { overflow-x: clip; }
.tarjeta h3 { overflow-wrap: anywhere; }
.conversemos:hover .c-sistemas { color: var(--tiempo); }
.pie-linea {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 52px; padding-top: 20px;
  border-top: 1px solid var(--linea); font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--apagado);
}
body.tierra .pie .c-sistemas { color: #7A2E05; }

/* ---------- Lectura ---------- */
.progreso { position: sticky; top: 0; height: 3px; background: var(--linea); z-index: 5; }
.progreso-barra { display: block; height: 100%; width: 0; }
.articulo { padding-top: 80px; padding-bottom: 32px; }
.articulo-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--apagado);
}
.articulo-meta .nota-meta { flex: none; }
.articulo-titulo {
  margin: 26px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 104px); line-height: 0.95;
}
.prosa { margin-top: 52px; font-size: 22px; line-height: 1.65; color: var(--texto-2); }
.prosa > * { margin: 0 0 26px; }
.prosa h2, .prosa h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--texto); line-height: 1.05; margin-top: 48px; }
.prosa h2 { font-size: 40px; } .prosa h3 { font-size: 30px; }
.prosa blockquote {
  margin: 40px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--tema, var(--tiempo));
  font-style: italic; font-size: clamp(26px, 3vw, 32px); line-height: 1.3; color: var(--texto);
}
.prosa blockquote p { margin: 0; }
.prosa a { color: var(--texto); text-decoration-color: var(--tema); }
.prosa ul, .prosa ol { padding-left: 1.2em; }
.prosa li { margin-bottom: 8px; }
.prosa img { margin: 36px 0; }
.prosa hr { border: 0; border-top: 1px solid var(--linea); margin: 48px 0; }
.prosa code { font-family: var(--mono); font-size: 0.85em; background: #1A1A1C; padding: 2px 6px; }
.articulo-pie {
  margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apagado);
}
.sigue { padding-top: 64px; }
.sigue-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.sigue-item { background: var(--fondo); padding: 30px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.sigue-item:hover .nota-titulo { color: var(--tema); }

/* ---------- Página del libro ---------- */
.compas-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.compas-hero-texto { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.compas-hero-texto h1 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 6.5vw, 96px); line-height: 0.93; }
.compas-hero-texto p { margin: 0; }
.compas-hero-img { flex: 1 1 440px; min-width: 0; max-width: 680px; box-shadow: 0 24px 60px rgba(60, 30, 5, 0.35); }
.principios-seccion { padding-bottom: 40px; }
.principios {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--linea); border: 1px solid var(--linea);
}
.principio { background: #EDCB98; }
.principio > a, .principio:not(:has(> a)) { display: flex; flex-direction: column; gap: 12px; padding: 26px; height: 100%; text-decoration: none; }
.principio > a:hover { background: #F3D6A8; }
.principio-n { font-family: var(--display); font-size: 44px; line-height: 1; color: #7A2E05; }
.principio-titulo { font-family: var(--display); font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.principio-frase { font-size: 18px; line-height: 1.45; color: var(--suave); }
.principio-leer { margin-top: auto; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #7A2E05; }
.principio-21 { background: #2A1A0E; color: #F3E3CB; }
.principio-21 .principio-n { color: #F28C28; }
.principio-21 .principio-frase { color: #E7C08A; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { padding-top: 24px; }
  .hero-arriba { flex-direction: column-reverse; align-items: flex-start; }
  .derecha { text-align: left; }
  .nota-num { flex-basis: auto; }
  .nota-meta { flex-basis: auto; }
  .nota-flecha { display: none; }
  .nota a:hover { padding-left: 0; }
  .prosa { font-size: 20px; }
  .seccion { padding-top: 80px; }
  .tanmayo { -webkit-text-stroke-width: 1.5px; }
}

/* ajustes */
.sigue-item .nota-meta, .articulo-meta .nota-meta { flex: none; }
.sigue-item .nota-titulo { font-size: clamp(24px, 2.4vw, 32px); }
.principio-21 { grid-column: 1 / -1; }
.principio-21 .principio-titulo { font-size: 32px; }

/* ==========================================================
   v4 — secciones a pantalla completa con flecha para bajar
   ========================================================== */
@font-face { font-family: "Kaushan Script"; src: url("/assets/fonts/kaushan-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --pincel: "Kaushan Script", "Brush Script MT", cursive; }

html:has(body.inicio) { scroll-snap-type: y proximity; }
.pantalla {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 72px; padding-bottom: 72px;
  scroll-snap-align: start;
}
.pantalla-color { scroll-snap-align: start; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; margin-top: 0; }
body.inicio .pie { scroll-snap-align: end; }

/* Inicio */
.hero-p { min-height: calc(100svh - 92px); padding-top: 24px; padding-bottom: 40px; }
.hero-p .etiqueta { margin-bottom: 26px; }
.hero-p .hero-abajo { align-items: flex-end; }
.t-bajar { display: block; text-decoration: none; color: var(--texto); flex: none; padding: 8px; border-radius: 16px; }
.marca-orbita { width: clamp(110px, 12vw, 180px); height: auto; color: var(--texto); }
@media (prefers-reduced-motion: no-preference) {
  .t-bajar { animation: invitar 3.6s ease-in-out infinite; }
  .t-bajar:hover { animation-play-state: paused; }
}
@keyframes invitar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Los tres puntos: órbitas elípticas lentas, cerca de la T */
.marca-orbita .orbita, .marca-orbita .orbita-y { animation-timing-function: cubic-bezier(.37,0,.63,1); animation-iteration-count: infinite; animation-direction: alternate; }
.marca-orbita .o1 { animation-name: orbX; animation-duration: 7s; --ax: -4px; }
.marca-orbita .o1 .orbita-y { animation-name: orbY; animation-duration: 7s; animation-delay: -3.5s; --ay: 3px; }
.marca-orbita .o2 { animation-name: orbX; animation-duration: 9s; animation-delay: -2s; --ax: 3.5px; }
.marca-orbita .o2 .orbita-y { animation-name: orbY; animation-duration: 9s; animation-delay: -6.5s; --ay: -4px; }
.marca-orbita .o3 { animation-name: orbX; animation-duration: 8s; animation-delay: -5s; --ax: 4px; }
.marca-orbita .o3 .orbita-y { animation-name: orbY; animation-duration: 8s; animation-delay: -1s; --ay: 3px; }
@keyframes orbX { from { transform: translateX(var(--ax)); } to { transform: translateX(calc(var(--ax) * -1)); } }
@keyframes orbY { from { transform: translateY(var(--ay)); } to { transform: translateY(calc(var(--ay) * -1)); } }

/* Cómo trabajo: líneas gruesas de color en vez de números */
.como-p .movimientos { border: 0; gap: 48px 40px; }
.como-p .movimiento { padding: 0; gap: 22px; }
.linea { display: block; height: 14px; width: 72%; border-radius: 3px; transform-origin: left center; }
.como-p .movimiento h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: .95; }
.como-p .movimiento p { font-size: 21px; max-width: 30ch; }
@media (prefers-reduced-motion: no-preference) {
  .como-p .linea { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
  .como-p.visible .linea { transform: scaleX(1); }
  .como-p.visible .movimiento:nth-child(2) .linea { transition-delay: .2s; }
  .como-p.visible .movimiento:nth-child(3) .linea { transition-delay: .4s; }
}

/* Tanmayo en trazo de pincel */
.tanmayo-pincel {
  margin: 0; font-family: var(--pincel); font-weight: 400; text-transform: uppercase;
  font-size: clamp(76px, 13vw, 210px); line-height: 1.05; letter-spacing: 0.01em;
  color: var(--texto); padding-right: .2em;
}
@media (prefers-reduced-motion: no-preference) {
  .tanmayo-pincel { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s cubic-bezier(.6,.05,.25,1); }
  #tanmayo.visible .tanmayo-pincel { clip-path: inset(0 -10% 0 0); }
}

/* Sobre mí */
.suave-linaje { color: var(--apagado) !important; margin-top: 10px !important; }

/* Flecha flotante */
.bajar-flotante {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(20,20,22,.85); border: 1px solid #3A3A3E; color: var(--texto);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.bajar-flotante svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.bajar-flotante.mostrar { opacity: 1; pointer-events: auto; }
.bajar-flotante:hover { background: var(--texto); color: var(--fondo); }
.bajar-flotante.arriba svg { transform: rotate(180deg); }
body.en-tierra .bajar-flotante { background: rgba(42,26,14,.9); border-color: #2A1A0E; color: #F3E3CB; }

@media (max-width: 640px) {
  .pantalla { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .hero-p { min-height: calc(100svh - 150px); }
  html:has(body.inicio) { scroll-snap-type: none; }
  .bajar-flotante { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .linea { height: 10px; }
}
#sobre.pantalla { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; }
@media (max-width: 640px) { .t-bajar { margin-left: auto; } .tanmayo-pincel { font-size: clamp(56px, 16vw, 90px); } }

/* Etapa 1: etiquetas y destacadas */
.etiquetas { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.etiquetas li { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--suave); border: 1px solid var(--linea-2); border-radius: 999px; padding: 6px 14px; }
.nota-destacada { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tiempo); }
