
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Fredericka+the+Great&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #2e2d2d;
}


html {
  scroll-behavior: smooth;
}


section {
   padding: 100px 5%;   /* espacio interior */
  min-height: auto; 
  position: relative;
}

h1, h2 {
  font-weight: 700;
  letter-spacing: 1px;
}

.fade-layer {
  position: absolute;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fade-in .fade-layer {
  opacity: 1;
}

/* Grid base para la intro */
#home {
    display: grid;  
  grid-template-columns: repeat(12, 1fr); /* o como prefieras */
  grid-template-rows: repeat(12, 1fr);
  gap: 40px; 
   position: relative;
  height: 100vh;
  background: #fff;
}

/*#home h1 {
  font-size: 4rem;
  z-index: 2;
  color: #2f2f2f;
}*/

#home .block {
  position: absolute;
}

.block {
  display: flex;            /* o block, o relative + absolute interno */
  flex-direction: column;   /* imagen arriba, texto abajo */
  align-items: center;      /* centra horizontal */
}

#block1 {
  top: 50px;
  left: 50px;
  width: 350px;
   grid-column: 1 / 5;
  grid-row: 3 / 5;
  width: 100%;
}

#block2 {

  height: auto;
    grid-column: 4 / 8;
  grid-row: 6 / 7;
  position: relative; /* necesario para que ::after se posicione */

  width: 100%;
  /*aspect-ratio: 16/9;  aseguras proporción */
  grid-column: 4 / 8;
  grid-row: 6 / 7;
  position: relative;
  background: url('images/bck2/bck2c.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sofia Sans', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}
/* Overlay con ::after */
#block2::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bck2/bck2b.jpg') center/cover no-repeat;
  opacity: 0;
  animation: fadeInOut 2.5s infinite alternate;
}

/* Animación */
@keyframes fadeInOut {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
#block3 {
  top: 50px;
  right: 100px;
  width: 400px;
    grid-column: 8 / 12;
  grid-row: 1 / 4;

}

#block4 {
  grid-column: 2 / 5;   /* define su propia posición */
  grid-row: 9 / 12;
  align-self: left;   /* para centrar vertical en su celda */
  justify-self: left; /* para centrar horizontal */
  font-size: 1rem;
  font-weight: 200;
  font-family: 'Din', sans-serif;
  color: #111;
}



#block5-link {
  grid-column: 3 / 5;
  grid-row: 10 / 12;
  width: 100%;
  height: 100%;
}
#block5 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.scroll-down-icon {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #111;
  animation: bounce 2s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/*.scroll-down-icon.hidden {
  display: none;
}*/



.vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg); /* invierte la lectura para que quede natural */
  text-align: center;        /* opcional */
  font-size: 1.5rem;           /* ajusta a tu estilo */
  margin: 0;
}



/* Línea divisora */
.section-divider {
  width: 70%;
  height: .5px;
  background: #111;  /* color de línea */
  margin: 20px auto 40px auto;
}

/* Título de la sección */
.section-title {
  font-size: 2rem;
  font-weight: 100;
  margin-left: 50px;   /* espacio debajo del título */
  margin-bottom: 40px;   /* espacio debajo del título */
}
/* Contenedor de párrafos principales */
.section-content p {
  max-width: 600px;
  margin: 0 auto 30px auto;  /* centrado + espacio entre párrafos */
  text-align: justify;       /* opcional */
  text-indent: 40px;         /* sangría al inicio */
  line-height: 1.6;          /* legibilidad */
}

/* Texto destacado en negrita */
.section-highlight {
  max-width: 800px;
  margin: 50px auto 0 auto;  /* centrado + más margen arriba */
  font-weight: bold;
  text-align: center;        /* o justify, como prefieras */
  line-height: 1.5;
}

.exhibition-section {
  padding: 60px 5%;
}

