/* ============================================================
   global.css — Lumen Creators
   Single stylesheet | Mobile-first | 100% Responsive
   Version 2.1 — Actualización 30% Crítico
   ============================================================ */


/* ============================================================
   1. VARIABLES DE COLOR & DESIGN TOKENS
   ============================================================ */
:root {

  /* Paleta principal */
  --primary-red:      #e8000d;
  --red-bright:       #ff1a24;
  --red-dim:          rgba(232, 0, 13, 0.08);
  --red-glow:         rgba(232, 0, 13, 0.28);
  --red-glow-strong:  rgba(232, 0, 13, 0.45);

  /* Fondos */
  --bg-void:          #000000;
  --bg-deep:          #030303;
  --bg-surface:       #0a0a0a;
  --bg-card:          #0e0e0e;
  --bg-card-hover:    #141414;
  --bg-overlay:       rgba(0,0,0,0.92);

  /* Bordes */
  --border-ghost:     #0f0f0f;
  --border-subtle:    #1a1a1a;
  --border-mid:       #242424;
  --border-strong:    #333333;

  /* Tipografía */
  --text-white:       #ffffff;
  --text-off:         #cccccc;
  --text-muted:       #888888;
  --text-dim:         #555555;
  --text-faint:       #3a3a3a;

  /* Fuentes */
  --font-display:     'Inter', system-ui, sans-serif;
  --font-body:        'Inter', system-ui, sans-serif;

  /* Transiciones */
  --ease-smooth:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:       all 0.3s var(--ease-smooth);
  --transition-fast:  all 0.18s var(--ease-smooth);
  --transition-slow:  all 0.5s var(--ease-smooth);

  /* Radios */
  --radius-xs:        4px;
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        22px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  /* Layout */
  --nav-h:            70px;
  --max-w:            1440px;
  --content-w:        92%;
  --section-gap:      80px;

  /* Timeline específicos */
  --tl-line-w:        2px;
  --tl-dot-size:      20px;
  --tl-branch-w:      28px;
  --tl-indent:        54px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }


/* ============================================================
   3. TIPOGRAFÍA — HELPERS
   ============================================================ */
.text-red    { color: var(--primary-red); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-off    { color: var(--text-off); }
.uppercase   { text-transform: uppercase; }
.tracking-wide   { letter-spacing: 0.05em; }
.tracking-wider  { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.2em; }

.display-xl { font-size: clamp(3rem, 9vw, 7rem);    font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; }
.display-lg { font-size: clamp(2.4rem, 6vw, 5rem);  font-weight: 900; line-height: 1;    letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.8rem, 4vw, 3rem);  font-weight: 900; line-height: 1.05; }
.display-sm { font-size: clamp(1.3rem, 3vw, 2rem);  font-weight: 800; }
.body-lg    { font-size: 1.1rem;  line-height: 1.75; }
.body-base  { font-size: 1rem;    line-height: 1.65; }
.body-sm    { font-size: 0.88rem; line-height: 1.6; }
.label      { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.label-sm   { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }


/* ============================================================
   4. LAYOUT — GRID / FLEX SISTEMA (Mobile-first)
   ============================================================ */
.container {
  width: var(--content-w);
  max-width: var(--max-w);
  margin-inline: auto;
}

.section    { padding-block: var(--section-gap); }
.section-sm { padding-block: calc(var(--section-gap) * 0.6); }

/* Grid utilities */
.grid     { display: grid; gap: 24px; }
.grid-2   { grid-template-columns: 1fr; }
.grid-3   { grid-template-columns: 1fr; }
.grid-4   { grid-template-columns: 1fr; }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Flex utilities */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-sm       { gap: 8px; }
.gap-md       { gap: 16px; }
.gap-lg       { gap: 24px; }
.gap-xl       { gap: 40px; }

.mt-auto   { margin-top: auto; }
.mx-auto   { margin-inline: auto; }
.text-center { text-align: center; }


/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(3, 3, 3, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-content {
  width: var(--content-w);
  max-width: var(--max-w);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img  { height: 34px; width: auto; object-fit: contain; }
.logo-text { font-weight: 900; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.logo-text span { color: var(--primary-red); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--text-white);
  font-size: 0.73rem;
  font-weight: 700;
  opacity: 0.6;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--primary-red);
  transition: width 0.25s var(--ease-smooth);
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-download-nav {
  background: var(--primary-red);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-download-nav:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--red-glow);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-mid);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { border-color: var(--primary-red); color: var(--primary-red); }


/* ============================================================
   6. DROPDOWN — SELECTOR DE IDIOMA (MEJORADO v2.1)
   ============================================================ */

/* ── Wrapper principal ── */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ── Select nativo con diseño propio ── */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.04);
  color: var(--text-white);
  border: 1px solid var(--border-mid);
  padding: 7px 30px 7px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
  outline: none;
  min-width: 68px;
  line-height: 1;
  color-scheme: dark;
}
.lang-select option {
  background: #111;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
}
.lang-select:hover {
  border-color: var(--primary-red);
  background: rgba(232,0,13,0.07);
}
.lang-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px var(--red-dim);
}

