/* ================================
   Animación (scroll reveal)
================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Estilos globales para h1 y h2 con línea naranja
================================ */
h1, h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: 3rem;
  text-align: center;
  width: 100%;
}
h2 {
  font-size: 2.5rem;
  text-align: center; /* Asegura que el h2 de la descripción esté centrado */
}
h1::after,
h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: #ff7f35;
}

/* Estilo para el nuevo subtítulo h3 en la sección de descripción */
.subtitle-extra {
  font-size: 1.8rem; /* Tamaño adecuado para un subtítulo */
  text-align: center;
  width: 100%;
  margin-bottom: 0.5rem; /* Ajuste para un subtítulo más pegado al título principal */
  color: #555;
  font-weight: 400; /* Más ligero que h2 */
}
.subtitle-extra::after {
  content: none; /* Asegura que no tenga la línea naranja */
}
/* Estilo para los párrafos de descripción que necesitan ser más generales */
.section-description-text {
    text-align: justify; /* Alineación justificada para los párrafos largos */
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}


/* ================================
   HERO (con parallax en desktop y mobile)
================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
}
/* Capa de transparencia para el hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Negro con 30% de opacidad */
    z-index: 1; /* Asegura que esté sobre la imagen de fondo pero debajo del contenido */
}
/* Asegura que el contenido del hero esté sobre la capa de transparencia */
.hero-caption {
    position: relative;
    z-index: 2;
}