.section-divider {
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: #111;
  margin: 40px auto;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.artist-photo {
  width: 450px;
  margin: 0;
}

.artist-photo img {
  width: 100%;
  display: block;
  background: #ccc; /* cuadro gris de placeholder */
}

.artist-photo figcaption {
  margin-top: 10px;
  font-size: 0.5rem;
    text-align: right;          /* o right o center, como prefieras */
  line-height: 1.2;          /* apretadito */
  letter-spacing: 0.5px;  
}

.exhibition-wrapper {
  display: flex;
  flex-direction: column;
  gap: 120px; /* separación entre las dos filas */
  margin-top: 60px;
}

.exhibition-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.exhibition-text h2,
.exhibition-text h3 {
  margin: 20px 0;
}

.exhibition-text p {
  margin-top: 20px;
  max-width: 80%;
  line-height: 2rem;
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 1.2rem;
  padding-left: 70px;
  
}

.exhibition-text1 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;      /* alinea títulos a la derecha */
  text-align: right;           /* alinea el texto */
}

.exhibition-text1 h2,
.exhibition-text1 h3 {
  margin: 0;
}

.exhibition-text1 p {
  margin-top: 20px;
  max-width: 90%;
  line-height: 2rem;
  font-family: 'Sofia Sans Extra Condensed', sans-serif;
  font-size: 1.2rem;
  padding-left: 70px;
}


.exhibition-photo {
  width: 100%;
  max-width: 450px;
}

.exhibition-photo img {
  width: 100%;
  height: auto;
  display: block;
  padding-left: 50px;
  
}

.exhibition-photo figcaption {
  margin-top: 8px;
  font-size: 0.6rem;
  text-align: right;
  color: #333;
}

.exhibition-divider {
  width: 90%;
  margin: 80px auto;
  border-bottom: 1px dashed #111;
}

.expo-downloads {
  margin-top: 30px;
  margin-bottom: 30px;
}