/* ── Flecha de dropdown generada por CSS ── */
.lang-dropdown-wrapper::after {
  content: '▾';
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.58rem;
  color: var(--primary-red);
  transition: var(--transition-fast);
}

/* ── Versión mobile del selector ── */
.mobile-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: white;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 14px;
  width: 100%;
  margin-top: 20px;
  outline: none;
  color-scheme: dark;
  transition: var(--transition-fast);
}
.mobile-lang-select:focus { border-color: var(--primary-red); }


/* ============================================================
   7. MOBILE MENU
   ============================================================ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(290px, 88vw);
  height: 100vh;
  background: #070707;
  z-index: 2000;
  transition: right 0.38s var(--ease-smooth);
  padding: 78px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -12px 0 50px rgba(0,0,0,0.7);
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
}
.mobile-menu.active { right: 0; }

.close-menu {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.close-menu:hover { color: var(--primary-red); border-color: var(--primary-red); transform: rotate(90deg); }

.mobile-menu a {
  color: var(--text-off);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-ghost);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary-red); padding-left: 6px; }


/* ============================================================
   8. BOTONES
   ============================================================ */
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-red);
  color: white;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 900; font-size: 0.73rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: 1px solid transparent;
  cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-red:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 22px var(--red-glow); }
.btn-red:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-white);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800; font-size: 0.73rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: 1px solid var(--border-strong);
  cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { background: var(--primary-red); border-color: var(--primary-red); transform: translateY(-2px); box-shadow: 0 6px 18px var(--red-glow); }
.btn-outline:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted);
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: none; cursor: pointer; transition: var(--transition-fast); text-decoration: none;
}
.btn-ghost:hover { color: var(--text-white); }

.btn-sm   { padding: 7px 14px; font-size: 0.65rem; }
.btn-lg   { padding: 14px 32px; font-size: 0.8rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }


/* ============================================================
   9. CARDS — HOVER EFFECTS
   ============================================================ */

/* Card base */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--primary-red);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px var(--red-dim), 0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(-6px);
}

/* Card de Proyecto */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none; color: white;
  display: flex; flex-direction: column; height: 100%;
}
.project-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--red-dim);
}

.project-img-area {
  height: 240px; overflow: hidden; position: relative;
  background: var(--bg-surface);
}
.project-img-area img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.project-card:hover .project-img-area img { transform: scale(1.07); }

.status-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg-overlay);
  color: var(--primary-red);
  border: 1px solid rgba(232,0,13,0.4);
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; z-index: 2;
}

.project-footer-card {
  padding: 24px; text-align: center;
  flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.project-footer-card h3 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.project-category { color: var(--primary-red); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; display: block; }
.btn-project {
  background: var(--bg-card-hover); color: var(--text-off);
  padding: 11px; border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--border-mid); transition: var(--transition-fast); text-decoration: none; display: block;
}
.project-card:hover .btn-project { background: var(--primary-red); border-color: var(--primary-red); color: white; }

/* Card de Colaborador */
.collab-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
  text-decoration: none; display: flex; flex-direction: column;
}
.collab-card:hover { border-color: var(--primary-red); transform: translateY(-8px); box-shadow: 0 14px 32px var(--red-dim); }

.collab-img-area {
  height: 180px; background: var(--bg-void);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.collab-img-area img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: 0.45s var(--ease-smooth); }
.collab-card:hover .collab-img-area img { filter: grayscale(0); opacity: 1; }

.collab-footer-card { padding: 22px; background: var(--bg-card); border-top: 1px solid var(--border-subtle); text-align: center; }
.collab-footer-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.collab-desc { display: block; font-size: 0.7rem; color: var(--primary-red); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; margin-bottom: 14px; }
.btn-profile {
  display: inline-block; padding: 8px 18px;
  background: var(--bg-card-hover); color: var(--text-off);
  border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  transition: var(--transition-fast); border: 1px solid var(--border-mid);
}
.collab-card:hover .btn-profile { background: var(--primary-red); border-color: var(--primary-red); color: white; }

