/* ══════════════════════════════════════════════════════
  INFINITUM TATTOO STUDIO — Estilos (OPTIMIZADO)
  Archivo: infinitum-tattoo.css
══════════════════════════════════════════════════════ */

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

:root {
  --neon-pink: #ff2d78;
  --neon-pink-glow: rgba(255, 45, 120, 0.35);
  --neon-pink-soft: rgba(255, 0, 89, 0.24);
  --red: #c0392b;
  --red-soft: rgba(192, 57, 43, 0.18);
  --white: #f5f0eb;
  --gray-light: #b0a89a;
  --gray-mid: #5a5550;
  --gray-dark: #1e1c1a;
  --black: #0d0b0a;
  --almost-black: #111009;
}

/* ---- SCROLL BEHAVIOR ----
   Optimización: prefers-reduced-motion respeta accesibilidad Y mejora
   performance en dispositivos lentos. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none; /* oculta cursor nativo cuando hay cursor custom */
}

/* ---- NOISE TEXTURE OVERLAY ----
   Optimización: se mueve a un pseudo-elemento con
   will-change:transform para que sea su propia capa composite,
   sin afectar el paint del resto de la página. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  /* Promueve a su propia capa → no repinta con el scroll */
  will-change: transform;
  transform: translateZ(0);
}

/* ═══════════════════════════════════════════
   CURSOR PERSONALIZADO
   Optimización CRÍTICA: usamos transform en vez de top/left.
   top/left dispara layout (Reflow) en cada frame.
   transform solo dispara Composite — 10× más rápido.
   El JS ahora escribe: element.style.transform = translate(x,y)...
═══════════════════════════════════════════ */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--neon-pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  /* transform como posición base — el JS sobreescribe con translate(x,y) */
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease; /* solo para escala hover */
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 45, 120, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

/* Estados hover via clases CSS — el JS solo añade/quita la clase */
#cursor.cursor--hover {
  transform: translate(-50%, -50%) scale(2.5);
}
#cursor-ring.ring--hover {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 45, 120, 0.9);
}

/* ---- PROGRESS BAR ---- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--neon-pink);
  z-index: 10001;
  will-change: width;
  transition: width 0.1s linear;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: linear-gradient(to bottom, rgba(13,11,10,0.95), transparent);
  /* Promueve nav a capa propia para que el cambio de fondo no repinte el resto */
  will-change: background-color;
  transform: translateZ(0);
  transition: background-color 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
  background: rgba(13,11,10,0.97);
  padding-top: 1rem;
  padding-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-right: auto;
  margin-left: 0;
}
.nav-logo span { color: var(--neon-pink); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s;
}
/* Optimización: clase CSS en vez de style inline desde JS */
.nav-links a:hover,
.nav-links a.nav--active { color: var(--neon-pink); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 8rem 4rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, rgba(255,45,120,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(192,57,43,0.05) 0%, transparent 60%);
  /* Fondo estático → no necesita will-change */
}

.hero-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 58%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gray-mid) 20%, var(--gray-mid) 80%, transparent);
  opacity: 0.25;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
  /* Promueve a capa propia porque tiene glitch animation */
  will-change: transform;
}

.hero-title em {
  font-style: italic;
  color: var(--neon-pink);
  text-shadow: 0 0 40px var(--neon-pink-glow), 0 0 80px var(--neon-pink-glow);
}

.hero-subtitle {
  margin-top: 2.5rem;
  max-width: 380px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-light);
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--neon-pink);
  border: none;
  padding: 1rem 2.5rem;
  text-decoration: none;
  cursor: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 25px var(--neon-pink-glow);
}
.btn-primary:hover {
  background: #ff5596;
  box-shadow: 0 0 45px var(--neon-pink-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(245,240,235,0.2);
  padding: 1rem 2.5rem;
  text-decoration: none;
  cursor: none;
  transition: border-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.hero-scroll span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--gray-mid);
  animation: scrollPulse 2s 1.5s infinite;
}

.hero-year {
  position: absolute;
  right: 4rem;
  bottom: 2.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gray-mid);
  text-transform: uppercase;
}

/* ---- DIVIDER ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 4rem;
  margin: 0;
}
.divider-line { flex: 1; height: 1px; background: var(--gray-mid); opacity: 0.2; }
.divider-icon {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--neon-pink);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- ABOUT / STORY ---- */
.section { padding: 8rem 4rem; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--neon-pink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.about-title em { font-style: italic; color: var(--neon-pink); }

.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
}

