h1, h2, h3, h4, h5, h6, p, a, span, li {
  font-family: 'Poppins', sans-serif;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  background-color: #a5c1e2;
  color: #0f1633;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #2a466b;
  color: rgb(241, 241, 241);
  padding: 0.4em 1.8em;
  z-index: 1000;
  transition: 
    opacity 0.6s cubic-bezier(.77,0,.18,1), 
    visibility 0.6s cubic-bezier(.77,0,.18,1),
    transform 0.6s cubic-bezier(.77,0,.18,1);
  opacity: 1;
  visibility: visible;
  text-align: left;
  transform: translateY(0);
  border-radius: 0px 0px 20px 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
}
header.hide-header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: right;
  gap: 1.5em;
  padding: 0;
  margin: 0.5em 0 0;
  
}

nav a {
  color: rgb(235, 235, 235);
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.6em, 1.9vw, 1.6em);
  padding: 0.5em 1.2em;
  border-radius: 8px;
  transition: border 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  box-sizing: border-box;
}

nav a:hover {
  border: 2px solid #fff;    /* Borde blanco al pasar el ratón */
  box-shadow: 0 2px 8px rgba(0,64,128,0.15); /* Sombra suave opcional */
}

.footer {
  background-color: #2a466b;
  padding: 2em;
  color: #ffffff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
}

.footer-redes {
  display: flex;
  gap: 1em;
}

.icono-red {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.icono-red:hover {
  transform: scale(1.2);
}


/* Carrusel */

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seccion {
  padding: 4em 2em;
  max-width: 800px;
  margin: auto;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 2em;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1em;
 
}

.logo {
  height: 100px;
  background-color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  width: auto;
  max-height: 100%;
  max-width: 100%;
}

.imagen-nosotros {
  height: 200px;
  width: auto;
  max-height: 100%;
  max-width: 100%;
}

.carrusel {
  overflow: hidden;
  position: relative;
  transition: height 0.8s cubic-bezier(.77,0,.18,1);
  height: 100vh;
  z-index: 1;
  margin-bottom: 0; /* Asegura que no haya espacio extra */
}

.carrusel.shrink {
  height: 60vh;
}

.main-content {
  transition: margin-top 0.8s cubic-bezier(.77,0,.18,1);
  margin-top: 0;
}

.main-content.visible {
  margin-top: 20vh; /* Espacio para el header */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translate(-50%,0);}

  40% {transform: translateY(-50%,-10px);}

  60% {transform: translateY(-50%,-5px);}
}

.scroll-down {
  animation: bounce 2s infinite;
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: none;
  color: #ffffff; /* Color del header */
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-size: 2.5em;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s, transform 0.3s;
  box-shadow: none;
  padding: 0;
}

.scroll-down:hover {
  color: #004080;
  transform: translateX(-50%) translateY(8px); /* Animación sutil hacia abajo */
}

.card-parallax {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  max-width: 1100px;
  margin-bottom: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 1;
}
.card-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 42, 100, 0.692);
  z-index: 2;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.quienes-somos {
  padding: 80px 20px;
  background: #f8f9fa; /* Gris claro para diferenciar */
  text-align: center;
  margin-bottom: 40px;
}

.quienes-somos h2 {
  font-size: 2.5rem;
  color: #2c419c; 
}

.quienes-somos .descripcion {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
}
.animable {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s ease-out;
}

.animable.visible {
  opacity: 1;
  transform: translateY(0);
}