/* Suggest / join cards */
.suggest-card { border-style: dashed; border-color: var(--border-mid); background: transparent; align-items: center; justify-content: center; padding: 50px 30px; text-align: center; }
.suggest-card:hover { border-color: var(--primary-red); background: var(--red-dim); transform: translateY(-6px); }
.suggest-icon { font-size: 3rem; color: var(--border-mid); margin-bottom: 18px; transition: var(--transition-fast); }
.suggest-card:hover .suggest-icon { color: var(--primary-red); }

.join-card { border: 1px dashed var(--border-mid); background: transparent; transition: var(--transition); }
.join-icon { font-size: 2.8rem; color: var(--border-subtle); transition: 0.3s; }
.join-card:hover { border-color: var(--primary-red); }
.join-card:hover .join-icon { color: var(--primary-red); }


/* ============================================================
   10. HERO SECTION
   ============================================================ */
.hero-section {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 80px 5% 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(232,0,13,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(232,0,13,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label { display: inline-block; color: var(--primary-red); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; margin-bottom: 20px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.8rem, 8.5vw, 6.5rem); font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.025em; margin-bottom: 26px; position: relative; z-index: 1; }
.hero-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto 44px; font-size: 1.05rem; line-height: 1.75; position: relative; z-index: 1; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }


/* ============================================================
   11. SECTION HEADERS
   ============================================================ */
.section-block { padding: var(--section-gap) 4%; max-width: var(--max-w); margin: 0 auto; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; text-transform: uppercase; margin-bottom: 40px; text-align: center; line-height: 1.05; }
.section-title span { color: var(--primary-red); }

.page-header { text-align: center; margin-bottom: 60px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.page-header h1 span { color: var(--primary-red); }
.page-header p { color: var(--text-dim); margin: 14px auto 0; max-width: 540px; font-size: 0.96rem; line-height: 1.7; }

.main-container { flex: 1; margin-top: calc(var(--nav-h) + 50px); padding: 0 4% 80px; width: 100%; max-width: var(--max-w); align-self: center; }


/* ============================================================
   12. CAROUSEL
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 20px; margin-bottom: 40px; }

.carousel-container { position: relative; background: var(--bg-surface); border-radius: var(--radius-md); height: 500px; overflow: hidden; border: 1px solid var(--border-subtle); }

.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.75s var(--ease-smooth);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
  background-size: cover; background-position: center;
}
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.94) 8%, rgba(0,0,0,0.18) 55%, transparent 100%); z-index: 1; }
.slide.active { opacity: 1; z-index: 5; }

.slide-content { position: relative; z-index: 10; text-align: left; }
.slide-content h3 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 10px; letter-spacing: -0.02em; }
.slide-content p  { color: #bbb; margin-bottom: 24px; font-size: 1rem; max-width: 460px; }

.carousel-controls { position: absolute; bottom: 20px; right: 20px; z-index: 20; display: flex; gap: 8px; }
.arrow-btn { background: rgba(10,10,10,0.85); border: 1px solid var(--border-mid); color: white; width: 42px; height: 42px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.arrow-btn:hover { background: var(--primary-red); border-color: var(--primary-red); }

.side-info { background: var(--bg-card); border-radius: var(--radius-md); padding: 38px; border: 1px solid var(--border-subtle); display: flex; flex-direction: column; justify-content: space-between; }
.side-info h3 { color: var(--primary-red); font-size: 1.4rem; font-weight: 900; margin-bottom: 12px; }
.side-info p  { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

.published-section { border-top: 1px solid var(--border-subtle); padding-top: 20px; margin-top: 20px; }
.published-label { display: block; font-size: 0.63rem; color: var(--text-faint); text-transform: uppercase; font-weight: 900; letter-spacing: 0.12em; margin-bottom: 12px; }
.owner-profile { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: var(--transition-fast); }
.owner-circle  { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-red); overflow: hidden; flex-shrink: 0; }
.owner-circle img { width: 100%; height: 100%; object-fit: cover; }
.owner-text h4   { color: white; font-size: 0.95rem; font-weight: 800; }
.owner-text span { color: var(--primary-red); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }


/* ============================================================
   13. GRIDS
   ============================================================ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.collab-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }


/* ============================================================
   14. TIMELINE — Rama de Estrenos (v2.1 — Rediseño CSS Puro)
   ============================================================ */
.timeline-section {
  padding: var(--section-gap) 4%;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: 72px;
}
.timeline-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.timeline-header h2 span { color: var(--primary-red); }
.timeline-header p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Árbol principal ── */
.timeline-tree {
  position: relative;
  padding-left: var(--tl-indent);
}

/* Línea vertical principal — gradiente que se desvanece hacia abajo */
.timeline-tree::before {
  content: '';
  position: absolute;
  left: calc(var(--tl-dot-size) / 2);
  top: 10px;
  bottom: 10px;
  width: var(--tl-line-w);
  background: linear-gradient(
    to bottom,
    var(--primary-red)       0%,
    rgba(232,0,13,0.50)     40%,
    rgba(232,0,13,0.18)     75%,
    transparent             100%
  );
  border-radius: var(--radius-full);
}

/* ── Ítem individual ── */
.timeline-item {
  position: relative;
  margin-bottom: 44px;
  cursor: pointer;
}
.timeline-item:last-child { margin-bottom: 0; }

/* ── Dot / nodo del hito ── */
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--tl-indent) + (var(--tl-indent) - var(--tl-dot-size)) / 2);
  top: 22px;
  width: var(--tl-dot-size);
  height: var(--tl-dot-size);
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--primary-red);
  transition: var(--transition);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(232,0,13,0.08);
}

