/* ============================================================
   about-moto-v2.css — composición editorial para /about
   MOTO identity: dark / technical / blueprint
   Cargado al FINAL del head (después del <style id="moto-about-disable">)
   para ganar empates de especificidad contra about.CKFe_wyj.css.
   Los selectores de clase moto-about-* son propios de esta versión.
   ============================================================ */

:root {
  --moto-red: #ff2633;
  --moto-ink: #f2f3f5;
  --moto-body: #c9cdd4;
  --moto-dim: #9aa0a8;
  --moto-line: rgba(255, 255, 255, 0.12);
  --moto-chip-bg: rgba(255, 255, 255, 0.04);
  --moto-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 1. grid de 3 columnas ---------- */

.moto-about-grid {
  display: grid;
  grid-template-columns: 4fr 4.6fr 4.2fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.moto-about-col { min-width: 0; }
.moto-about-col-center { max-width: 460px; }

/* separadores verticales sutiles */
.moto-about-col-left,
.moto-about-col-center { position: relative; }

@media (min-width: 1181px) {
  .moto-about-col-center { padding-left: clamp(2rem, 4vw, 3.5rem); border-left: 1px solid var(--moto-line); }
  .moto-about-col-right { padding-left: clamp(2rem, 4vw, 3.5rem); border-left: 1px solid var(--moto-line); }
}

/* ---------- 2. labels técnicos ---------- */

.moto-about-label {
  font-family: var(--moto-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moto-red);
  margin-bottom: 1rem;
}

/* ---------- 3. tipografía: título, meta, lead, prose ---------- */

.moto-about-head {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--moto-ink);
  margin: 0 0 1.25rem;
}

/* punto rojo post-título: sobrevive al SplitText del bundle y al swap de i18n */
.moto-about-head::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--moto-red);
  vertical-align: baseline;
}

.moto-about-meta {
  font-family: var(--moto-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--moto-dim);
  margin: 0 0 1.5rem;
}

.moto-about-photo { margin: 0 0 0.75rem; }
.moto-about-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(12%) contrast(1.02);
}

.moto-about-caption {
  font-family: var(--moto-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--moto-dim);
  margin: 0;
}

/* ---------- columna centro ---------- */

.moto-about-lead {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--moto-ink);
  margin: 0 0 1.25rem;
}

.moto-about-prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--moto-body);
  margin: 0 0 1.1rem;
}

.moto-about-prose:last-child { margin-bottom: 0; }

/* ---------- CTAs ---------- */

.moto-about-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--moto-line);
}

.moto-about-cta {
  font-family: var(--moto-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--moto-ink);
  text-decoration: underline;
  text-decoration-color: var(--moto-red);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.moto-about-cta-arrow { display: inline-block; margin-left: 6px; color: var(--moto-red); }

.moto-about-cta:hover,
.moto-about-cta:focus-visible { color: var(--moto-red); text-decoration-color: var(--moto-ink); }

/* ---------- columna derecha: stack + bloques ---------- */

.moto-about-block {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--moto-line);
}

.moto-about-block:last-child { border-bottom: 0; margin-bottom: 0; }

.moto-about-stack-cat {
  display: block;
  font-family: var(--moto-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--moto-dim);
  margin-bottom: 0.6rem;
}

.moto-about-stack-cat:not(:first-child) { margin-top: 1rem; }

.moto-about-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 02-STACK con logos (2026-10-28): chips = tiles cuadrados con el
   logo inline (simple-icons, fill currentColor -> sigue el tema).
   El nombre queda en title/aria-label para accesibilidad. */
.moto-about-chips li.moto-about-chip {
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: default;
}
.moto-about-chips li.moto-about-chip svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.moto-about-chips li.moto-about-chip:hover {
  border-color: rgba(255, 38, 51, 0.85);
  color: #fff;
  transform: translateY(-1px);
}

.moto-about-chips li {
  font-family: var(--moto-mono);
  font-size: 12px;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  color: var(--moto-body);
  background: var(--moto-chip-bg);
  border: 1px solid var(--moto-line);
  border-radius: 3px;
  white-space: nowrap;
}

