/* ========== GLOBAL STYLES ========== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Montserrat', sans-serif;
  background:#0c0f12;
  color:#f5f5f5;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Playfair Display', serif;
  letter-spacing:1px;
}

section{
  padding:100px 8%;
  position:relative;
}

/* ========== NAVIGATION ========== */
header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 8%;
  z-index:1000;
  transition:0.4s ease;
}

header.scrolled{
  background:rgba(0,0,0,0.85);
  backdrop-filter:blur(10px);
}

.logo{
  font-size:22px;
  font-weight:600;
  letter-spacing:2px;
}

nav a{
  color:#f5f5f5;
  margin-left:25px;
  text-decoration:none;
  font-size:14px;
  text-transform:uppercase;
  position:relative;
}

nav a::after{
  content:'';
  width:0%;
  height:2px;
  background:#c7a14a;
  position:absolute;
  left:0;
  bottom:-5px;
  transition:0.3s;
}

nav a:hover::after{
  width:100%;
}

/* ========== HERO SECTION ========== */
.hero{
  height:100vh;
  background:url("images/image015.JPG") center/cover no-repeat; 
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
}

.hero::after{
  content:'';
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
  top:0;
  left:0;
}

.hero-content{
  position:relative;
  z-index:2;
  animation:fadeIn 2s ease forwards;
}

.hero h1{
  font-size:60px;
  margin-bottom:20px;
}

.hero p{
  font-size:18px;
  max-width:700px;
  margin:auto;
  opacity:0.9;
}

.btn{
  display:inline-block;
  margin-top:30px;
  padding:12px 30px;
  border:1px solid #c7a14a;
  color:#c7a14a;
  text-decoration:none;
  transition:0.3s;
}

.btn:hover{
  background:#c7a14a;
  color:#000;
}

/* ========== ABOUT SECTION ========== */
.about{
  background:#0B0C0C;
  text-align:center;
}

.about p{
  max-width:700px;
  margin:20px auto 0;
  opacity:0.8;
}

/* ========== ADVENTURES GRID ========== */
.adventures{
  background:#0B0C0C;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:30px;
  margin-top:50px;
}

.card{
  position:relative;
  overflow:hidden;
  border-radius:5px;
  cursor:pointer;
  transform:translateY(50px);
  opacity:0;
  transition:0.8s ease;
}

.card img{
  width:100%;
  height:400px;
  object-fit:cover;
  transition:0.6s;
}

.card:hover img{
  transform:scale(1.1);
}

.card-content{
  position:absolute;
  bottom:0;
  background:linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  width:100%;
  padding:20px;
}

.card h3{
  margin-bottom:5px;
}

/* ========== CONTACT SECTION ========== */
.contact{
  background:#11161a;
  text-align:center;
}

form{
  max-width:600px;
  margin:40px auto 0;
}

input, textarea{
  width:100%;
  padding:12px;
  margin:10px 0;
  border:none;
  background:#1a1f24;
  color:#fff;
}

button{
  padding:12px 30px;
  border:none;
  background:#c7a14a;
  cursor:pointer;
  font-weight:600;
}

button:hover{
  opacity:0.9;
}

/* ========== FOOTER ========== */
footer{
  text-align:center;
  padding:30px;
  background:#000;
  font-size:14px;
  opacity:0.6;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1; transform:translateY(0);}
}

.show{
  opacity:1 !important;
  transform:translateY(0) !important;
}

/* ========== RESPONSIVE ========== */
@media(max-width:768px){
  .hero h1{
    font-size:36px;
  }

  header{
    flex-direction:column;
  }

  nav{
    margin-top:10px;
  }
}
.hero{
  position:relative;
  overflow:hidden;
}

.hero-video{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  top:0;
  left:0;
  z-index:-2;
}

.parallax-overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.85));
  z-index:-1;
}

#formResponse{
  margin-top:20px;
  font-weight:600;
}

/* ===== ANCIENT MAP HEADER ===== */

/* ===== ANCIENT MAP HEADER WITH FADED TOP & BOTTOM ===== */

.ancient-map-section {
  position: relative;
  height: 90vh;
  background-image: url("images/map3.png"); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark cinematic overlay */
.ancient-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 25%,
    rgba(0,0,0,0.4) 75%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

/* Soft fade blend effect */
.ancient-map-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0c0c0c 0%,
    transparent 25%,
    transparent 85%,
    #0c0c0c 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Text content */
.map-overlay {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #f5e6c8;
  max-width: 800px;
  padding: 20px;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .ancient-map-section {
    background-attachment: scroll; /* Better mobile performance */
    height: 70vh;
  }

  .map-overlay h2 {
    font-size: 2rem;
  }
}
.ancient-map-section {
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.5s ease;
}


/* ===== GALLERY SECTION ===== */

.gallery-section {
  background: #0c0c0c;
  padding: 100px 8%;
  text-align: center;
  color: #f5e6c8;
}

.gallery-header h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.gallery-header p {
  opacity: 0.7;
  margin-bottom: 30px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e8c27a;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 60px;
  transition: 0.3s ease;
}

.instagram-link i {
  font-size: 1.5rem;
}

.instagram-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

/* Grid Layout */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.activities-hero{
background:url("images/image015.jpg") center/cover no-repeat;
height:60vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
}

.gallery-hero{
background:url("images/image015.jpg") center/cover no-repeat;
height:60vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
}


/* MAP CONTAINER */

.map-container{
position:relative;
max-width:1200px;
margin:auto;
}

.map-image{
width:100%;
display:block;
border-radius:10px;
}

/* MARKERS */

.map-marker{
position:absolute;
transform:translate(-50%,-50%);
}

.map-marker a{
background:#c7a14a;
color:#000;
padding:8px 14px;
font-size:12px;
text-decoration:none;
border-radius:20px;
font-weight:600;
transition:0.3s;
}

.map-marker a:hover{
background:#fff;
}

/* MARKER POSITIONS */

.patagonia{
bottom:15%;
left:48%;
}

.andes{
top:45%;
left:50%;
}

.atacama{
top:15%;
left:47%;
}

.route{
stroke:#c7a14a;
stroke-width:3;
fill:none;
stroke-dasharray:1000;
stroke-dashoffset:1000;
animation:drawRoute 4s ease forwards;
}

@keyframes drawRoute{
to{
stroke-dashoffset:0;
}
}


/* MAP SECTION */

.interactive-map{
padding:120px 8%;
background:#0c0c0c;
text-align:center;
}

.map-wrapper{
position:relative;
max-width:1200px;
margin:auto;
}

.map-image{
width:100%;
border-radius:10px;
}

/* MAP POINT */

.map-point{
position:absolute;
width:18px;
height:18px;
background:#F42300;
border-radius:50%;
cursor:pointer;
transform:translate(-50%,-50%);
box-shadow:0 0 12px rgba(199,161,74,0.8);
transition:0.3s;
}

.map-point:hover{
transform:translate(-50%,-50%) scale(1.3);
}

/* POPUP */

.map-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
display:none;
align-items:center;
justify-content:center;
z-index:1000;
}

.popup-content{
background:#111;
padding:25px;
border-radius:8px;
text-align:center;
max-width:300px;
position:relative;
}

.popup-content img{
width:100%;
border-radius:6px;
margin-bottom:15px;
}

.popup-content h3{
margin-bottom:15px;
}

.popup-button{
display:inline-block;
padding:10px 20px;
background:#F42300;
color:#000;
text-decoration:none;
font-weight:600;
border-radius:4px;
}

.popup-close{
position:absolute;
top:10px;
right:15px;
font-size:20px;
cursor:pointer;
}