/* ==========================================================
   TOTEM Modern Web — 5 Técnicas
   Color principal TOTEM: #fab800
   ========================================================== */

/* ── 1. CUSTOM CURSOR ───────────────────────────────────── */
#tm-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fab800;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.28s cubic-bezier(.22,1,.36,1),
              height 0.28s cubic-bezier(.22,1,.36,1),
              background 0.2s,
              opacity 0.25s;
  opacity: 0;
}
body:hover #tm-cursor { opacity: 1; }
#tm-cursor.tm-expand {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid #fab800;
}

/* ── 2. MARQUEE (About Us, debajo de imagen full-width) ─── */
#tm-marquee-wrap {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  background: #ffffff;
  padding: 13px 0;
  overflow: hidden;
}
@keyframes tm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
#tm-marquee-track {
  display: flex;
  width: max-content;
  animation: tm-marquee 34s linear infinite;
  white-space: nowrap;
}
#tm-marquee-track:hover { animation-play-state: paused; }
.tm-marquee-item {
  font-family: 'DIN', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #707070;
  padding: 0 30px;
  flex-shrink: 0;
}
.tm-marquee-sep {
  color: #fab800;
  padding: 0 4px;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
}

/* ── 3. COUNTERS — sección de estadísticas ──────────────── */
#tm-stats {
  background: #454240;       /* ligeramente más claro que #504946 */
  padding: 64px 24px;
}
#tm-stats .tm-stats-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px 20px;
}
.tm-stat-item { text-align: center; min-width: 130px; }
.tm-stat-number {
  display: block;
  font-family: 'DIN', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(50px, 7.5vw, 76px);
  font-weight: 700;
  color: #ffd44d;            /* más claro que #fab800 */
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tm-stat-label {
  display: block;
  font-family: 'DIN', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px;
}

/* ── 4. DISCIPLINES — números CSS + hover dorado ─────────── */

/* Bullet point por elemento de disciplina */
.experience-block .column > div > p {
  position: relative;
  padding: 10px 12px 10px 26px;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: #504946;
  cursor: default;
  transition: color 0.2s ease,
              border-left-color 0.28s cubic-bezier(.22,1,.36,1),
              padding-left 0.2s ease;
}
/* Bullet · siempre visible en gris neutro */
.experience-block .column > div > p::before {
  content: '·';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: rgba(80, 73, 70, 0.3);
  transition: color 0.2s;
}
/* Hover: texto dorado + barra + bullet dorado */
.experience-block .column > div > p:hover {
  color: #fab800;
  border-left-color: #fab800;
  padding-left: 30px;
}
.experience-block .column > div > p:hover::before {
  color: #fab800;
}

/* ─── TECNOLOGÍA MODERNA: CSS Scroll-Driven Animations ─────
   Cada línea de disciplina se anima al entrar en viewport
   sin JavaScript. Soportado en Chrome 115+ / Safari 18+.
   En Firefox degrada silenciosamente (las líneas aparecen
   estáticas, sin romper nada).
────────────────────────────────────────────────────────── */
@supports (animation-timeline: view()) {
  @keyframes tm-discipline-in {
    from { opacity: 0.15; transform: translateX(-10px); }
    to   { opacity: 1;    transform: none; }
  }
  .experience-block .column > div > p {
    animation: tm-discipline-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}

/* ── 5. TEAM — grayscale → color + contenido centrado ─────── */

/* NO tocar el grid del tema — solo centrar contenido dentro de cada card */
.people-block .column              { text-align: center !important; }
.people-block .image               { display: block !important; margin-left: auto !important; margin-right: auto !important; overflow: hidden; }
.people-block .name                { text-align: center !important; }
.people-block .description         { text-align: left; }

/* Línea dorada que crece bajo el nombre al hover */
.people-block .name {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.people-block .name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: #fab800;
  transition: width 0.32s cubic-bezier(.22,1,.36,1);
}
.people-block .column:hover .name::after { width: 48px; }

/* Grayscale → color al hover */
.people-block .image img {
  filter: grayscale(100%);
  transition: filter 0.55s cubic-bezier(.22,1,.36,1),
              transform 0.55s cubic-bezier(.22,1,.36,1);
  display: block;
  width: 100%;
}
.people-block .column:hover .image img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* ── DISCIPLINE HEADERS — categorías ────────────────────── */
.tm-disc-header {
  font-family: 'DIN', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #fab800 !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(250,184,0,0.35) !important;
  border-left: none !important;
  padding: 0 0 10px 0 !important;
  margin: 0 0 6px 0 !important;
  cursor: default !important;
  counter-increment: none !important;
}
.experience-block .column > div > p.tm-disc-header::before { content: none !important; }
.experience-block .column > div > p.tm-disc-header:hover   { color: #fab800 !important; border-left-color: transparent !important; padding-left: 0 !important; }

/* ── READING PROGRESS BAR — CSS Scroll-Driven Animation ─── */
/*  Barra dorada fija arriba que avanza al hacer scroll.
    Sin JavaScript. Soportado Chrome 115+ / Safari 18+.    */
#tm-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #fab800, #ffd44d);
  z-index: 100000;
  pointer-events: none;
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  @keyframes tm-progress-fill {
    from { width: 0%; }
    to   { width: 100%; }
  }
  #tm-progress-bar {
    width: 100%;
    animation: tm-progress-fill linear both;
    animation-timeline: scroll(root);
  }
}

/* ── SCROLL REVEAL — marquee y stats ────────────────────── */
.tm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1),
              transform 0.65s cubic-bezier(.22,1,.36,1);
}
.tm-reveal.tm-visible {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #tm-marquee-track   { animation: none !important; }
  .tm-reveal          { opacity: 1 !important; transform: none !important; transition: none !important; }
  .people-block .image img { transition: filter 0.1s; }
  .experience-block .column > div > p { animation: none !important; opacity: 1 !important; transform: none !important; }
}