/* Versión escritorio */
.hero-desktop {
  position: relative;
  width: 100%;
  height: 100vh; /* Para ocupar la pantalla completa */
  background-size: cover;
  background-attachment: fixed; /* Efecto parallax */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-desktop img {
  display: none;
}
.hero-desktop .hero-caption {
  color: #fff;
  z-index: 2;
  animation: fadeInHero 1s ease forwards;
  opacity: 0;
}
.hero-desktop .hero-caption h1 {
  font-size: 4rem !important;
}
@keyframes fadeInHero {
  0% { transform: translateY(-10%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
/* Versión móvil */
.hero-mobile {
  display: none; /* Ocultamos en desktop */
}
@media (max-width: 768px) {
  .hero-desktop {
    display: none; /* En móvil, ocultamos la versión desktop */
  }
  .hero-mobile {
    display: flex;
    height: 100vh;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-attachment: fixed;
  }
  .hero-mobile img {
    display: none;
  }
  .hero-mobile .hero-caption h1 {
    font-size: 2rem !important;
  }
  /* Estilo específico para el subtítulo del hero móvil */
  .hero-mobile .hero-mobile-subtitle {
    font-size: 1.2rem; /* Tamaño de fuente para el subtítulo */
    color: #fff; /* Color blanco */
    margin-top: 0.5rem; /* Espacio debajo del h1 */
    text-align: center; /* Centrado */
    white-space: nowrap; /* Evitar que el texto se rompa */
    overflow: hidden; /* Ocultar el desbordamiento si es muy largo */
    text-overflow: ellipsis; /* Mostrar puntos suspensivos si se corta */
    max-width: 90%; /* Ajuste de ancho para el subtítulo en móvil */
  }
  .hero-mobile .hero-mobile-subtitle::after { /* Eliminar la línea naranja */
      content: none;
  }

  .hero-mobile .hero-caption {
    color: #fff;
    z-index: 2;
    animation: fadeInHero 1s ease forwards;
    opacity: 0;
  }
  .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
  }
}

/* ================================
   SECCIÓN DESCRIPCIÓN
================================ */
.tour-description {
  background: #fff;
  color: #333;
  padding: 20px 10px;
  max-width: 1200px;
  margin: 10px auto;
  text-align: justify;
}
.tour-description h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}


/* ================================
   MAPA CON RECUADRO NEGRO / VIDEO
================================ */
.map-container {
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}
/* Eliminado h4 */
.google-earth-map {
  display: inline-block;
  border: 3px solid #000;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.google-earth-map:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
.google-earth-map .ge-image,
.google-earth-map video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.google-earth-map video {
    pointer-events: none;
}
/* Eliminado .ge-caption */


/* Estilos para el itinerario */
.itinerary-title { /* Clase para el título del itinerario */
    text-align: center;
    color: #ff7f35; /* Color naranja */
    font-size: 2.5rem; /* Tamaño de h2 */
    margin-bottom: 1.5rem;
    position: relative;
    display: block; /* Asegura que la línea se centre debajo */
}

/* Línea naranja debajo del título del itinerario */
.itinerary-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #ff7f35;
}
/* Ajuste de tamaño de fuente para el título del itinerario en móvil */
@media (max-width: 768px) {
    .itinerary-title {
        font-size: 1.8rem !important; /* Más pequeño para móvil */
        margin-bottom: 1rem; /* Reducir margen inferior */
    }
}
@media (max-width: 480px) { /* Añadida una media query para hacerlo más pequeño en móviles muy pequeños */
    .itinerary-title {
        font-size: 1.5rem !important; /* Aún más pequeño para móviles muy pequeños */
        margin-bottom: 0.8rem; /* Reducir aún más el margen inferior */
    }
}


.styled-itinerary {
    list-style: none;
    padding: 0;
    max-width: 800px; /* Ancho máximo para que no se extienda demasiado */
    margin: 20px auto; /* Centrar y dar margen */
    text-align: left; /* Alinear el texto a la izquierda */
}

.styled-itinerary li {
    padding: 12px 0; /* Más padding para cada elemento */
    border-bottom: 1px solid #eee; /* Línea divisoria */
    position: relative;
    padding-left: 35px; /* Espacio para el icono personalizado */
    font-size: 1.1rem; /* Tamaño de fuente ligeramente más grande */
    line-height: 1.5;
    color: #444; /* Color de texto suave */
}

.styled-itinerary li:last-child {
    border-bottom: none; /* Quitar la línea en el último elemento */
}

/* Icono personalizado para el itinerario */
.styled-itinerary li::before {
    content: "\2022"; /* Bullet point Unicode */
    font-size: 1.5rem; /* Tamaño del bullet */
    color: #ff7f35; /* Color naranja para el bullet */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1; /* Asegurar que el punto no afecte la altura de la línea */
}
/* Estilo para el texto en negrita dentro de los ítems del itinerario */
.styled-itinerary li strong {
    font-weight: 600; /* Hace la negrita un poco más fuerte */
    color: #222; /* Color más oscuro para los títulos de los puntos */
}


/* ================================
   SECCIÓN DE 4 IMÁGENES (Galería)
================================ */
.four-images-section {
  background: #fff;
  padding: 10px;
  max-width: 1200px;
  margin: 10px auto;
}
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.tab {
  background-color: #eee;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tab:hover {
  background-color: #ff7f35;
  color: #fff;
}
.tab.active {
  background-color: #ff7f35;
  color: #fff;
}
.images-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 768px) {
  .images-container {
    flex-direction: column;
  }
}
.left-column,
.right-column {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 768px) {
  .left-column, .right-column {
    width: 100%;
  }
}
.top-left, .bottom-left,
.top-right, .bottom-right {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Aspeect ratios para las galerías */
.top-left { aspect-ratio: 4/3; }
.bottom-left { aspect-ratio: 4/5; }
.top-right { aspect-ratio: 4/5; }
.bottom-right { aspect-ratio: 4/3; }

.top-left img, .top-left video,
.bottom-left img, .bottom-left video,
.top-right img, .top-right video,
.bottom-right img, .bottom-right video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}
.top-left img:hover, .top-left video:hover,
.bottom-left img:hover, .bottom-left video:hover,
.top-right img:hover, .top-right video:hover,
.bottom-right img:hover, .bottom-right video:hover {
  transform: scale(1.05);
}

/* ================================
   FONDO DEGRADADO
================================ */
.gradient-bg {
  background: linear-gradient(white, #ff7f35);
  padding: 10px 0;
}

/* ================================
   SECCIÓN DE INFORMACIÓN DEL TREK
================================ */
.info-section {
  padding: 20px 10px;
  max-width: 1200px;
  margin: 10px auto;
  text-align: center;
  background: transparent;
}
.info-section h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
  font-size: 2.5rem;
}
.info-section p.subtitle {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.info-circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
}
@media (max-width: 768px) {
  .info-circles {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
/* Orden para la visualización de los círculos */
#dificultadItem    { order: 1; }
#distanciaItem     { order: 2; }
#duracionItem      { order: 3; }
#desnivelItem      { order: 4; }
#diasHorariosItem  { order: 5; }
#climaItem         { order: 6; }
#equipamientoItem  { order: 7; }
#infoAdicionalItem { order: 8; }

.info-circle {
  background: #ff7f35;
  color: #fff;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 1rem;
  cursor: pointer;
}
.info-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}
.info-circle img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.info-circle h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.1rem;
  color: #fff;
  text-align: center;
}
.info-circle p {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
}
@media (max-width: 768px) {
  .info-circle {
    width: 150px;
    height: 150px;
    padding: 15px;
    font-size: 0.9rem;
  }
  .info-circle h3 {
    font-size: 1rem;
  }
  .info-circle p {
    font-size: 0.85rem;
  }
}
@media (max-width: 400px) {
  .info-circle {
    width: 130px;
    height: 130px;
    padding: 10px;
    font-size: 0.85rem;
  }
  .info-circle h3 {
    font-size: 0.95rem;
  }
  .info-circle p {
    font-size: 0.8rem;
  }
  .info-circles {
    gap: 10px;
  }
}

/* Panel desplegable */
.info-panel {
  width: 100%;
  margin-top: 5px;
  background: #333;
  color: #fff;
  border-radius: 6px;
  padding: 15px;
  display: none;
  text-align: left;
  font-size: 0.9rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.info-panel.open {
  display: block;
  max-height: 600px;
}
.info-panel p,
.info-panel li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ================================
   CARTEL "IMPORTANTE"
================================ */
.important-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0c0c0c;
  padding: 20px;
  border-radius: 8px;
  margin: 50px auto 0 auto;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #fff;
  font-size: 1rem;
  text-align: center;
}
.important-note img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

/* ================================
   Ajustes para el menú y navbar (que siempre tenga fondo blanco y línea)
================================ */
header.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.logo-img {
  height: 60px;
  margin-right: 15px;
}
@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
  .logo-text {
    font-size: 1.3rem;
  }
  .nav-links {
    padding: 60px 20px !important;
  }
}
@media (min-width: 1024px) {
  .logo-text {
    font-size: 1.8rem;
  }
}
@media (max-width: 350px) {
  .nav-container {
    padding: 0 10px !important;
  }
  .logo-img {
    height: 45px !important;
  }
  .logo-text {
    font-size: 1.1rem !important;
  }
  .nav-links {
    padding: 50px 20px !important;
  }
}