/* Pulse en el dot — animación CSS pura sin JS */
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(232,0,13,0.25);
  opacity: 0;
  animation: tl-pulse 2.8s ease-out infinite;
}

/* El primer ítem (confirmado) tiene pulso activo por defecto */
.timeline-item:first-child .timeline-dot::after { opacity: 1; }

@keyframes tl-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}

/* Hover: dot relleno + glow */
.timeline-item:hover .timeline-dot {
  background: var(--primary-red);
  box-shadow: 0 0 0 8px rgba(232,0,13,0.14), 0 0 18px var(--red-glow);
  transform: scale(1.15);
}

/* ── Conector horizontal (rama) ── */
.timeline-connector {
  position: absolute;
  left: calc(-1 * var(--tl-indent) + (var(--tl-indent) - var(--tl-dot-size)) / 2 + var(--tl-dot-size));
  top: calc(22px + var(--tl-dot-size) / 2 - 1px);
  width: calc(var(--tl-indent) - var(--tl-dot-size) - (var(--tl-indent) - var(--tl-dot-size)) / 2 - 2px);
  height: var(--tl-line-w);
  background: linear-gradient(to right, var(--primary-red), rgba(232,0,13,0.3));
  opacity: 0.4;
  transition: opacity 0.25s var(--ease-smooth);
  z-index: 2;
}
.timeline-item:hover .timeline-connector { opacity: 1; }

/* ── Card del hito ── */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Acento izquierdo de la card — barra de color */
.timeline-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary-red);
  opacity: 0;
  transition: opacity 0.25s var(--ease-smooth);
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.timeline-item:hover .timeline-card {
  border-color: rgba(232,0,13,0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 32px rgba(232,0,13,0.1), 0 2px 8px rgba(0,0,0,0.4);
  transform: translateX(6px);
}
.timeline-item:hover .timeline-card::before { opacity: 1; }

/* ── Header de la card ── */
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.timeline-date {
  color: var(--primary-red);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 5px;
}
/* Ícono de calendario inline (SVG CSS) */
.timeline-date::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='14' height='12' rx='2' ry='2' stroke='currentColor' stroke-width='1.5' fill='none'/%3E%3Cline x1='5' y1='1' x2='5' y2='5' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='11' y1='1' x2='11' y2='5' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='1' y1='7' x2='15' y2='7' stroke='currentColor' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='14' height='12' rx='2' ry='2' stroke='currentColor' stroke-width='1.5' fill='none'/%3E%3Cline x1='5' y1='1' x2='5' y2='5' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='11' y1='1' x2='11' y2='5' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='1' y1='7' x2='15' y2='7' stroke='currentColor' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ── Badges de estado ── */
.timeline-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid;
}
.badge-dev       { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.07); }
.badge-upcoming  { color: #3b82f6; border-color: rgba(59,130,246,0.3);  background: rgba(59,130,246,0.07); }
.badge-confirmed { color: #22c55e; border-color: rgba(34,197,94,0.3);   background: rgba(34,197,94,0.07); }

/* ── Contenido de la card ── */
.timeline-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.timeline-type {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.timeline-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.72;
}

/* ── Countdown integrado ── */
.timeline-countdown {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(232,0,13,0.07);
  border: 1px solid rgba(232,0,13,0.18);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 52px;
}
.countdown-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  margin-top: 4px;
}

/* ── Hint de interacción (visible en desktop) ── */
.timeline-hover-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.62rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.25s var(--ease-smooth);
}
.timeline-item:hover .timeline-hover-hint { opacity: 1; }