.about-visual { position: relative; }

.about-box {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
}
.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-pink-soft), transparent 60%, var(--red-soft));
}
.about-box-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-box-svg { opacity: 0.15; }

.about-box-accent {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(255,45,120,0.2);
  pointer-events: none;
}

.stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--neon-pink);
  line-height: 1;
  text-shadow: 0 0 30px var(--neon-pink-glow);
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 0.4rem;
}

/* ---- HISTORIA TIMELINE ---- */
.history-section {
  padding: 8rem 4rem;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
}
.history-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,45,120,0.04), transparent 60%);
  pointer-events: none;
}

.history-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 5rem;
}
.history-title em { font-style: italic; color: var(--neon-pink); }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gray-mid) 10%, var(--gray-mid) 90%, transparent);
  opacity: 0.25;
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; padding-right: 2.5rem; }
.timeline-item:nth-child(odd) .timeline-empty { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; padding-left: 2.5rem; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }

.timeline-dot {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
}
.timeline-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink-glow);
  flex-shrink: 0;
}

.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--neon-pink);
  margin-bottom: 0.6rem;
}
.timeline-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.timeline-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-light);
}

/* ---- ESTILOS ---- */
.styles-section { padding: 8rem 4rem; }

.styles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.styles-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.styles-title em { font-style: italic; color: var(--neon-pink); }

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--gray-mid);
}

.style-card {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--gray-dark);
  overflow: hidden;
  cursor: pointer;
  /* Promueve a capa propia para el hover scale */
  will-change: transform;
  transform: translateZ(0);
}

.style-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
  will-change: transform;
}
.style-card:hover .style-card-bg { transform: scale(1.05); }

.style-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,10,0.95) 30%, rgba(13,11,10,0.2) 100%);
  transition: opacity 0.4s;
}

.style-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem;
}

.style-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 0.5rem;
}
.style-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.style-desc {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s;
  opacity: 0;
}
.style-card:hover .style-desc { max-height: 80px; opacity: 1; }

/* SVG art for cards */
.card-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  /* Lazy loading nativo: el HTML debe tener loading="lazy" */
  will-change: transform;
}
.style-card:hover .card-art img { transform: scale(1.08); }

/* ---- EQUIPO ---- */
.team-section {
  padding: clamp(7rem, 10vw, 11rem) 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  background:
    linear-gradient(90deg,
      rgba(13,11,10,0.68) 0%,
      rgba(13,11,10,0.42) 30%,
      rgba(13,11,10,0.52) 70%,
      rgba(13,11,10,0.68) 100%
    ),
    url('../img/infinitumbackground.jpeg') center center / cover no-repeat,
    var(--almost-black);
}

.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,45,120,0.11), transparent 34%),
    radial-gradient(ellipse at 50% 50%, rgba(245,240,235,0.05), transparent 26%),
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.62));
}

.team-section::after {
  content: '';
  position: absolute;
  inset: 1.2rem;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: inset 0 0 0 1px rgba(255,45,120,0.035);
}

.team-editorial-mark {
  position: absolute;
  top: 4rem;
  right: 4rem;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,45,120,0.62);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.team-copy,
.team-grid {
  position: relative;
  z-index: 2;
}

.team-copy {
  max-width: 620px;
}

.team-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 1.6rem;
  max-width: 620px;
  text-shadow: 0 24px 80px rgba(0,0,0,0.85);
}
.team-title em {
  display: block;
  font-style: italic;
  color: var(--neon-pink);
  text-shadow: 0 0 34px rgba(255,45,120,0.28);
}
.team-subtitle {
  font-size: 1.05rem;
  color: rgba(245,240,235,0.76);
  margin-bottom: 0;
  max-width: 470px;
  line-height: 1.9;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-self: end;
  width: min(100%, 520px);
}

.team-card {
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(145deg, rgba(22,19,17,0.74), rgba(8,7,6,0.86)),
    linear-gradient(90deg, rgba(255,45,120,0.08), transparent 42%);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  box-shadow:
    0 34px 100px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(255,45,120,0.035);
  transition: transform 0.45s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,45,120,0.28);
  box-shadow:
    0 42px 120px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 38px rgba(255,45,120,0.08);
}
.team-card::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,45,120,0.55), transparent 72%);
}
.team-card::after {
  content: '';
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-right: 1px solid rgba(255,45,120,0.28);
  border-bottom: 1px solid rgba(255,45,120,0.28);
  pointer-events: none;
}

.team-card-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,45,120,0.62);
  margin-bottom: 2rem;
}

