/* Reset */
* {
    margin: 0;
padding: 0;
box-sizing: border-box;
}

body, html {
  font-family: "Open Sans", sans-serif;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
main {
  padding-bottom: 60px; /* Adjust based on your footer height */
}


a {
    color: black;
    text-decoration: none;
    
}

a:hover {
    color: black;
    text-decoration: underline;
    
}


   


    .main-content {
      display: none;
      text-align: center;
      padding: 2rem;
    }
    
     aside {
      width: 220px;
      padding: 2.5rem 1.25rem;
      border-right: 1px solid #ddd;
    }
    



.expo {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.expo img {
padding-top: 1rem;
width: 85%;
height: auto;
}

.expo-texto {
  padding: 1.5rem;
  max-width: 800px;
  width: 100%; /* esto lo hace ocupar todo el ancho en mobile */
  word-wrap: break-word;
  box-sizing: border-box;
}

  .e-content {
      flex: 1;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: flex-start;
      gap: 2rem;
      padding: 4rem 5vw 3rem;
  padding-bottom: 6rem; /* Adjust based on your footer height */

    }

  

    .expo-texto h2 {
      font-size: 2rem;
      margin: 0;
    }

    .expo-texto h2 a:hover {
      text-decoration: underline;
    }

    .expo-texto .subtitle {
      font-size: 1.3rem;
      font-weight: normal;
      margin: 0.5rem 0;
    }

 

    .carousel-container {
      width: 100%;
      overflow: hidden;
      margin: 5vh 0;
      position: relative;
    }
    
     .carousel-title {
      font-size: 1.8rem;
      margin-left: 5vw;
      margin-bottom: 2vh;
      font-weight: 500;
    }

    .carousel {
      display: flex;
      align-items: center;
      position: relative;
    }
    
    .carousel-nav {
      background: black;
      color: white;
      border: none;
      border-radius: 50%;
      width: 2rem;
      height: 2rem;
      font-size: 1rem;
      cursor: pointer;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      opacity: 0.8;
      transition: background 0.3s ease;
    }

    .carousel-nav:hover {
      background: #444;
    }

    .carousel-prev { left: 1rem; }
    .carousel-next { right: 1rem; }

   .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 4vw;
  padding: 1rem 5vw;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;             /* ✅ Asegura que ocupe todo el ancho */
  scroll-padding: 0 5vw;   /* ✅ Compensa los márgenes para centrar bien */
}
    .carousel-track img {
    height: auto !important;
  width: 80% !important;
  max-width: 90vw;
  object-fit: cover;
  aspect-ratio: 3 / 2; /* o ajusta según tus imágenes */
  display: block;
  border-radius: 0.5rem;
}

 .carousel-title {
      font-size: 1.8rem;
      margin-left: 5vw;
      margin-bottom: 2vh;
      font-weight: 500;
    }

    .carousel {
      display: flex;
      align-items: center;
      position: relative;
    }

   .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 4vw;
  padding: 1rem 5vw;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;             /* ✅ Asegura que ocupe todo el ancho */
  scroll-padding: 0 5vw;   /* ✅ Compensa los márgenes para centrar bien */
}
    .carousel-track img {
    height: auto !important;
  width: 80% !important;
  max-width: 90vw;
  object-fit: cover;
  aspect-ratio: 3 / 2; /* o ajusta según tus imágenes */
  display: block;
  border-radius: 0.5rem;
}

.exposiciones p {
  font-size: 1rem;
  color: #000;
  margin-bottom: 40px;
  text-align: center;
}

.expo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

.expo-card {
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.expo-card:hover {
  transform: translateY(-5px);
}

.expo-card img {
  width: 100%;
  aspect-ratio: 4 / 3; /* mantiene proporción estable */
  height: auto;
  object-fit: cover;
  display: block;
}

.expo-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1; /* para empujar el texto a ocupar espacio */
}

.expo-info h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #111;
}

.expo-info p {
  margin: 0;
  font-size: 1rem;
  color: #000;
}



/* From Uiverse.io by ernestnash */ 
.btn {
 display: inline-block;
 padding: 0.5rem 1rem;
 border: 2px solid rgb(0, 0, 0);
 cursor: pointer;
 position: relative;
 background-color: transparent;
 overflow: hidden;
}


    @media screen and (max-width: 1024px) {
      .carousel-track img {
        width: 90vw;
      }
    }

    @media screen and (max-width: 768px) {
      .carousel-track img {
        width: 130vw;
      }
      
       .carousel-nav {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
      }

    

 

      aside {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
      }
    }

@media screen and (max-width: 600px) {
  .expo {
    flex-direction: column;
    align-items: center;
  }
  .expo img{
      width: 100%;
  }

  .expo-texto h2 {
    font-size: 1.5rem;
  }

  .expo-texto .subtitle,
  .expo-texto p {
    font-size: 1rem;
    line-height: 1.6;
  }


}

/* Responsive styles */











/* ===========================
   ESTILOS RESPONSIVOS MÓVIL
   =========================== */

@media (max-width: 768px) {

  



    .main-content,
    .exposiciones, .h1 {
        padding: 60px 20px;
        text-align: center;
        font-size: .5rem;
    }

    .expo-container h2 {
        font-size: 1.5rem;
    }

    .expo-container p {
        font-size: 1rem;
    }


}





/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

   


    .expo-container h2 {
        font-size: 1.5rem;
    }

    .expo-container p {
        font-size: 1rem;
        padding: 0 10px;
    }

   
}
