* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  background-color: #000000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

/* ===== HEADER ===== */

.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 10px;
}

.logo {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 2px;
  color: #3b3939;
  margin-top: 10px;
}

.bbh-bartle-regular {
  font-family: "BBH Bartle", sans-serif;
}

.boton-menu {
  display: block;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1ecec;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.4s ease, transform 0.2s ease;
  margin-top: 8px;
  margin-right: 8px;
}

.boton-menu:hover,
.boton-menu:active {
  background-color: #ffffff;
  transform: scale(0.92);
}

/* ===== BOTÓN VOLVER (MÓVIL) ===== */
.boton-volver {
  display: inline-block;
  color: #ff0000;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  margin: 15px 0 10px;
  transition: transform 0.2s ease;
}

.boton-volver:hover {
  transform: translateX(-5px);
}

/* ===== IMÁGENES ===== */

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== CONTENIDO ===== */

.proyecto-detalle {
  padding: 0 20px 60px;
}


/* ===== TÍTULO ===== */

.proyecto-titulo h1 {
  display: flex;
  justify-content: space-between;
  color: #ff0000;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 4px;
  margin: 2rem 0 .5rem;
  text-transform: uppercase;
}

.proyecto-titulo .ubicacion {
  color: #fff;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ===== FOTO PRINCIPAL ===== */

.foto-principal {
  width: 100%;
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* ===== MINIATURAS ===== */

.galeria-miniaturas,
.galeria-miniaturas-2 {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de scroll */

.galeria-miniaturas::-webkit-scrollbar,
.galeria-miniaturas-2::-webkit-scrollbar {
  display: none;
}

.galeria-miniaturas,
.galeria-miniaturas-2 {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Imágenes pequeñas */

.galeria-miniaturas img,
.galeria-miniaturas-2 img {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  object-fit: cover;
  scroll-snap-align: start;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

/* Cuando haces clic */

.galeria-miniaturas img:active,
.galeria-miniaturas-2 img:active {
  transform: scale(0.96);
}

/* ===== PALETA DE COLORES ===== */

.paleta-colores {
  display: flex;
  height: 14px;
  margin-bottom: 2rem;
}

.paleta-colores span {
  flex: 1;
}

/* ===== FICHA TÉCNICA ===== */

.ficha-tecnica {
  background: #000000;
  padding: 1.25rem;
}

.ficha-tecnica > div {
  display: flex;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ficha-tecnica dt {
  color: #ff0000;
  font-size: .85rem;
}

.ficha-tecnica dd {
  color: #fff;
  font-size: .85rem;
  text-align: right;
}

/* ===== DESCRIPCIÓN ===== */

.descripcion {
  color: #aaa;
  font-size: .8rem;
  line-height: 1.6;
  padding: 1.5rem 1.25rem 0;
}

.seccion-titulo {
  color: #ff0000;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 2rem 0 1rem;
}

.plano {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* ===== DESKTOP (PANTALLAS > 1024px) ===== */

@media (min-width: 1024px) {

  /* HEADER DESKTOP */
  .container {
    align-items: center;
    padding: 25px 36px 0 38px;
  }

  .logo {
    font-size: 1rem;
    letter-spacing: 4px;
    line-height: 1.4;
    color: #141414;  
    margin-left: 60px;
  }

  .logo::first-line {
    color: #141414;
  }

  .boton-menu {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ef0808;
    border: none;
    cursor: pointer;
    color: transparent;
    flex-shrink: 0;
    transition: background-color 0.4s ease;

    position: absolute;
    top: 42px;
    right: 48px;
    z-index: 10;
  }

  /* ESTRUCTURA GRID DESKTOP */
  .proyecto-detalle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.72fr);
    grid-template-rows: auto auto auto auto auto 1fr;
    column-gap: 35px;
    align-items: start;

    max-width: 1500px;
    margin: -20px auto; 
    padding: 0 20px 80px;
  }

    /* BOTÓN VOLVER (FLECHA EN COLUMNA IZQUIERDA) */
  .boton-volver {
    display: inline-block;
    grid-column: 1;
    grid-row: 1;
    color: #ff0000;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 4rem;
    transition: transform 0.2s ease;
  }

  .boton-volver:hover {
    transform: translateX(-5px);
  }

  /* COLUMNA IZQUIERDA */
  .proyecto-detalle > .ficha-tecnica  { grid-column: 1; grid-row: 2; }
  .proyecto-detalle > .descripcion    { grid-column: 1; grid-row: 3; }
  .proyecto-detalle > .paleta-colores { grid-column: 1; grid-row: 4; }

  /* COLUMNA DERECHA */
  .proyecto-detalle > .proyecto-titulo    { grid-column: 2; grid-row: 1; }
  .proyecto-detalle > .foto-principal     { grid-column: 2; grid-row: 2 / 6; }
  .proyecto-detalle > .galeria-miniaturas { grid-column: 2; grid-row: 6; }

  /* TÍTULO DESKTOP */
  .proyecto-titulo h1 {
    justify-content: flex-start;
    gap: 1.5em;
    font-size: clamp(1.6rem, 2.9vw, 2.6rem);
    font-weight: 400;
    letter-spacing: .5em;
    margin: 1.2rem 0 .8rem;
  }

  .proyecto-titulo .ubicacion {
    color: #c9c9c9;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 2rem;
  }

  /* FOTO PRINCIPAL Y MINIATURAS DESKTOP */
  .foto-principal {
    aspect-ratio: 7.5 / 4;
    object-fit: cover;
  }

  .galeria-miniaturas img {
    flex: 0 0 180px;
    width: 100px;
    height: 140px;
  }

  /* FICHA TÉCNICA DESKTOP */
  .ficha-tecnica {
    background: none;
    padding: 0;
  }

  .ficha-tecnica > div {
    border-bottom: none;
    padding: .45rem 0;
  }

  .ficha-tecnica dt,
  .ficha-tecnica dd {
    font-size: .8rem;
  }

  .ficha-tecnica dt::after {
    content: " >";
  }

  /* DESCRIPCIÓN Y PALETA DESKTOP */
  .descripcion {
    color: #fff;
    font-size: .8rem;
    line-height: 2.3;
    padding: 2.6rem 0 0;
  }

  .paleta-colores {
    height: 15px;
    margin: 1.2rem 0 0;
  }

  .proyecto-detalle > .galeria-planos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
  }
}