.moto-about-h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--moto-ink);
  margin: 0 0 0.75rem;
}

/* ---------- 05 Galería: strip horizontal ---------- */

.moto-about-gallery { margin-top: clamp(3rem, 6vw, 5rem); }

.moto-about-gallery .moto-about-label { margin-bottom: 0.75rem; }
.moto-about-gallery-title { margin-bottom: 0.5rem; }
.moto-about-gallery-intro { max-width: 460px; margin-bottom: 2rem; }

.PageAbout__gallery_container {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--moto-dim) transparent;
  padding-bottom: 0.5rem;
}

/* especificidad igualada contra about.CKFe_wyj.css:
   .PageAbout__gallery_container .PageAbout__gallery_item img = (0,2,1) -> uso cadena mas larga */
.PageAbout__gallery .PageAbout__gallery_container .PageAbout__gallery_item {
  display: block;
  flex: 0 0 auto;
  width: auto !important;
  scroll-snap-align: start;
}

.PageAbout__gallery .PageAbout__gallery_container .PageAbout__gallery_item img {
  display: block;
  height: clamp(260px, 38vw, 460px);
  width: auto !important;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--moto-line);
}

/* ---------- responsive: stack a 1 columna ---------- */

@media (max-width: 1180px) {
  .moto-about-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
  }
  .moto-about-col-right {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    border-top: 1px solid var(--moto-line);
    padding-top: 2rem;
  }
  .moto-about-block { margin-bottom: 0; }
}

@media (max-width: 769px) {
  .moto-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .moto-about-col-center { max-width: none; padding: 0; border: 0; }
  .moto-about-col-right {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .moto-about-head { font-size: 40px; }
  .moto-about-head::after { width: 8px; height: 8px; margin-left: 9px; }
  .moto-about-photo { max-width: 420px; }

  /* GALERIA MOBILE (2026-10-31): fotos apiladas al 100% de ancho.
     El base de Astro (about.CKFe_wyj.css @media) declara flex-direction:column,
     y aca solo ganaba la altura mini del strip horizontal -> foto chica a la
     izquierda con aire muerto. Mobile = columna editorial: full width, 4:3. */
  .PageAbout__gallery .PageAbout__gallery_container {
    display: flex;
    flex-direction: column;   /* explicito: mata la herencia ambigua del base */
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .PageAbout__gallery .PageAbout__gallery_container .PageAbout__gallery_item {
    flex: 0 0 auto;
    width: 100% !important;
  }
  .PageAbout__gallery .PageAbout__gallery_container .PageAbout__gallery_item img {
    width: 100% !important;
    height: auto;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 40%;
  }
}

/* ---------- gato 3D (oiiaioooooiai) en la columna izquierda ---------- */

.moto-about-cat3d {
  margin-top: 2rem;
  width: min(100%, 560px); /* (2026-11-06 pedido: agrandar el ESPACIO del visor, no el gato) */
}

@media (max-width: 1180px) {
  .moto-about-cat3d { width: min(100%, 560px); }
}
@media (max-width: 769px) {
  .moto-about-cat3d { margin-top: 1.25rem; }
}

/* (v=5) TEMA 2 — los acentos del about siguen el switch del player
   (pedido 2026-11-05: "02 - STACK esta en rojo -> color de la tematica 2").
   Patron validado en works-detail.css: blanco #fff + text-shadow negro
   para legibilidad sobre el crema del tema 2. */
body[data-moto-theme="2"] { --moto-red: #ffffff; }

body[data-moto-theme="2"] .moto-about-label {
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.55);
}

body[data-moto-theme="2"] .moto-about-cta:hover,
body[data-moto-theme="2"] .moto-about-cta:focus-visible {
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.55);
}

body[data-moto-theme="2"] .moto-about-chips li.moto-about-chip:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

/* (v=68) la seccion TEMA 2 (re-palettizacion crema del about, sesion
   2026-10-25) fue ELIMINADA por pedido de Guillermo: el tema 2 solo
   cambia el fondo/estetica en el home; el about conserva SIEMPRE su
   identidad blueprint oscuro, como las demas subpaginas (v=65/67
   repararon el fondo GL via ascii3d). */