.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255,45,120,0.28), rgba(192,57,43,0.10) 62%, rgba(0,0,0,0.28));
  border: 1px solid rgba(255,45,120,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.7rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 0 36px rgba(255,45,120,0.12);
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.team-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 1.45rem;
}
.team-bio {
  font-size: 0.92rem;
  color: rgba(245,240,235,0.72);
  line-height: 1.9;
}

/* ---- CONTACTO ---- */
.contact-section {
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,45,120,0.06), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--neon-pink);
  margin-bottom: 1.5rem;
}

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2rem;
}
.contact-title em { font-style: italic; color: var(--neon-pink); text-shadow: 0 0 40px var(--neon-pink-glow); }

.contact-text {
  font-size: 1rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.contact-item-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.5rem;
}
.contact-item-value { font-size: 0.9rem; color: var(--white); }
.contact-item-value a { color: var(--neon-pink); text-decoration: none; }
.contact-item-value a:hover { text-decoration: underline; }
/* ---- FOOTER ---- */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer-logo span { color: var(--neon-pink); }
.footer-copy { font-size: 0.75rem; color: var(--gray-mid); letter-spacing: 0.1em; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--neon-pink); }


/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(1); }
  50%       { opacity: 1;   transform: scaleX(1.3) scaleX(1); transform-origin: left; }
}

/* Glitch — solo activo cuando clase .glitch está presente */
@keyframes glitch-1 {
  0%   { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 0); }
  20%  { clip-path: inset(92% 0 1%  0); transform: translate(2px, 0);  }
  40%  { clip-path: inset(43% 0 1%  0); transform: translate(0, 0);    }
  60%  { clip-path: inset(25% 0 58% 0); transform: translate(3px, 0);  }
  80%  { clip-path: inset(54% 0 7%  0); transform: translate(-3px, 0); }
  100% { clip-path: inset(58% 0 43% 0); transform: translate(0, 0);    }
}
@keyframes glitch-2 {
  0%   { clip-path: inset(24% 0 29% 0); transform: translate(3px, 0);  }
  20%  { clip-path: inset(54% 0 7%  0); transform: translate(-2px, 0); }
  40%  { clip-path: inset(11% 0 75% 0); transform: translate(0, 0);    }
  60%  { clip-path: inset(66% 0 17% 0); transform: translate(-3px, 0); }
  80%  { clip-path: inset(40% 0 30% 0); transform: translate(2px, 0);  }
  100% { clip-path: inset(12% 0 64% 0); transform: translate(0, 0);    }
}

.hero-title.glitch::before,
.hero-title.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-title.glitch::before {
  color: #0ff;
  animation: glitch-1 0.34s steps(1) forwards;
}
.hero-title.glitch::after {
  color: #f0f;
  animation: glitch-2 0.34s steps(1) forwards;
}
.hero-title { position: relative; }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  /* will-change solo mientras anima — lo gestiona el IntersectionObserver */
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- TILT CARDS: transition solo en mouseleave, no en mousemove ---- */
.tilt-card {
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
  will-change: transform;
  transform: translateZ(0);
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }
  .hero,
  .section,
  .history-section,
  .styles-section,
  .team-section,
  .contact-section { padding: 5rem 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .styles-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 0 30px 1fr; }
  .timeline-item:nth-child(odd)  .timeline-content { grid-column: 3; text-align: left; padding-right: 0; padding-left: 1.5rem; }
  .timeline-item:nth-child(odd)  .timeline-empty { display: none; }
  .timeline-item:nth-child(even) .timeline-content { grid-column: 3; padding-left: 1.5rem; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .contact-info { flex-direction: column; gap: 2rem; align-items: center; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-social { justify-content: center; }
  .hero { padding: 7rem 2rem 4rem; }
  .hero-scroll, .hero-year { display: none; }
  .divider { padding: 0 2rem; }
  .styles-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* En móvil: oculta cursor custom y muestra cursor nativo */
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}

/* ════════════════════════════════════════════
   ACCESIBILIDAD — prefers-reduced-motion
   Desactiva animaciones para usuarios que lo solicitan
   sin romper layout ni funcionalidad.
════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ---- EQUIPO PREMIUM RESPONSIVE OVERRIDES ---- */
@media (max-width: 900px) {
  .team-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 6rem 2rem;
    gap: 3rem;
    background:
      linear-gradient(to bottom, rgba(13,11,10,0.72), rgba(13,11,10,0.93)),
      url('../img/infinitumbackground.jpeg') center top / cover no-repeat,
      var(--almost-black);
  }
  .team-section::after { inset: 0.85rem; }
  .team-editorial-mark {
    top: 2rem;
    right: 2rem;
    writing-mode: horizontal-tb;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }
  .team-grid { justify-self: stretch; width: 100%; }
  .team-title { font-size: clamp(3rem, 14vw, 5rem); }
}


