body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-style: italic;
  color: #226094;
  background-image: url("fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.titulo-home {
  color: #CADCEB;
  font-size: 23px;
  margin-top: 30px;
  margin-left: 50px;
  margin-bottom: 43px;
  letter-spacing: 0.35em;
}


main {
  padding: 60px;
  color: white;
}

img {
  max-width: 70%;
  height: auto;
max-width: 700px;
}

nav {
  position: fixed;
  top: 25px;
  right: 30px;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

nav li {
  margin-bottom: 15px;
}

a {
  color: #0469B8;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 0.10em;
}

a:hover {
  text-decoration: underline;
}

body.textos h2 {
  font-size: 33px;
  font-weight: normal;
  margin-bottom: 100px;
  text-align: left;
  letter-spacing: 0.05em; 
}

body.textos .titulo-margen,
body.bio .titulo-margen,
body.obras .titulo-margen {
  position: relative;
  top: 80px;
  left: 40px;
  font-size: 28px;
  font-weight: normal;
  color: white;
}

body.textos main {
  max-width: 650px;
  margin: 0 auto;
  padding-top: 120px;
}

body.textos .texto {
  margin-bottom: 140px;
}


body.textos pre {
  font-family: "Raleway", ExtraLight 200 Italic;
  font-size: 16.5px;
  line-height: 1.5;
}

body.obras a[href="index.html"] {
  display: block;
  text-align: center;
  margin: 60px 0;
  font-size: 22px;
  letter-spacing: 0.2em;
}

.imagen-home {
  
  max-width: none;
  display: block;
}

.preview-obra {
  width: 100vw;
  height: 95vh;      
  overflow: hidden;
  display: block;

margin-bottom: 50px; 
}

.preview-obra img {
  width: 100vw;
  max-width: none;
  object-fit: cover; 
  object-position: center;
  display: block;
  max-width: none;
}

.imagen-obra {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.obras-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 40px;
}

.obra-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
}

body.bio .contenido-bio {
  max-width: 890px;
  margin: 0 auto;
  padding-top: 80px;
}

body.bio .contenido-bio p {
  font-size: 17.5px;
  line-height: 2;
  margin-bottom: 23px;
}

.home-redes {
  max-width: 900px;
  margin: 120px auto 0 auto;
  text-align: center;
}

.texto-home {
  font-size: 19px;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.grid-redes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  max-width: 900px;
  margin: 60px auto 60px auto;
}

.grid-redes img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;

  transition: filter 0.3s ease;
}

.grid-redes img:hover {
  filter: grayscale(80%);
}

@media (max-width: 768px) {
  .grid-redes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.item-red {
  position: relative;
  display: block;
}

.item-red img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  transition: filter 0.3s ease;
}

.item-red:hover img {
  filter: grayscale(70%);
}

.hover-texto {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 18px;
  letter-spacing: 0.15em;

  opacity: 0;
  transition: opacity 0.3s ease;

  pointer-events: none;
}
.item-red:hover .hover-texto {
  opacity: 1;
}

.hover-texto {
  background: rgba(6,71,49,0.4);
}

.obra-completa {
  max-width: 900px;
  margin: 90px auto;
  padding: 0 30px;
}

.galeria-obra {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 40px 0;
}

.galeria-obra img,
.galeria-obra video {
grid-column: span 2;  
width: 100%;
  display: block;
}

.ficha-tecnica {
  margin-top: 60px;
  font-size: 16px;
  line-height: 2;
}

.concepto-obra {
  margin-top: 35px;
  font-size: 17px;
  line-height: 2.1;
}