/* Estilo para el botón "Volver al Inicio" en footer, si se usa */
.footer-back-to-top {
  text-align: center;
  margin-top: 15px;
}
.footer-back-to-top a {
  display: inline-block;
  background-color: #ff7f35;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.footer-back-to-top a:hover {
  background-color: #e96b1f;
}

/* Panel de Tours (dropdown en navbar, si se reincorpora) */
#toursPanel {
  display: none;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999;
  padding: 10px 0;
  border-radius: 4px;
}
#toursPanel .tours-panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#toursPanel .tour-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 20px;
  width: 100%;
  text-align: center;
  transition: background 0.3s;
}
#toursPanel .tour-link:hover {
  background: #ff7f35;
  color: #fff;
}

/* Estilos específicos para Packrafting si es necesario */
#packrafting-options {
    text-align: center;
    padding: 20px 10px;
    background: #fff;
}
#packrafting-options h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}
h2.no-line::after {
    content: none !important;
}
.packrafting-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 20px;
}
.packrafting-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background: #ff7f35;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s;
    min-width: 150px;
}
.packrafting-buttons button:hover {
    background: #e06f2e;
}
@media (max-width: 768px) {
    .packrafting-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .packrafting-buttons button {
        width: 80%;
        max-width: 300px;
    }
}

/* ════════════════════════════════════════════════
   Ajuste definitivo para el pie de la imagen-mapa
   (.ge-caption: flecha y texto en línea, centrados,
   tamaño consistente en desktop y mobile)
═════════════════════════════════════════════════ */
.ge-caption{
    display:flex;              /* flecha + texto en la misma línea */
    justify-content:center;    /* centrado horizontal */
    align-items:center;        /* centrado vertical   */
    gap:6px;                   /* espacio entre flecha y texto     */
    font-size:1rem;            /* tamaño de la frase               */
    padding:4px 0;             /* algo de aire arriba y abajo      */
}

/* flecha */
.ge-caption img{
    width:18px;                /* ► tamaño uniforme */
    height:auto;
    flex-shrink:0;             /* evita que se deforme */
}

/* si querés reducir un poco más en móvil: */
@media (max-width:768px){
    .ge-caption{
        font-size:.95rem;
        gap:4px;
    }
    .ge-caption img{
        width:16px;
    }
}

/* ────────────────────────────────────────────
   Ocultar subtítulo del hero en MOBILE
   (sigue visible ≥ 769 px)                 */
@media (max-width:768px){
    .hero-mobile .hero-caption p{
        display:none !important;
    }
}