.pdf-link {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.pdf-link:hover {
  opacity: 0.6;
}


.process-title {
  text-align: right;
  font-size: 1.5rem;
  margin-bottom: 40px;
  margin-right: 80px; /* espacio a la derecha */
}

.process-gallery {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.process-item {
  width: 100px;
  height: 100px;
  background: #efeeea; /* color claro para placeholder */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.process-item:hover {
  transform: scale(1.05);
}
.process-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.process-thumb:hover {
  transform: scale(1.05);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Botones de navegación */
.nav-button {
  font-size: 2.2rem;
  color: white;
  background: none;
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  cursor: pointer;
}

.nav-button.prev {
  left: -3rem;
}

.nav-button.next {
  right: -3rem;
}

/* Botón cerrar */
.close-modal {
  position: absolute;
  top: -2rem;
  right: -2rem;
  font-size: 2.2rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  z-index: 10001;
}


.process-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.process-thumb:hover {
  transform: scale(1.05);
}



.visits-section {
  padding: 60px 5%;
}

.visits-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}



.visits-form {
  flex: 1;
  display: flex;
  flex-direction: column; /* UNA SOLA COLUMNA */
  gap: 20px;
  font-family: 'Courier New', Courier, monospace; /* typewriter style */
}

.visits-form input,
.visits-form textarea,
.visits-form button {
  width: 90%;
  padding: 15px;
  border: none;
  background: #e8e7d2;  /* igual que campos */
  color: #111;
  font-family: inherit;
  font-size: 0.9rem;  /* más pequeño */
  font-weight: normal; /* NO bold extra */
}

.visits-form button {
   /* quita width: 100% !! */
  background: #e8e7d2;
  color: #111;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 15px 30px;   /* ancho del botón controlado por padding */
  border: none;
  cursor: pointer;
  text-align: right;
  align-self: flex-end; /* ¡esto sí funciona ahora! */
  transition: background 0.3s;
}

.visits-form button:hover {
  background: #d5d4c2; /* tono más oscuro al pasar mouse */
}

.visits-form input::placeholder,
.visits-form textarea::placeholder {
  color: #666;
}

.contact-section {
  padding: 60px 5%;
}

.contact-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 2rem;
  margin: 0;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column; /* UNA SOLA COLUMNA */
  gap: 20px;
  font-family: 'Courier New', Courier, monospace; /* estilo máquina de escribir */
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 15px;
  border: none;
  background: #eaeee7; /* mismo fondo */
  color: #111;
  font-family: inherit;
  font-size: 0.9rem; /* pequeño y uniforme */
}

.contact-form button {
    background: #eaeee7; /* mismo fondo */
  color: #111;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  align-self: flex-end; /* 👈 ALINEADO A LA DERECHA */
  transition: background 0.3s;
}

.contact-form button:hover {
    background: #eaeee7; /* mismo fondo */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

/* BOTÓN UNIFICADO PARA VISITS Y CONTACT */
.visits-form button,
.contact-form button {
  width: 100%;              /* mismo ancho que inputs */
  padding: 15px;
  background: #e8e7d2;      /* mismo color que campos */
  color: #111;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: center;
  display: block;
  transition: background 0.3s;
}

.visits-form button:hover,
.contact-form button:hover {
  background: #dcdac7;
}

/* 📱 MOBILE – EXHIBITIONS */
@media (max-width: 768px) {

  /* Wrapper general */
  .exhibition-wrapper {
    gap: 60px;
    margin-top: 40px;
  }

  /* Cada fila se vuelve 1 columna */
  .exhibition-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Orden móvil deseado */
  /* FILA 1: texto antes que foto */
  .exhibition-row:nth-child(1) .exhibition-text1 {
    order: 1;
  }
  .exhibition-row:nth-child(1) .exhibition-photo {
    order: 2;
  }

  /* FILA 2: foto antes que texto */
  .exhibition-row:nth-child(2) .exhibition-photo {
    order: 1;
  }
  .exhibition-row:nth-child(2) .exhibition-text1,
  .exhibition-row:nth-child(2) .exhibition-text2 {
    order: 2;
  }

  /* Fotos en móvil */
  .exhibition-photo {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .exhibition-photo img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Títulos verticales: arriba y centrados */
  .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Textos: nada de “chorizo”, máximo 95% y centrado */
  .exhibition-text1, 
  .exhibition-text2 {
    align-items: flex-start;
    text-align: left;
  }

  .exhibition-text1 p,
  .exhibition-text2 p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.7rem;
  }

  /* Divider punteado */
  .exhibition-divider {
    width: 60%;
    margin: 40px auto;
  }

  /* PROCESS SECTION – QUE NO SE ACHIQUEN */
  .process-gallery {
    gap: 15px;
    justify-content: center;
  }

  .process-thumb {
    width: 110px;
    height: 110px;
  }
}
 
/* 📱 MOBILE FIXES – VISITS + CONTACT + BLOCK5 */
@media (max-width: 768px) {

  /* ---------- VISITS SECTION ---------- */
  .visits-flex {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .visits-section .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .visits-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    gap: 15px;
  }

  .visits-form input,
  .visits-form textarea,
  .visits-form button {
    width: 100% !important;
    font-size: 1rem;
  }

  .visits-form button {
    align-self: flex-end; /* mantiene tu estilo */
  }


  /* ---------- CONTACT SECTION ---------- */
  .contact-flex {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .contact-section .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .contact-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    gap: 15px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100% !important;
    font-size: 1rem;
  }


  /* ---------- SOCIAL ICONS ---------- */
  .social-wrapper {
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
  }


  /* ---------- BLOCK 5 (GIF) ---------- */
  #block5 {
    grid-column: 1 / -1 !important;
    grid-row: auto;
     width: 100vw !important;
    height: auto !important;
    max-height: none;
    object-fit: cover;
    margin: 20px 0 20px 10px;
  }

  #block5-link {
    width: 100%;
    display: block;
  }
}

