/* Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #101010;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  animation: fadeIn 1s ease-in-out;
}

/* Header */
/* Header */
header {
  background-color: rgba(18, 18, 18, 0.5); /* Fondo semitransparente */
  position: sticky; /* Hace el header pegajoso */
  top: 0; /* Fija el header en la parte superior */
  z-index: 1000; /* Asegura que el header esté encima de otros elementos */
  padding: 20px 0;
  animation: fadeIn 1s ease-in-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  width: 100px;
  height: auto;
  margin-left: 3rem;
}

.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  justify-content: right;
  margin-right: 5em;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: 52px;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  transition: color 0.3s;
  font-family: 'orbitron', sans-serif;
  letter-spacing: 1px;
}

.navbar-menu a:hover {
  color: #FFD700;
}

.navbar-search {
  position: relative;
  margin-right: 3rem;
}

.navbar-search input {
  padding: 8px 30px;
  border-radius: 25px;
  border: 1px solid #7d7d7d;
  width: 250px;
  background-color: transparent;
  color: #cfcfcf;
  text-align: left;
  font-size: 16px;
}

.navbar-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent; /* Fondo transparente */
  border: none;
  cursor: pointer;
}

.navbar-search button i {
  font-size: 14px;
  color: #ffffffab; /* Color blanco para el icono */
}

/* Menú de Hamburguesa */
.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-menu i {
  font-size: 30px;
  color: #fff;
}

/* Menú Móvil */
.mobile-nav {
  display: none;
  background-color: #121212;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 10;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin: 15px 0;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #FFD700;
}

.mobile-nav .search-item {
  margin-top: 20px;
}

.mobile-nav .search-item input {
  width: 80%;
  padding: 8px;
  border-radius: 25px;
  border: 2px solid #fff; /* Borde blanco */
  margin-bottom: 10px;
  text-align: center;
  background-color: transparent; /* Fondo transparente */
  color: #fff;
}

.mobile-nav .search-item button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav .search-item button i {
  color: #fff; /* Color blanco para el icono */
}


/* Oculta el menú móvil por defecto */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #121212;
  position: absolute;
  top: 60px; /* Ajusta según la altura del header */
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 1000;
}

/* Muestra el menú cuando tiene la clase show */
.mobile-nav.show {
  display: flex;
}

.hamburger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mostrar el icono de hamburguesa solo en pantallas pequeñas */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .navbar {
    display: none;
  }
}

/* Sección de información */
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.section {
  position: relative;
  width: 100%;
  /* Por defecto, en pantallas grandes, min-height: 70vh; se ajusta en media queries */
  min-height: 70vh;
  overflow: hidden;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.image-wrapper img {
  width: 100%;
  height: 90%;
  object-fit: cover;
}

.section .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
}

.section h2 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.97);  /* Sombra de texto */
}

.section p {
  font-size: 1.67em;
  margin: 0 auto;
  line-height: 1.5em;
  max-width: 750px;
  margin-top: -30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.97);
}

/* Efecto de opacidad sobre la imagen */
.section:hover .image-wrapper {
  opacity: 1; /* Al pasar el cursor se retoma el color */
}

.section:hover .content h2,
.section:hover .content p {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Estilos para los botones de navegación dentro de cada sección */
.section-nav {
  margin-top: 136px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.section-nav a {
  color: #ffc102;  /* Texto amarillo */
  text-decoration: none; /* Eliminar subrayado */
  font-size: 18px;
  padding: 10px 20px;
  margin: 10px;
  background-color: #404040;  /* Fondo gris oscuro */
  border-radius: 5px;  /* Bordes redondeados */
  opacity: 0.9;  /* Opacidad inicial */
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;  /* Transición suave */
  display: inline-block;
}

.section-nav a:hover {
  background-color: #FFA500; /* Fondo naranja cuando se pasa el ratón */
  transform: scale(1.1);  /* Efecto de agrandamiento */
  opacity: 1;
  color: #404040;
}

.section-nav a:active {
  background-color: #FF6347; /* Fondo rojo al hacer clic */
  transform: scale(0.9);
}

/* Media query para pantallas pequeñas (menores a 600px) */
@media (max-width: 600px) {
  .section-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .section-nav a {
    width: 80%; /* Para que los botones ocupen más espacio */
    text-align: center;
    margin: 5px 0; /* Espacio entre botones */
  }
  
  .section {
    min-height: 40vh; /* Reduce la altura en móviles */
  }
}

/* Media query para pantallas medianas (600px - 900px) */
@media (max-width: 900px) {
  .section-nav {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .section-nav a {
    margin: 8px;
  }
  
  .section {
    min-height: 50vh; /* Reduce la altura en tablets */
  }
}

/* Animaciones para secciones */
.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones diferenciadas por sección */
#section1.active {
  animation: section1Entrance 1s ease-out forwards;
}

#section2.active {
  animation: section2Entrance 1s ease-out forwards;
}

#section3.active {
  animation: section3Entrance 1s ease-out forwards;
}

@keyframes section1Entrance {
  from {
    opacity: 0;
    transform: translateX(-100px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes section2Entrance {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes section3Entrance {
  from {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/***** MEJORAS PARA CONTENIDO INTERACTIVO *****/
/* Animación para texto */
.content h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.2s;
}

.content p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.4s;
}

.section.active .content h2,
.section.active .content p {
  opacity: 1;
  transform: translateY(0);
}

/* Mejora animación botones */
.section-nav a {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.explorar-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 20px;
  color: #f1c40f;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #f1c40f;
  border-radius: 5px;
  transition: all 0.4s ease-in-out;
  margin-top: 23px;
}

.explorar-btn:hover {
  background-color: #f1c40f;
  color: #333;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4);
}

/***** OBSERVER PARA ANIMACIONES *****/

/* Footer */
footer {
  background-color: #121212;
  padding: 40px 20px;
  animation: fadeIn 1.5s ease-out;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  width: 120px;
}

.footer-separator {
  width: 50%;
  height: 1px;
  background-color: #fff;
  opacity: 0.2;
}

.footer-menu ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #FFD700;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a i {
  margin-right: 10px;
}

.footer-social a:hover {
  color: #FFD700;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.contact-icon i {
  margin-right: 10px;
}

.contact-icon:hover {
  color: #FFD700;
}

.footer-bottom {
  text-align: center;
  color: #fff;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
  .footer-logo img {
    width: 100px;
  }
  
  .footer-menu ul {
    margin-top: -23px;
  }
  
  .footer-menu a {
    font-size: 14px;
  }
  
  .footer-social a {
    font-size: 14px;
  }
  
  .contact-icon {
    font-size: 16px;
  }
  
  .footer-separator {
    width: 90%;
  }
}

.section h2 {
  font-size: 1.6em;
}

.section p {
  font-size: 1em;
}

.section .content {
  width: 73%;
  font-size: 1.4em;
  top: 51%;
}

.section nav {
  margin-top: 2px;
  gap: 0px;
}



/* Media Queries para ajustar la altura de las secciones */
/* Para dispositivos móviles y tabletas */
@media (max-width: 768px) {
  .section {
    min-height: 75vh;
  }
  .section p {
  font-size: 0.7em;
}
.section h2 {
  font-size: 1.2em;
}

}

/* Para pantallas grandes (mayor a 768px) */
@media (min-width: 769px) {
  .section {
    min-height: 70vh;
  }
}