/* ══════════════════════════════════════════════════════
   TIMELINE PREMIUM — PERFORMANCE SAFE
   - Sin imágenes
   - Sin canvas
   - Sin blur animado pesado
   - La línea activa usa transform scaleY
══════════════════════════════════════════════════════ */

.history-section {
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,45,120,0.11), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(192,57,43,0.09), transparent 42%),
    radial-gradient(circle at 84% 62%, rgba(255,45,120,0.06), transparent 46%),
    linear-gradient(180deg, #0d0b0a 0%, #141210 48%, #0a0908 100%);
}

/* Textura editorial muy liviana: no se anima */
.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

/* Luz artística estática */
.history-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(245,240,235,0.045), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.66));
}

/* La timeline queda por encima de las capas */
.history-section > * {
  position: relative;
  z-index: 1;
}

.timeline {
  position: relative;
  --timeline-progress: 0;
}

/* Línea base apagada */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(176,168,154,0.18) 10%,
    rgba(176,168,154,0.18) 90%,
    transparent
  );
  opacity: 1;
  transform: translateX(-50%);
}

/* Línea viva con scroll: transform, no height */
.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,45,120,0.85) 12%,
    rgba(192,57,43,0.75) 48%,
    rgba(255,45,120,0.85) 86%,
    transparent
  );
  box-shadow: 0 0 18px rgba(255,45,120,0.28);
  transform: translateX(-50%) scaleY(var(--timeline-progress));
  transform-origin: top;
  will-change: transform;
  pointer-events: none;
}

.timeline-content {
  position: relative;
  background:
    linear-gradient(145deg, rgba(22,19,17,0.74), rgba(8,7,6,0.78));
  border: 1px solid rgba(255,255,255,0.065);
  padding: 1.8rem;
  box-shadow:
    0 22px 70px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.035);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(255,45,120,0.26);
  box-shadow:
    0 28px 82px rgba(0,0,0,0.42),
    0 0 32px rgba(255,45,120,0.065),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,45,120,0.72), transparent);
  opacity: 0.55;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -0.75rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -0.75rem;
}

.timeline-year {
  color: rgba(255,45,120,0.95);
  text-shadow: 0 0 22px rgba(255,45,120,0.18);
}

.timeline-dot {
  position: relative;
  z-index: 2;
}

.timeline-dot-inner {
  width: 11px;
  height: 11px;
  background: var(--neon-pink);
  box-shadow:
    0 0 12px rgba(255,45,120,0.75),
    0 0 28px rgba(255,45,120,0.32);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease;
}

.timeline-item.visible .timeline-dot-inner {
  transform: scale(1.22);
  box-shadow:
    0 0 16px rgba(255,45,120,0.9),
    0 0 42px rgba(255,45,120,0.38);
}

.timeline-heading {
  letter-spacing: -0.01em;
}

.timeline-text {
  color: rgba(245,240,235,0.70);
}

/* Mobile: más simple y barato */
@media (max-width: 768px) {
  .history-section {
    background:
      radial-gradient(circle at 50% 18%, rgba(255,45,120,0.10), transparent 38%),
      linear-gradient(180deg, #0d0b0a 0%, #141210 52%, #0a0908 100%);
  }

  .history-section::before {
    background-size: 96px 96px;
    opacity: 0.45;
  }

  .timeline::after {
    box-shadow: 0 0 10px rgba(255,45,120,0.20);
  }

  .timeline-content {
    box-shadow: 0 18px 48px rgba(0,0,0,0.30);
  }
}

/* Accesibilidad/performance: sin animación si el usuario reduce motion */
@media (prefers-reduced-motion: reduce) {
  .timeline::after {
    transition: none !important;
    will-change: auto;
  }

  .timeline-content,
  .timeline-dot-inner {
    transition: none !important;
  }
}

/* ICONIC TIMELINE */

.history-section {
  padding: 10rem 4rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,45,120,0.15), transparent 40%),
    linear-gradient(#0d0b0a, #0a0908);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content:'';
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:2px;
  background: linear-gradient(to bottom, transparent, #ff2d78, transparent);
  transform:translateX(-50%) scaleY(var(--timeline-progress,0));
  transform-origin:top;
}

.timeline-year {
  font-size:1.1rem;
  letter-spacing:0.5em;
}

.timeline-content {
  padding:2.2rem;
  background: rgba(10,9,8,0.7);
  border:1px solid rgba(255,255,255,0.08);
}

.timeline-item {
  opacity:0;
  transform:translateY(60px);
  transition:all .8s ease;
}

.timeline-item.visible {
  opacity:1;
  transform:translateY(0);
}

/* ══════════════════════════════════════════════════════
   INFINITUM — DIRECCIÓN ARTÍSTICA INTEGRADA
   Mantiene estructura actual. Sube contraste, reduce ruido visual
   y crea una firma visual más memorable.
══════════════════════════════════════════════════════ */

:root {
  --ink-black: #070605;
  --ink-deep: #0b0a09;
  --ink-panel: rgba(12,10,9,0.68);
}

/* Firma visual: textura sutil, sin animación pesada */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.011) 0px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.28;
  mix-blend-mode: overlay;
}

