/* Tipografía general */

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:  "Courier New", Courier, monospace;
  background-color: #f0f7f9;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* o el alto que uses */
  background-color: #175f6d;
  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; /* justo debajo del header */
  left: 0;
  width: 100%;
  background-color: #258ea5;
  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; /* ajusta si tu header/nav son más altos */
  animation: fadeIn 1s ease-in;
}


#trailer {
  width: 100%;
  height: 500px; /* en lugar de max-height */
  overflow: hidden;
  background-color: #0f2e36; /* tono oscuro dentro de tu gama */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#trailer video {
  width: auto;
  height: 100%;
  object-fit: contain;
}






/* Carrusel */
.carrusel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;     /* Permite que se vean los bordes de las imágenes si sobresalen */
  min-height: 500px;     /* Ajusta este valor según lo que necesites */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;    /* Asegúrate de que no tenga padding inesperado */
}

.carrusel {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;
  position: relative;
  justify-content: center;
}

.item {
  flex: 0 0 300px;
  opacity: 0.5;
  transform: scale(0.8);
  transition: all 0.4s ease-in-out;
  text-align: center;
  z-index: 1;

}

.item img {
  width: 100%;
  height: auto;
  max-height: 450px; /* Ajusta si hace falta */
  object-fit: contain;
  border-radius: 10px;
}

.item.activo {
  transform: scale(1.2);
  opacity: 1;
  z-index: 2;
}



.nombre {
  margin-top: 10px;
  font-weight: bold;
}

.pais {
  font-size: 0.95rem;
  color: #444;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #175f6d;
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 10;
}

.flecha.izq {
  left: 10px;
}

.flecha.der {
  right: 10px;
}




@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 1s ease-in;
}





#mapa {
  margin-top: 60px;
  text-align: center;
  color: #175f6d;
  font-family: "Courier New", Courier, monospace;
}

#mapa h2 {
  color: #175f6d;
}

#map {
  height: 500px;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}



#main-footer {
  background-color: #175f6d; /* mismo azul de la cabecera */
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border-top: 4px solid #0f2e36; /* un borde más oscuro para separar */
}




/* 1. Añadir media query para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  /* 1.a Ajustar el header para que su tamaño y fuente no sean tan grandes */
  header {
    height: 60px; /* menos alto */
    font-size: 1.5rem; /* más pequeño */
  }
  header h1 {
    font-size: 2rem;
  }

  /* 1.b Navegación: el menú horizontal puede romperse, mejor poner en columna o scroll */

  nav {
    top: 60px;
  }

  nav ul {
    flex-direction: column; /* poner vertical */
    padding: 0.5rem 0;
  }
  nav li {
    margin: 10px 0; /* espacio vertical */
  }

  /* 1.c Ajustar tamaño de fuente en links */
  nav a {
    font-size: 1rem;
  }

  /* 1.d Main: reducir padding-top porque header + nav son más pequeños */
  main {
    padding-top: 110px;
  }

  /* 1.e Trailer video: hacer que ocupe ancho completo y ajustar altura */
  #trailer {
    height: 250px;
  }
  #trailer video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cubrir sin deformar */
  }

  /* 1.f Carrusel: cambiar flex para que no se salga */
  .carrusel-wrapper {
    min-height: auto; /* quitar altura fija */
    padding-left: 10px; /* un poco de padding */
  }
  .carrusel {
    flex-wrap: nowrap;
    overflow-x: auto; /* permitir scroll horizontal */
  }
  .item {
    flex: 0 0 80%; /* que ocupe el 80% del ancho en móvil */
    opacity: 1; /* mostrar todo igual */
    transform: scale(1); /* quitar escalado */
  }
  .item.activo {
    transform: scale(1);
  }

  /* 1.g Flechas: esconder o hacer más pequeñas para no tapar */
  .flecha {
    font-size: 1.5rem;
    padding: 5px 10px;
  }
  .flecha.izq {
    left: 5px;
  }
  .flecha.der {
    right: 5px;
  }

  /* 1.h Mapa: que ocupe 100% del ancho en móvil */
  #map {
    width: 100%;
    height: 300px; /* menos alto */
    margin: 10px auto;
  }

  /* 1.i Footer: ajustar padding y font-size */
  #main-footer {
    padding: 15px 5px;
    font-size: 0.8rem;
  }
}


/* 2. Media query para tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Ajustar tamaño de header */
  header {
    height: 70px;
    font-size: 1.75rem;
  }
  header h1 {
    font-size: 2.5rem;
  }
  main {
    padding-top: 125px;
  }

  /* Carrusel: tamaño intermedio */
  .item {
    flex: 0 0 45%;
  }
}



