/* ========================================= */
/* ELEGANCIA BRUTALISTA - PROJECT STYLES     */
/* ========================================= */

.project-body {
    background-color: var(--color-background);
    color: var(--color-text-dark);
    scrollbar-width: none; /* Ocultar scrollbar nativa */
  }
  .project-body::-webkit-scrollbar { display: none; }
  
  .project-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  
  /* --- 1. NAVEGACIÓN --- */
  .project-nav {
    padding: 2rem 0;
    border-bottom: 2px solid var(--color-text-dark);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    background-color: var(--color-background);
    z-index: 100;
  }
  
  .back-link {
    text-decoration: none;
    color: var(--color-text-dark);
    position: relative;
  }
  .back-link::after {
    content: '';
    position: absolute; width: 0; height: 1px; bottom: -2px; left: 0;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .back-link:hover::after { width: 100%; }
  
  /* --- 2. HEADER Y CONTEXTO --- */
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .project-title-big {
    font-family: var(--font-title);
    font-size: 13vw;
    line-height: 0.8;
    color: var(--color-accent);
    margin: 0;
    text-transform: uppercase;
    word-break: break-all;
    mix-blend-mode: multiply;
  }
  
  .hero-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
    border-top: 1px solid var(--color-text-dark);
    padding-top: 0.5rem;
    font-family: var(--font-mono);
    /* text-transform: uppercase; */
    font-size: 0.8rem;
  }
  
  /* Contexto (El Pitch) */
  .project-context {
    margin-top: 4rem;
    margin-bottom: 6rem;
    max-width: 1000px;
  }
  
  .context-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    text-transform: uppercase;
  }
  
  .context-text {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.5;
    color: rgba(0,0,0,0.85);
    max-width: 60ch;
  }
  
  /* --- 3. HERO MEDIA (VIDEO GRANDE) --- */
  .hero-media-wrapper {
    margin-bottom: 6rem;
  }
  
  /* --- 4. LAYOUT ASIMÉTRICO --- */
  .project-grid-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar fija | Contenido fluido */
    gap: 4rem;
    border-top: 2px solid var(--color-text-dark);
    padding-top: 2rem;
  }
  
  /* Columna Izquierda (Sticky - SIN ANIMACIÓN REVEAL) */
  .sticky-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
  }
  
  .meta-block { margin-bottom: 3rem; }
  
  .meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem; opacity: 0.5; margin-bottom: 0.5rem; display: block; text-transform: uppercase;
  }
  .meta-data {
    font-family: var(--font-title); font-size: 1.1rem; line-height: 1.2; display: block;
  }
  
  /* Columna Derecha (Contenido Principal) */
  .content-stream {
    display: flex; flex-direction: column; gap: 8rem; padding-bottom: 10rem;
  }
  
  /* --- 5. COMPONENTES VISUALES --- */
  .big-statement {
    font-family: var(--font-title); font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 2rem;
  }
  .body-text {
    font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; max-width: 60ch; color: rgba(0,0,0,0.8);
  }
  
  /* Media Container (Wireframe) */
  .media-container {
    width: 100%; position: relative; border: 1px solid var(--color-text-dark); padding: 10px; background: transparent;
  }
  .media-inner {
    width: 100%; position: relative; overflow: hidden; background-color: #111;
  }
  .media-inner img, .media-inner video {
    width: 100%; height: auto; display: block; transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .media-container:hover .media-inner img { transform: scale(1.03); }
  
  .media-caption-tech {
    display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; margin-top: 0.5rem; text-transform: uppercase; border-top: 1px solid var(--color-text-dark); padding-top: 5px;
  }
  
  /* Placeholder */
  .placeholder-box {
    width: 100%; display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-mono); text-align: center; font-size: 0.9rem;
  }
  


/* --- 6. SLIDER HORIZONTAL (CLEAN & USABLE) --- */
.horizontal-gallery {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  
  /* FIREFOX: Barra fina, color acento sobre transparente */
  scrollbar-width: auto; 
  scrollbar-color: var(--color-accent) transparent; 
}

.horizontal-item {
  min-width: 85%; 
  scroll-snap-align: center;
}

/* --- CHROME, SAFARI, EDGE --- */

.horizontal-gallery::-webkit-scrollbar {
  display: block;
  height: 16px; /* GROSOR CÓMODO */
}

/* El "carril" de fondo ahora es invisible */
.horizontal-gallery::-webkit-scrollbar-track {
  background: transparent; 
}

/* La barra en sí (el tirador) */
.horizontal-gallery::-webkit-scrollbar-thumb {
  background-color: var(--color-accent); /* Tu color naranja */
  border-radius: 7px; /* Redondeado */
  border: none; /* Sin bordes blancos ni espacios */
}

/* Al pasar el ratón se oscurece un poco para dar feedback */
.horizontal-gallery::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-text-dark);
}

/* ========================================= */
/* BOTONES DE NAVEGACIÓN (FLECHITAS)         */
/* ========================================= */

/* Contenedor relativo para posicionar los botones */
.gallery-wrapper-auto {
  position: relative;
  width: 100%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
  border: 1px solid var(--color-text-dark);
  border-radius: 50%; /* Botón redondo */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-text-dark);
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
  background-color: var(--color-accent); /* Se pone naranja al pasar el ratón */
  border-color: var(--color-accent);
  color: var(--color-background); /* Flecha blanca */
  transform: translateY(-50%) scale(1.1); /* Efecto pop */
}

/* Posiciones */
.slider-btn.prev { left: -15px; }
.slider-btn.next { right: -15px; }

/* En móvil las ocultamos porque ya pueden deslizar con el dedo */
@media (max-width: 900px) {
  .slider-btn { display: none; }
}





  
  /* --- 7. ANIMACIONES (Solo para contenido, no sidebar) --- */
  .reveal-element {
    opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .reveal-element.visible { opacity: 1; transform: translateY(0); }
  
  /* --- 8. FOOTER --- */
  .next-project-area {
    border-top: 2px solid var(--color-text-dark); padding: 4rem 2vw; text-align: right; background-color: var(--color-text-dark); color: var(--color-background); transition: background 0.3s;
  }
  .next-project-area:hover { background-color: var(--color-accent); }
  .next-label { font-family: var(--font-mono); font-size: 0.9rem; opacity: 0.6; }
  .next-title { display: block; font-family: var(--font-title); font-size: 6vw; line-height: 1; margin-top: 1rem; text-decoration: none; color: inherit; }
  
  /* RESPONSIVE */
  @media (max-width: 900px) {
    .project-title-big { font-size: 18vw; }
    .project-grid-layout { grid-template-columns: 1fr; gap: 3rem; }
    .sticky-sidebar { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
    .content-stream { gap: 4rem; }
    .horizontal-item { min-width: 90%; }
  }