/* HERO: más dramático, más editorial, menos “template” */
.hero {
  background:
    radial-gradient(circle at 68% 45%, rgba(255,45,120,0.085), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(192,57,43,0.065), transparent 40%),
    linear-gradient(180deg, #070605 0%, #0d0b0a 70%, #080706 100%);
}

.hero-bg {
  opacity: 0.65;
}

.hero-line {
  opacity: 0.14;
}

.hero-eyebrow,
.section-label,
.contact-eyebrow {
  color: rgba(255,45,120,0.84);
}

.hero-title {
  max-width: 820px;
  letter-spacing: -0.055em;
  text-shadow: 0 34px 110px rgba(0,0,0,0.82);
}

.hero-title em {
  text-shadow: 0 0 32px rgba(255,45,120,0.26);
}

.hero-subtitle {
  color: rgba(245,240,235,0.64);
}

/* CTA más sobrio y premium */
.btn-primary {
  box-shadow: 0 18px 46px rgba(255,45,120,0.14), 0 0 0 1px rgba(255,45,120,0.22);
}
.btn-secondary {
  background: rgba(8,7,6,0.18);
}

/* Marca/firma: líneas de sección más largas y editoriales */
.section-label::before {
  width: 48px;
  opacity: 0.72;
}

/* Dividers más silenciosos */
.divider-line {
  opacity: 0.14;
}

/* ABOUT: más respiración y contraste */
.about-text {
  color: rgba(245,240,235,0.68);
}

.about-box {
  box-shadow: 0 34px 100px rgba(0,0,0,0.52);
}

.stat-label {
  color: rgba(176,168,154,0.62);
}

/* TIMELINE: sección protagonista y artística */
.history-section {
  padding: clamp(8rem, 11vw, 12rem) 4rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,45,120,0.13), transparent 34%),
    radial-gradient(circle at 16% 72%, rgba(192,57,43,0.08), transparent 44%),
    radial-gradient(circle at 84% 68%, rgba(255,45,120,0.055), transparent 46%),
    linear-gradient(180deg, #0d0b0a 0%, #141210 46%, #080706 100%);
}

.history-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.010) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 74%);
}

.history-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(245,240,235,0.04), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.68));
}

.history-title {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 6rem;
}

.history-title em {
  display: inline-block;
  text-shadow: 0 0 34px rgba(255,45,120,0.22);
}

.timeline {
  max-width: 980px;
  --timeline-progress: 0;
}

.timeline::before {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(245,240,235,0.13) 12%,
    rgba(245,240,235,0.13) 88%,
    transparent
  );
  opacity: 1;
}

.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,45,120,0.86) 14%,
    rgba(192,57,43,0.72) 50%,
    rgba(255,45,120,0.86) 86%,
    transparent
  );
  box-shadow: 0 0 18px rgba(255,45,120,0.26);
  transform: translateX(-50%) scaleY(var(--timeline-progress));
  transform-origin: top;
  will-change: transform;
  pointer-events: none;
}

.timeline-content {
  position: relative;
  background: transparent;
  border: none;
  padding: 1.45rem 0;
  box-shadow: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,45,120,0.68), transparent);
  opacity: 0.38;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -1rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -1rem;
}

.timeline-year {
  font-size: 1.08rem;
  letter-spacing: 0.58em;
  opacity: 0.78;
  margin-bottom: 0.95rem;
  color: rgba(255,45,120,0.92);
  text-shadow: 0 0 24px rgba(255,45,120,0.16);
}