/* ── Preview Card: tarjeta flotante de hover (injected por JS) ── */
.tl-preview-card {
  position: absolute;
  left: calc(100% + 16px);
  top: 0;
  width: 280px;
  background: var(--bg-card-hover);
  border: 1px solid rgba(232,0,13,0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,0,13,0.1);
  pointer-events: none;

  /* Animación de entrada */
  opacity: 0;
  transform: translateX(-8px) scale(0.97);
  transition:
    opacity   0.22s var(--ease-smooth),
    transform 0.22s var(--ease-smooth);
  will-change: opacity, transform;
}
.tl-preview-card.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Flecha que apunta al card del hito */
.tl-preview-card::before {
  content: '';
  position: absolute;
  left: -8px; top: 28px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid rgba(232,0,13,0.35);
}
.tl-preview-card::after {
  content: '';
  position: absolute;
  left: -6px; top: 29px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--bg-card-hover);
}

/* Interior de la preview card */
.tl-preview-icon {
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-bottom: 10px;
  display: block;
}
.tl-preview-badge {
  display: inline-block;
  margin-bottom: 8px;
}
.tl-preview-title {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tl-preview-date {
  font-size: 0.63rem;
  color: var(--primary-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}
.tl-preview-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.tl-preview-link {
  display: block;
  text-align: center;
  background: var(--primary-red);
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: background 0.18s;
  pointer-events: auto;
  text-decoration: none;
}
.tl-preview-link:hover { background: var(--red-bright); }

/* Sin preview card en mobile (se usa tooltip in-card) */
@media (max-width: 1024px) {
  .tl-preview-card { display: none !important; }
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.footer { background: var(--bg-void); border-top: 1px solid var(--border-subtle); padding: 70px 5% 38px; margin-top: auto; }
.footer-content { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 0.84rem; margin-top: 18px; line-height: 1.75; max-width: 270px; }
.footer-column h4 { color: var(--primary-red); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 22px; font-weight: 900; }
.footer-column ul li { margin-bottom: 11px; }
.footer-column ul li a { color: var(--text-muted); font-size: 0.83rem; transition: var(--transition-fast); display: inline-block; }
.footer-column ul li a:hover { color: white; transform: translateX(4px); }

.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 28px; margin-top: 50px; display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-faint); flex-wrap: wrap; gap: 15px; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.footer-made { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-faint); transition: var(--transition-fast); }
.footer-made:hover { color: var(--text-white); }
.footer-made img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--primary-red); }


/* ============================================================
   16. ANIMACIONES
   ============================================================ */
.animate-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth); }
.animate-in.visible { opacity: 1; transform: translateY(0); }

.animate-in:nth-child(1) { transition-delay: 0ms; }
.animate-in:nth-child(2) { transition-delay: 80ms; }
.animate-in:nth-child(3) { transition-delay: 160ms; }
.animate-in:nth-child(4) { transition-delay: 240ms; }
.animate-in:nth-child(5) { transition-delay: 320ms; }
.animate-in:nth-child(6) { transition-delay: 400ms; }


/* ============================================================
   17. UTILIDADES
   ============================================================ */
.divider { width: 100%; height: 1px; background: var(--border-subtle); margin-block: 40px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.62rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.badge-red { background: rgba(232,0,13,0.12); color: var(--primary-red); border: 1px solid rgba(232,0,13,0.3); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red); }

::selection { background: rgba(232,0,13,0.3); color: white; }


/* ============================================================
   18. RESPONSIVE — TABLET (max-width: 1080px)
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links, .btn-download-nav { display: none; }
  .menu-toggle { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .carousel-container { height: 420px; }
  .side-info { text-align: center; }
  .owner-profile { justify-content: center; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   19. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-gap: 56px; }
  .project-grid { grid-template-columns: 1fr; }
  .collab-grid  { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 12px auto; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  /* Timeline móvil */
  :root { --tl-dot-size: 16px; --tl-indent: 40px; }
  .timeline-card { padding: 20px; }
  .timeline-card::before { display: none; } /* Sin barra izquierda en mobile */
  .hero-cta { flex-direction: column; align-items: center; }
  .section-block { padding: var(--section-gap) 4%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Countdown ajustado */
  .countdown-unit { min-width: 44px; padding: 6px 10px; }
  .countdown-num  { font-size: 1.2rem; }
}


/* ============================================================
   20. RESPONSIVE — SMALL (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 62px; }
  .logo-img  { height: 28px; }
  .logo-text { font-size: 0.9rem; }
  .hero-title { letter-spacing: -0.015em; }
  .nav-content { width: 96%; }
  .btn-lg { padding: 12px 24px; font-size: 0.75rem; }
  .timeline-countdown { gap: 8px; }
  .countdown-unit { min-width: 40px; }
}
