/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #f5f5f2;
  color: #000;
  padding-top: 100px;
}


/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.6; /* opcional, sutil */
}


/* HEADER */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f5f5f2;
  z-index: 1000;
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.logo {
  grid-column: 1;
  justify-self: start;
  font-weight: bold;
}

.nav {
  grid-column: 3;
  justify-self: end;
}

/* GRID CONTENEDOR */
.grid {
  max-width: 1400px;        /* 🔑 CLAVE */
  margin: 20px auto 120px; /* 🔑 CLAVE */
  padding: 0 20px;         /* 🔑 CLAVE */

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* IMÁGENES */
.item img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.item video {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* ===== HOVER PROYECTOS ===== */

.item {
  position: relative;
  cursor: pointer;
  display: block;
}

.item img {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  color: #000;
  background: none;

  opacity: 0;
  transition: opacity 0.25s ease;

  z-index: 3;
  pointer-events: none;

  /* 🔽 NUEVO */
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.overlay span {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.item:hover img,
.item:hover video {
  opacity: 0;
}

.item:hover .overlay {
  opacity: 1;
}

.project-title {
  font-style: normal;
  font-weight: bold;
}

.project-location {
  font-style: italic;
  font-weight: 400;
  opacity: 1;
}

.project-status {
  font-style: normal;
  font-weight: 400;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f5f5f2; /* mismo blanco del fondo */
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;           /* capa blanca */
  pointer-events: none;
}

.item:hover::after {
  opacity: 1;
}

/* PÁGINAS DE TEXTO */
.page-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 20px;
}

.content {
  max-width: 520px;
}

.names {
  margin-top: 40px;
}

.divider {
  margin: 40px 0;
  border-bottom: 1px dashed #aaa;
  width: 100%;
}

.contact {
  font-size: 0.95em;
}

@media (max-width: 768px) {

  .project-info {
    opacity: 1;            /* siempre visible */
    position: static;     /* sale del overlay */
    padding: 8px 0 0;
    font-size: 14px;      /* ← clave para que no sea gigante */
    line-height: 1.3;
  }

  .item::after {
    display: none;        /* sin capa blanca en mobile */
  }
}

a.item:hover {
  opacity: 1;
}

/* ==============================
   PROJECT LAYOUT
   ============================== */

.project-grid {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
}

/* 2/3 IZQUIERDA */
.project-slider {
  grid-column: 1 / 9;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.project-slider .slide {
  max-height: 85vh;
  max-width: 100%;
  display: none; /* por defecto oculta */
  width: auto;
  height: auto; /* respeta proporción real */
}

.project-slider .slide.active {
  display: block; /* muestra solo la activa */
}

/* 1/3 DERECHA */
.project-text {
  position: fixed;

  top: 120px; /* alineado con header */
  right: calc((100vw - 1400px) / 2 + 20px); 

  width: calc((1400px / 12) * 4 - 20px);

  font-size: 15px;
  line-height: 1.5;
  text-align: right;
}

.project-title02 {
  font-style: italic;
  font-weight: bold;
  font-size: 15px;
  margin: 0 0 20px 0;
  margin-bottom: 0px; /* controla distancia */
}

.project-subtitle {
  margin: 0; /* elimina margen automático del <p> */
  font-size: 14px;
}

.project-data {
  margin-top: 40px;
  font-size: 14px;
  opacity: none;
}

.project-data p.spaced {
  margin-top: 20px; /* ajustá el valor a gusto */
}


/* SLIDER SIMPLE (vertical) */
.slider img {
  width: 100%;
  display: block;
  margin-bottom: 32px;
}

@media (max-width: 768px) {

  .project-layout {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .project-text {
    grid-column: auto;
    width: 100%;
  }

}


