/* Tipografía general */

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background-color: #fdf8f2;
  color: #333;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #da8a2f;
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header h1 {
  font-size: 3rem;
  margin: 0;
}

nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: #b76f22;
  font-family: "Courier New", Courier, monospace;
  color: white;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin: 0;
}

nav li {
  margin: 0 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

main {
  padding-top: 140px;
  animation: fadeIn 1s ease-in;
}

/* Estructura de contenido intercalado */
.bloque {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.bloque.reverse {
  flex-direction: row-reverse;
}

.bloque-imagen, .bloque-texto {
  flex: 1;
  min-width: 280px;
}

.bloque-imagen img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.fondo-claro {
  background-color: #f6e8d8;
}

.centrado {
  text-align: center;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Footer */
#main-footer {
  background-color: #b76f22;
  color: white;
  text-align: center;
  padding: 40px 10px 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border-top: 4px solid #9c5719;
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.carrusel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 700px; /* alto para fotos verticales */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background-color: #da8a2f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carrusel-item {
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrusel-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Flechas a los lados */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f6e8d8;
  color: black;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
  border-radius: 50%;
}

.flecha.izq {
  left: 10px;
}

.flecha.der {
  right: 10px;
}


/* -------------------- MEDIA QUERIES RESPONSIVE -------------------- */

@media (max-width: 1024px) {
  .bloque {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .carrusel-container {
    max-width: 90%;
    height: 600px;
  }
}

@media (max-width: 768px) {
  header {
    height: 60px;
    font-size: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  nav li {
    margin: 10px 0;
  }

  nav a {
    font-size: 1rem;
  }

  main {
    padding-top: 120px;
  }

  .carrusel-container {
    height: 500px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .carrusel-container {
    height: 400px;
  }

  #main-footer {
    font-size: 0.8rem;
    padding: 30px 5px;
  }
}