.imagen-intermedia {
  text-align: center;
  margin: 40px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.imagen-intermedia.visible {
  opacity: 1;
  transform: translateY(0);
}

.van-img {
  max-width: 100%;
  width: 900px;
  height: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.carrusel-viajes {
  padding: 60px 200px;
  background-color: #f4f4f4;
  text-align: center;
  border-radius: 20px;
}


.carrusel-container {
  position: relative;
  max-width: 100%; 
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px; /* 🔹 bordes redondeados */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.carrusel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.carrusel-track::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome */
}

.viaje-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}



.viaje-item img {
  width: 100%;
  height: 350px;
  border-radius: 12px; /* 🔹 redondea también las imágenes */
  object-fit: cover;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 24px;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
}

.carrusel-btn.left {
  left: 10px;
}

.carrusel-btn.right {
  right: 10px;
}

.carrusel-btn:hover {
  background-color: rgba(31, 55, 134, 0.7);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 25px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

.whatsapp-btn img {
  width: 18px;
  height: 18px;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.contact-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #152038;
}

.contact-simplificado {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #152038;
}

.contact-info h4 {
  margin-top: 25px;
  font-size: 18px;
  color: #444;
}

.contact-info p {
  font-size: 18px;
  margin: 10px 0;
  color: #333;
}

.contact-info a {
  color: #1d72b8;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-redes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.icono-red {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.icono-red:hover {
  transform: scale(1.15);
}
.map-section {
  padding: 2em 1em;
  background-color: #f4f7fb;
  text-align: center;
}

.map-section h3 {
  font-size: 2em;
  color: #1e3a8a;
  margin-bottom: 1.5em;
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1200px;
  border-radius: 1em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1em;
}

.equipo-section {
  margin-top: 2em;
  background-color: #f4f7fb;
  padding: 3em 2em;
  text-align: center;
}

.equipo-section h2 {
  font-size: 2em;
  color: #1e3a8a; /* azul fuerte */
  margin-bottom: 1.5em;
}

.equipo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.equipo-foto {
  max-width: 500px;
  border-radius: 1em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
  
.equipo-content p {
  max-width: 600px;
  font-size: 1.1em;
  line-height: 1.6em;
  color: #333;
}

.mobile-menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: white;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  text-align: center;
}

.mobile-menu a {
  padding: 15px;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid #ccc;
}

.codigo-honor-carrusel {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 70vh;
  border-radius: 12px;
}

.codigo-honor-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.codigo-honor-card {

  min-width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;      /* Centra verticalmente */
  justify-content: center;  /* Centra horizontalmente */
  box-sizing: border-box;
  padding: 2rem;
  position: relative;
  border-radius: 12px;
}

.codigo-honor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(9, 25, 80, 0.692);
  border-radius: 12px;
}

.codigo-honor-card .card-content {
  background-color: rgba(226, 226, 226, 0.74);
  color: rgb(0, 0, 0); 
  padding: 1rem;
  border-radius: 12px;
  max-width: 80%;
  margin: auto;
  text-align: center;
  position: relative;
  position: relative;
  max-width: 700px;
  text-align: center;
  z-index: 1;
}

.codigo-honor-card p {
  font-size: 25px;
}


#contacto {
  max-width: 1300px;
  padding: 1em 1em;
  margin: 2em auto;
}

@media screen and (max-width: 768px) {

  body, header, .mobile-menu, .branding {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-align: center;
}

.regla-item {
    flex: 0 0 45%;
    font-size: 17px;
  }

  .carrusel-viajes {
    padding: 20px 0;
    border-radius: 12px;
  }

  .carrusel-container {
    overflow: hidden;
  }

  .carrusel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }

  .carrusel-track::-webkit-scrollbar {
    display: none;
  }

  .viaje-item {
    flex: 0 0 100%; /* 🔹 que ocupe todo el ancho */
    scroll-snap-align: start;
    margin: 0; /* sin márgenes horizontales */
    padding: 0 16px; /* opcional: padding interno */
    box-sizing: border-box;
  }

  .viaje-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .viaje-item img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    display: block;
  }

  .whatsapp-btn {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .whatsapp-btn img {
    width: 16px;
    height: 16px;
  }

  .carrusel-btn {
    font-size: 18px;
    padding: 10px;
  }
    header {
      background: transparent;
  }
   #mainHeader {
    box-shadow: none !important;
  }
  header.active{
    background: #2a466b;
  }
    .logo {
    height: 40px;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
  }
    nav ul {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
  }
  
  .branding {
    display: none;
  }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background-color: #2a466b;
  position: absolute;
  top: 60px;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1em;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}
/* Estilo para el logo dentro del menú */
.mobile-menu .branding {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
  justify-content: center;
  padding: 1em 0;
}

.mobile-menu .branding .logo {
  max-width: 100px; 
}

/* Estilo para los enlaces del menú */
.mobile-menu a {
  padding: 0.5em 0;
  text-align: center;
  font-size: 1.1em;
  text-decoration: none;
  color: rgb(255, 255, 255);
}
.equipo-section {
    padding: 2em 1em;
  }

  .equipo-foto {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .equipo-content {
    gap: 1em;
  }

  .equipo-content p {
    font-size: 1em;
    padding: 0 1em;
  }
   .imagen-intermedia {
    margin: 30px auto;
    padding: 0 16px;
    max-width: 100%;
  }

  .imagen-intermedia img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 500px; /* Ajusta según lo que necesites */
    object-fit: cover;
  }

}
/* Ayuda a la resolucion en paginas mobiles */
html, body {
  overflow-x: hidden;
}