/* --- 1. CONFIGURACIÓN BASE Y FUENTES --- */
@font-face {
  font-family: 'MonumentGrotesk-Regular';
  src: url('/assets/fonts/MonumentGrotesk-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --sidebar-width: 500px;
  --font-main: 'MonumentGrotesk-Regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bg-color: #ffffff;
}

/* --- RESET & CURSOR --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { cursor: none !important; }

/* Interactive Elements -> Hand Cursor */
a, button, .read-more, .accordion-trigger, input[type="range"] {
  cursor: pointer !important;
}

/* Grid Project Exceptions */
.grid-proyectos a.item { cursor: none !important; }
.grid-proyectos .item .info { cursor: pointer !important; display: block; width: 100%; }

/* Custom Cursor */
.custom-cursor {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  pointer-events: none; z-index: 99999; mix-blend-mode: difference;
  transform: translate(-50%, -50%); display: none; transition: opacity 0.2s ease;
}
.cursor-hidden { opacity: 0; }
.coords-hidden { opacity: 0; }

/* --- GENERAL STYLES --- */
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: #000;
  font-size: 17px;
  line-height: 1.2;
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: black; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- LAYOUT UTILITIES (THE GRID SYSTEM) --- */
.layout-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
  width: 100%;
  align-items: start;
}

.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }

.split-text-img {
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
}

.split-img-text {
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

/* Size Utilities */
.w-75 { width: 75%; margin: 0 auto; }
.w-50 { width: 50%; margin: 0 auto; }
.w-30 { width: 30%; margin: 0 auto; }

/* --- HEADER & SIDEBAR --- */
.fixed-header-right {
  position: fixed; top: 2rem; right: 2rem; text-align: right;
  z-index: 50; pointer-events: none; font-weight: 500; mix-blend-mode: multiply;
}

.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh;
  padding: 1.5rem; overflow-y: auto; z-index: 100; background-color: var(--bg-color);
}

.site-title {
  font-size: 2.00rem; font-weight: bold; margin-bottom: 2.5rem;
  letter-spacing: 0.5px; display: block;
}

.menu-group { margin-bottom: 0.85rem; border-top: 1px solid #000; padding-top: 0.85rem; }
.menu-group:first-of-type { border-top: none; padding-top: 0; }
.menu-group h3 { font-size: 17px; font-weight: normal; margin-bottom: 0.5rem; text-transform: lowercase; opacity: 0.6; }
.menu-group ul li { margin-bottom: 0.1rem; }

.menu-group ul a {
  color: #000; transition: all 0.2s; display: block; padding: 4px 5px 4px 0px;
  font-size: 22px; text-transform: uppercase; font-weight: bold;
  letter-spacing: 0.5px; line-height: 1;
}

.menu-group ul a:hover,
.menu-group ul a.active { background-color: #000; color: #fff; padding-left: 8px; }

.about-preview p { margin-bottom: 0.5rem; color: #555; font-size: 15px; }
.read-more { font-size: 15px; font-weight: bold; text-decoration: underline; }

/* --- MAIN CONTENT --- */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  position: relative;
  padding: 0;
  padding-right: 0 !important;
}

.grid-proyectos { display: flex; flex-direction: column; width: 100%; }
.item { display: block; width: 100%; position: relative; margin-bottom: 0.5rem; }
.item:first-child { margin-top: 0; }

.item .thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: none;
  margin: 0;
}

.item .info { padding: 0.5rem 0 0 0; }

.proyecto-detalle {
  max-width: 100% !important;
  width: 100%;
  padding: 2rem 2rem 4rem 2rem;
  margin: 0;
}

/* --- ACCORDIONS --- */
.accordion-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-radius: 0;

  color: #000;
  padding: 1.5rem 0;
  width: 100%;
  border-bottom: 1px solid #ccc;
  text-align: left;
  outline: none;
  font-family: var(--font-main);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  cursor: pointer !important;
}

.accordion-trigger:hover { color: #555; border-bottom-color: #000; }

.accordion-trigger:after {
  content: '\002B';
  font-size: 24px;
  font-weight: normal;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.accordion-trigger.active { border-bottom: 1px solid transparent; }
.accordion-trigger.active:after { transform: rotate(45deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-bottom: 1px solid #ccc;
  padding: 0;
}

.accordion-content.is-open { will-change: max-height; }

.accordion-inner {
  padding: 1rem 0 2.5rem 0;
  opacity: 1;
}

/* --- PROJECT SECTION TITLE --- */
.project-section-title {
  font-family: var(--font-main);
  font-size: 24px;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
  width: 100%;
}

/* Security */
img, video {
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
}
video.interactive, img.interactive { pointer-events: auto !important; }

#cursor-coords {
  position: fixed;
  pointer-events: none;
  font-size: 12px;
  font-family: monospace;
  z-index: 9999;
  background: transparent;
  padding: 0;
  border: none;
  color: white;
  mix-blend-mode: difference;
  display: none;
  transition: opacity 0.2s ease;
}
body.hide-custom-cursor .custom-cursor,
body.hide-custom-cursor #cursor-coords { opacity: 0 !important; visibility: hidden !important; }

/* -------------------------------------------------------------------------- */
/* WORKSHOP: Slider & Video Layout (moved from index.md) */
/* -------------------------------------------------------------------------- */

.parametric-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 3rem 0;
  width: 100%;
  user-select: none;
}

.controls-wrapper { flex: 0 0 240px; padding: 0; }

.video-wrapper { position: relative; line-height: 0; background-color: #fff; }
.video-wrapper-top { position: relative; line-height: 0; background-color: #fff; margin-bottom: 2rem; }

.video-wrapper video,
.video-wrapper-top video {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  outline: none;
  box-shadow: none;
  clip-path: inset(2px);
  transform: scale(1.02);
  background-color: #fff;
  pointer-events: none;
}

.security-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  background: transparent;
}

/* Slider Bar */
.slider-control-panel { margin-bottom: 0.8rem; }

.slider-label {
  display: flex;
  justify-content: space-between;
  font-family: 'MonumentGrotesk-Regular', monospace;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.slider-description {
  font-size: 13px;
  color: #000;
  line-height: 1.4;
  margin: 0;
}

.gh-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  outline: none;
  opacity: 1;
  border-radius: 2px;
  display: block;
  cursor: pointer !important;
}

.gh-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  border: none;
  transform: scale(1);
  transition: transform 0.1s;
  cursor: pointer !important;
}

.gh-slider:active::-webkit-slider-thumb { transform: scale(1.3); }

.intro-text p { font-size: 20px; margin-top: 2rem; max-width: 100%; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .col-3, .col-2, .split-text-img, .split-img-text {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  html, body { cursor: auto !important; }
  .custom-cursor, #cursor-coords { display: none !important; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1.5rem;
    border-bottom: 1px solid #000;
  }
  .fixed-header-right { display: none; }
  .main-content { margin-left: 0; width: 100%; padding-right: 0 !important; }
  .menu-group:first-of-type { border-top: 1px solid #000; padding-top: 1rem; }
  .proyecto-detalle { padding: 1.5rem; }
  .w-75, .w-50, .w-30 { width: 100% !important; }

  .parametric-container {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: stretch;
  }
  .controls-wrapper { flex: 1; max-width: 100%; }
}