.galeria-videos {
  
max-width: 1200px;   
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.galeria-videos video {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: none;
  display: block;
}

.galeria-videos video:last-child {
  grid-column: span 2;
  max-width: 70%;
  margin: 0 auto;
}

.titulo-videos {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-align: center;
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 0.2em;
  margin: 50px 0 45px;
}

.copyright-home {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  opacity: 0.7;
  font-family: Arial, sans-serif;
  font-style: italic;
  margin: 40px 0 10px;
}

 .dibujos img {
  display: block;
  margin-bottom: 60px;
}

.video-obra {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 40px;
  margin-bottom: 40px;
}

.video-obra video {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.serie-obras {
  max-width: 900px;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.obra-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.obra-item img,
.obra-item video {
  max-width: 100%;
  height: auto;
  display: block;
}

.descripcion-obra {
  font-size: 16.5px;
  line-height: 1.9;
  max-width: 650px;
  text-align: center;
  margin-top: 6px !important;
}

.grilla-obras {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.miniatura {
  width: 100%;
  height: 140px;
  object-fit: cover;
 cursor: pointer;
}

/* pantallas medianas */
@media (max-width: 1200px) {
  .grilla-obras {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* mobile */
@media (max-width: 768px) {
  .grilla-obras {
    grid-template-columns: repeat(2, 1fr);
  }

  .miniatura {
    height: 200px;
  }
}

.grilla-obras img {
  width: 100%;
  max-width: none;
  height: 220px;
  object-fit: cover;
  margin: 0;
  cursor: pointer;
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}

.cerrar {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.obra-thumb {
  position: relative;
  display: block;
}

.obra-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* capa de hover */
.hover-titulo {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(28, 57, 102, 0.43);
  color: white;

  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.28em;
  text-transform: uppercase;

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}


/* activar hover */
.obra-thumb:hover .hover-titulo {
  opacity: 1;
}

/* opcional: imagen un poco gris */
.obra-thumb:hover img {
  filter: grayscale(40%);
  transition: filter 0.3s ease;
}

.instagram-home {
  display: flex;
  justify-content: center;
  margin: 15px 0 10px 0;
}

.instagram-home img {
  width: 30px;   
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-home img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {

  .preview-obra {
    height: auto;
    margin-bottom: 20px;
  }

  .preview-obra img {
    height: 50vh;
    object-fit: cover;
  }

.titulo-home {
    font-size: 10px;
    margin-left: 20px;
    text-align: left;
    letter-spacing: 0.25em;
    margin-bottom: 25px;
  }

  .titulo-videos {
    font-size: 16px;
    margin: 60px 0 25px;
    letter-spacing: 0.15em;
  }

 .grid-redes {
    padding: 0 20px;
    gap: 20px;
  }

@media (max-width: 768px) {

  /* OBRAS */

  .obras-index {
    grid-template-columns: 1fr;   /* una sola columna */
    gap: 35px;
    margin: 90px auto 40px;
    padding: 0 20px;
  }

.obra-thumb img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

.obra-thumb {
  overflow: visible;
}

  body.obras .titulo-margen {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 40px;
    font-size: 22px;
  }

  body.obras a[href="index.html"] {
    display: block;
    text-align: center;
    margin: 40px 0 60px;
    font-size: 22px;
    letter-spacing: 0.2em;
  }

  /* BIO */

 body.bio .titulo-margen {
    position: relative;
    top: 40px;
    left: 20px;
    margin-bottom: 16px;
    color: white;
  }

  body.bio .contenido-bio {
    max-width: none;
    padding: 60px 20px 0;
  }

  body.bio .contenido-bio p {
    font-size: 16px;
    line-height: 1.8;
  }

  body.bio .imagen-obra {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    max-width: none;
  }

  body.bio a[href="index.html"] {
    display: block;
    text-align: center;
    margin: 40px 0 60px;
    font-size: 22px;
    letter-spacing: 0.2em;
  }
@media (max-width: 768px) {

  /* TEXTOS */

  body.textos .titulo-margen {
    position: relative;
    top: 40px;
    left: 20px;
    margin-bottom: 16px;
    color: white;
  }

  body.textos main {
    max-width: none;
    padding: 60px 14px 0;
  }

  body.textos .texto {
    margin-bottom: 60px;
  }

  body.textos pre {
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
  }

  body.textos a[href="index.html"] {
    display: block;
    text-align: center;
    margin: 40px 0 60px;
    font-size: 22px;
    letter-spacing: 0.2em;
  }

 /* OBRAS */
body.obras .titulo-margen {
    position: relative;
    top: 40px;
    left: 20px;
    margin-bottom: 16px;
    color: white;
  }

}

