* {
  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 Y BASE) ===== */
.boton-volver {
  display: inline-block;        /* Muestra el botón en móvil */
  color: #ff0000;              /* Color rojo */
  font-size: 1.2rem;           /* Mismo tamaño que en desktop */
  font-weight: bold;
  text-decoration: none;       /* Quita el subrayado */
  margin: 0rem 0;             /* Espaciado para que no quede pegado */
  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;
}

@media (min-width: 1024px) {

  /* ===== HEADER ===== */
  .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;          /* 2da línea: VICENTE */
  }

  .logo::first-line {
    color: #141414;               /* 1ra línea: CHRISTOPHER */
  }

  .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;
  }

  .proyecto-detalle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.72fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 35px;
    align-items: start;

    max-width: 1500px;      /* ← ancho máximo de todo el bloque */
    margin: -20px auto;
    padding: 0 20px 80px;
  }

  /* Todo lo que no se coloca a mano cae en la columna derecha */
  .proyecto-detalle > * {
    grid-column: 2;
  }

    /* 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 derecha */
  .proyecto-detalle > .proyecto-titulo    { grid-row: 1; }
  .proyecto-detalle > .foto-principal     { grid-row: 2 / 6; }  /* ocupa las filas 2 a 5 */
  .proyecto-detalle > .galeria-miniaturas { grid-row: 6; }

  /* Columna izquierda, alineada con la parte de arriba de la foto */
  .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; }

  /* ===== TÍTULO ===== */
  .proyecto-titulo h1 {
    justify-content: flex-start;
    gap: 1.5em;                          /* espacio entre CASA y PETRAIA */
    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 ===== */
  /* Proporción fija: al cambiar de foto con las miniaturas, el layout no salta */
  .foto-principal {
    aspect-ratio: 7 / 4;
    object-fit: cover;
  }

  .galeria-miniaturas img {
    flex: 0 0 180px;
    width: 100px;
    height: 140px;
  }

  /* ===== FICHA TÉCNICA ===== */
  .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 ===== */
  .descripcion {
    color: #fff;
    font-size: .8rem;
    line-height: 2.3;
    padding: 2.6rem 0 0;
  }

  /* ===== PALETA ===== */
  .paleta-colores {
    height: 15px;
    margin: 1.2rem 0 0;
  }

  /* ===== PLANOS (opción B) ===== */
  .proyecto-detalle > .seccion-titulo {
    grid-column: 1;
    grid-row: 7;
    align-self: start;
    margin: 4rem 0 0;
    padding: 0;
    font-size: 2.5rem;
    text-align: left;
  }

  .proyecto-detalle > .galeria-planos {
    grid-column: 2;
    grid-row: 7;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0px;
  }

  .galeria-planos img {
    width: 100%;
    height: auto;
    display: block;
  }
}