/* ===== GLOBAL & RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0F171C;
  color: #F2EDE4;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== COLORES PATAGONIA – ORO & ACERO ===== */
:root {
  --fondo-base: #0A0F14;
  --fondo-elevado: #141E26;
  --fondo-tarjeta: #1A2A30;
  --texto-principal: #F2EDE4;
  --texto-secundario: #C9D1D9;
  --oro: #E6B422;
  --oro-oscuro: #C99B1A;
  --arena: #D4A373;
  --borde: #2C424C;
  --sombra: 0 25px 40px -12px rgba(0, 0, 0, 0.5);
  --morado-ruta: #9B59B6;
}

/* ===== ENLACES ===== */
a {
  color: var(--texto-principal);
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: var(--oro);
}

/* ===== HEADER (consistente en todas las páginas) ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 180, 34, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo img {
  height: 58px;
  filter: brightness(1.05);
}
.nav a {
  margin-left: 42px;
  color: #E0DCD3;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.nav a:hover {
  color: var(--oro);
  border-bottom-color: var(--oro);
}

/* ===== HERO SLIDER (revolucionario) ===== */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 1;
}
.slide-bg.active {
  opacity: 1;
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 2;
}
.hero-content {
  position: absolute;
  bottom: 20%;
  left: 8%;
  z-index: 3;
  max-width: 650px;
}
.hero-content .travel-label {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF, var(--oro));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero-content button {
  background: var(--oro);
  border: none;
  padding: 14px 38px;
  font-weight: 600;
  color: #0A0F14;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}
.hero-content button:hover {
  background: var(--oro-oscuro);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.slide-counter {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 3;
  font-size: 1.2rem;
  font-weight: 500;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 40px;
  color: var(--oro);
}
.slide-counter span {
  color: white;
}
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 3;
  display: flex;
  gap: 15px;
}
.slider-controls button {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: 0.2s;
  color: white;
}
.slider-controls button:hover {
  background: var(--oro);
  color: #0A0F14;
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 100px 8%;
}
h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}
h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--oro);
  border-radius: 3px;
}
p {
  opacity: 0.85;
  line-height: 1.7;
  color: #DBDAD5;
}

/* ===== IMAGEN DE "15 AÑOS" CORREGIDA ===== */
.imagen-15anos {
  max-height: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  margin: 30px 0;
  box-shadow: var(--sombra);
}
.imagen-15anos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.imagen-15anos:hover img {
  transform: scale(1.03);
}

/* ===== TRAVESÍAS ALTERNADAS (nuevo diseño) ===== */
.travesias-alternadas {
  padding: 100px 8%;
  background: var(--fondo-base);
}
.travesia-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.travesia-row.slide-from-left {
  transform: translateX(-80px);
}
.travesia-row.slide-from-right {
  transform: translateX(80px);
}
.travesia-row.visible {
  transform: translateX(0);
  opacity: 1;
}
.travesia-imagen {
  flex: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.travesia-imagen img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}
.travesia-imagen:hover img {
  transform: scale(1.03);
}
.travesia-texto {
  flex: 1;
  background: var(--fondo-tarjeta);
  padding: 40px;
  border-radius: 28px;
  box-shadow: var(--sombra);
  border: 1px solid var(--borde);
}
.travesia-texto h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--oro);
}
.travesia-texto p {
  margin-bottom: 16px;
}
.travesia-texto strong {
  color: var(--oro);
}
@media (max-width: 992px) {
  .travesia-row {
    flex-direction: column;
    gap: 30px;
  }
  .travesia-row.slide-from-left,
  .travesia-row.slide-from-right {
    transform: translateX(0);
  }
  .travesia-imagen img {
    height: 280px;
  }
}

/* ===== BOTÓN WHATSAPP (para "Quiero recibir información") ===== */
.btn-whatsapp {
  display: inline-block;
  background: var(--oro);
  color: #0A0F14;
  padding: 14px 38px;
  margin-top: 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-whatsapp:hover {
  background: var(--oro-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== TARJETAS (para travesias.html, historias) ===== */
.cards-travesias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.card-travesia {
  background: var(--fondo-tarjeta);
  border-radius: 24px;
  overflow: hidden;
  transition: 0.35s;
  box-shadow: var(--sombra);
  border: 1px solid rgba(230,180,34,0.2);
}
.card-travesia:hover {
  transform: translateY(-12px);
  border-color: var(--oro);
}
.card-travesia img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s;
}
.card-travesia:hover img {
  transform: scale(1.03);
}
.card-info {
  padding: 28px;
}
.btn {
  display: inline-block;
  background: var(--oro);
  color: #0A0F14;
  padding: 12px 28px;
  margin-top: 20px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.2s;
}
.btn:hover {
  background: var(--oro-oscuro);
  transform: scale(1.02);
}

/* ===== INFO BOX (Cómo viajamos) ===== */
.info-container {
  display: flex;
  gap: 35px;
  margin-top: 55px;
  flex-wrap: wrap;
}
.info-box {
  background: var(--fondo-tarjeta);
  padding: 45px 35px;
  border-radius: 32px;
  flex: 1;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #314C55;
}
.info-box:hover {
  transform: translateY(-8px);
  border-color: var(--oro);
}
.info-box h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--oro);
}
.info-box i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--oro);
}