.timeline-heading {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.timeline-text {
  font-size: 0.98rem;
  line-height: 1.95;
  color: rgba(245,240,235,0.62);
}

.timeline-dot {
  position: relative;
  z-index: 2;
}

.timeline-dot-inner {
  width: 11px;
  height: 11px;
  background: var(--neon-pink);
  box-shadow:
    0 0 12px rgba(255,45,120,0.68),
    0 0 30px rgba(255,45,120,0.25);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease;
}

.timeline-item.visible .timeline-dot-inner {
  transform: scale(1.2);
  box-shadow:
    0 0 16px rgba(255,45,120,0.86),
    0 0 42px rgba(255,45,120,0.34);
}

/* GALERÍA: más obra, menos UI */
.style-card-overlay {
  background: linear-gradient(to top, rgba(8,7,6,0.92) 24%, rgba(8,7,6,0.14) 100%);
}
.style-tag {
  color: rgba(255,45,120,0.82);
}
.style-desc {
  color: rgba(245,240,235,0.66);
}

/* EQUIPO: mantener premium, bajar apariencia de “card UI” */
.team-card {
  background:
    linear-gradient(145deg, rgba(10,8,7,0.48), rgba(8,7,6,0.68));
  border-color: rgba(255,255,255,0.06);
}
.team-card-kicker {
  color: rgba(245,240,235,0.42);
}
.team-avatar {
  opacity: 0.74;
}
.team-name {
  letter-spacing: 0.035em;
}
.team-bio {
  color: rgba(245,240,235,0.66);
}

/* CONTACTO: más fuerza comercial sin romper estética */
.contact-section {
  background:
    radial-gradient(ellipse 58% 70% at 50% 100%, rgba(255,45,120,0.075), transparent 70%),
    linear-gradient(180deg, rgba(13,11,10,0) 0%, rgba(8,7,6,0.72) 100%);
}

.contact-title {
  text-shadow: 0 26px 90px rgba(0,0,0,0.65);
}

.contact-text {
  color: rgba(245,240,235,0.70);
}

.contact-info {
  background: rgba(8,7,6,0.32);
  border: 1px solid rgba(255,255,255,0.055);
  padding: 2rem;
  gap: 2.5rem;
}

.contact-item-label {
  color: rgba(245,240,235,0.38);
}

.contact-item-value {
  color: rgba(245,240,235,0.86);
}

/* Próximamente: menos gamer, más editorial */
.scan-lines {
  opacity: 0.34;
}

.coming-tags span {
  color: rgba(245,240,235,0.38);
  border-color: rgba(255,45,120,0.10);
}

/* Footer más cerrado y de marca */
footer {
  background: rgba(8,7,6,0.96);
}

/* Responsive refinement */
@media (max-width: 768px) {
  body::after {
    opacity: 0.20;
  }

  nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-title {
    font-size: clamp(3.8rem, 17vw, 5.3rem);
  }

  .section,
  .styles-section,
  .history-section,
  .contact-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .history-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
    background:
      radial-gradient(circle at 50% 18%, rgba(255,45,120,0.10), transparent 40%),
      linear-gradient(180deg, #0d0b0a 0%, #141210 52%, #080706 100%);
  }

  .history-section::before {
    background-size: 110px 110px;
    opacity: 0.42;
  }

  .history-title {
    margin-bottom: 4rem;
  }

  .timeline-content {
    padding: 1.1rem 0;
  }

  .timeline-year {
    font-size: 0.9rem;
    letter-spacing: 0.42em;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .stat-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .styles-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline::after,
  .timeline-content,
  .timeline-dot-inner {
    transition: none !important;
    will-change: auto;
  }
}
/* FIX FINAL TIMELINE MOBILE — CENTRADA Y VISIBLE */
@media (max-width: 900px) {
  .history-section {
    padding: 6rem 1.5rem !important;
  }

  .timeline {
    display: block !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .timeline::before,
  .timeline::after,
  .timeline-dot,
  .timeline-empty,
  .timeline-content::before {
    display: none !important;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 3.5rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    grid-column: auto !important;
  }

  .timeline-year {
    display: block !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.35em !important;
    text-align: center !important;
    opacity: 1 !important;
  }

  .timeline-heading {
    font-size: 1.45rem !important;
    text-align: center !important;
    margin-bottom: 0.8rem !important;
  }

  .timeline-text {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    text-align: center !important;
    color: rgba(245,240,235,0.72) !important;
  }
}