/* ===== HISTORIA 3D ===== */
.historia-container {
  display: flex;
  gap: 65px;
  align-items: center;
  flex-wrap: wrap;
  perspective: 1000px;
}
.historia-container img {
  width: 380px;
  border-radius: 32px;
  box-shadow: 0 20px 30px -10px black;
  border: 1px solid var(--oro);
  transform: rotateY(5deg);
  transition: 0.4s;
}
.historia-container img:hover {
  transform: rotateY(0deg) scale(1.02);
}
.frase {
  font-style: italic;
  border-left: 4px solid var(--oro);
  padding-left: 20px;
  margin-top: 20px;
}

/* ===== MAPA ===== */
#map {
  height: 500px;
  width: 100%;
  border-radius: 28px;
  margin-top: 45px;
  border: 2px solid var(--oro);
  z-index: 1;
}

/* ===== CONTADORES ===== */
.counter-grid {
  display: flex;
  justify-content: center;
  gap: 70px;
  text-align: center;
  flex-wrap: wrap;
  margin-top: 50px;
}
.counter-grid h3 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--oro);
}

/* ===== GALERÍA PAISAJES ===== */
.grid-galeria, .galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}
.grid-galeria img, .galeria-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  transition: 0.4s;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  border: 1px solid #35505C;
}
.grid-galeria img:hover, .galeria-grid img:hover {
  transform: scale(1.03) rotate(1deg);
  border-color: var(--oro);
}

/* ===== TIMELINE HISTORIA ===== */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
  perspective: 800px;
}
.timeline > div {
  background: var(--fondo-tarjeta);
  padding: 30px 20px;
  border-radius: 28px;
  text-align: center;
  flex: 1;
  border-bottom: 4px solid var(--oro);
  transition: 0.3s;
}
.timeline > div:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 30px rgba(0,0,0,0.4);
}
.timeline h3 {
  font-size: 2rem;
  color: var(--oro);
}

/* ===== CONTACTO ===== */
.contacto-moderno {
  max-width: 1200px;
  margin: 0 auto;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 60px;
}
.contacto-info, .contacto-formulario {
  background: var(--fondo-tarjeta);
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--sombra);
}
.contacto-info h3, .contacto-formulario h3 {
  font-size: 1.8rem;
  color: var(--oro);
  margin-bottom: 25px;
}
.contacto-info p {
  margin: 20px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contacto-info .icono {
  font-size: 1.4rem;
  width: 30px;
  color: var(--oro);
}
.campo input, .campo textarea {
  width: 100%;
  padding: 14px 18px;
  background: #0F171C;
  border: 1px solid #2C424C;
  border-radius: 28px;
  color: white;
  font-family: inherit;
}
.campo input:focus, .campo textarea:focus {
  border-color: var(--oro);
  outline: none;
  box-shadow: 0 0 0 2px rgba(230,180,34,0.3);
}
.btn-enviar {
  background: var(--oro);
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}
.mapa-mini {
  margin-top: 50px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #35505C;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 1000;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20b358;
}
@media (max-width: 768px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 28px; }
}

/* ===== ANIMACIONES REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.2,0.9,0.4,1.1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer-moderno {
  background: #060B10;
  border-top: 1px solid #1E2F36;
  padding: 60px 8% 30px;
  margin-top: 80px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-col h4 {
  color: var(--oro);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}
.footer-col h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--oro);
}
.footer-logo {
  height: 55px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}
.footer-social a {
  background: #1A252C;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--oro);
  font-size: 1.3rem;
  transition: 0.2s;
}
.footer-social a:hover {
  background: var(--oro);
  color: #0A0F14;
  transform: translateY(-3px);
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a:hover {
  color: var(--oro);
  padding-left: 5px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact i {
  width: 24px;
  color: var(--oro);
}
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #1E2F36;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .header { padding: 16px 30px; flex-wrap: wrap; }
  .nav { margin-top: 12px; }
  .hero-content h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  section { padding: 70px 5%; }
  .contacto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav a { margin-left: 20px; font-size: 0.85rem; }
  .counter-grid { gap: 30px; }
  .hero-content { left: 5%; bottom: 15%; }
}
/* ===== NUEVA GALERÍA DINÁMICA (MOSAICO + MODAL) ===== */
.galeria-hero {
  text-align: center;
  padding: 60px 8% 20px;
}
.galeria-hero h2 {
  font-size: 2.8rem;
}
.galeria-hero p {
  max-width: 700px;
  margin: 20px auto 0;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 40px 8%;
  background: var(--fondo-base);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  background: #1A2A30;
  aspect-ratio: 4 / 3; /* Proporción base, pero las imágenes pueden variar */
  box-shadow: var(--sombra);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}
.gallery-item img,
.gallery-item .video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.gallery-item:hover img,
.gallery-item:hover .video-thumb {
  transform: scale(1.05);
}
.video-thumb {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb i {
  font-size: 4rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: 0.2s;
}
.gallery-item:hover .video-thumb i {
  transform: scale(1.1);
  color: var(--oro);
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.overlay i {
  font-size: 2.5rem;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 12px;
  border-radius: 50%;
}

/* Modal Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: transparent;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
#modal-media {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-media img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 20px;
}
#modal-media iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 20px;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: 0.2s;
}
.close-modal:hover {
  color: var(--oro);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 5%;
  }
  .modal-content {
    width: 95%;
  }
  #modal-media iframe {
    height: 50vh;
  }
}
.video-thumb i {
  font-size: 4rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: 0.2s;
}
.gallery-item:hover .video-thumb i {
  transform: scale(1.1);
  color: var(--oro);
}