/* Variables */
:root {
  /* Colors */
  --primary-color: #0F172A;      /* Deep Blue */
  --primary-light: #1E293B;
  --gold: #D4AF37;               /* Metallic Gold */
  --gold-light: #E5C35D;
  --gold-dark: #b69229;
  --text-dark: #334155;
  --text-body: #64748B;
  --text-light: #F8FAFC;
  --bg-main: #FFFFFF;
  --bg-light: #F1F5F9;           
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(12px);
  
  /* Layout */
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* For fixed navbar */
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li { list-style: none; }

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }
@media (min-width: 768px) { .section-padding { padding: 8rem 0; } }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--text-light); }
.text-dark { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); color: var(--text-light); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.max-w-lg { max-width: 800px; }
.opacity-80 { opacity: 0.8; }
.pr-4 { padding-right: 2rem; }
@media (max-width: 900px) { .pr-4 { padding-right: 0; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.w-100 { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  padding: 0.8rem 0;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar.scrolled .logo-img {
  height: 36px;
}

.logo-text {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-text span.word-2 span { color: var(--gold); }

@media (max-width: 480px) {
  .logo-img { height: 36px; }
  .logo-text { 
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 0.95;
  }
  .logo { gap: 0.6rem; }
}

/* Navbar Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: var(--transition);
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  opacity: 1;
  color: var(--gold);
}

.lang-btn.active {
  opacity: 1;
  color: var(--gold-dark);
  position: relative;
}

.lang-selector .divider {
  width: 1px;
  height: 12px;
  background-color: var(--text-dark);
  opacity: 0.2;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav-link:hover { color: var(--gold-dark); }
.nav-link:hover::after { width: 100%; }

.phone-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.phone-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Mobile Navbar */
@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 68px; /* Approx navbar height */
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
  }
  
  .nav-link { font-size: 1.1rem; }

  .lang-selector {
    gap: 0.2rem;
  }
  
  .lang-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url('../img/panama_hero_osvaldo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Performance for mobile */
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
}

.hero-content h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

/* Services */
.section-subtitle {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.glass-card {
  background: var(--bg-main);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  margin-bottom: 1rem;
}

/* Destinations */
.destinations-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -1rem;
}

.destinations-content {
  flex: 1 1 400px;
  padding: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
}

.destinations-cards {
  flex: 1 1 500px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.destination-card {
  display: flex;
  background: var(--bg-main);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.destination-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(-5px);
}

.dest-image {
  width: 180px;
  background-size: cover;
  background-position: center;
}

.dest-info {
  padding: 1.5rem;
  flex: 1;
}

.dest-info h3 { margin-bottom: 0.5rem; }
.dest-info p { font-size: 0.95rem; }

@media (max-width: 600px) {
  .destination-card { flex-direction: column; }
  .dest-image { width: 100%; height: 200px; }
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.step-card {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border-radius: 16px;
  transition: var(--transition);
}

.step-card:hover { background: var(--bg-main); box-shadow: var(--shadow-md); }

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title { margin-bottom: 1rem; }

/* Why Us Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.why-item i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.why-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
}

.quote-icon {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.3;
}

.testi-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testi-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tours Only Banner */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
}

/* Contact / Lead Gen */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -1rem;
}

.contact-info {
  flex: 1 1 400px;
  padding: 1rem;
}

.contact-perks .perk {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.contact-form-container {
  flex: 1 1 500px;
  padding: 1rem;
}

.glass-form {
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s;
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-container .footer-logo {
  height: 50px;
  width: auto;
}

.footer-logo-container h2 {
  color: var(--text-light);
  font-size: 1.8rem;
}

.footer-logo-container span {
  color: var(--gold);
}
.footer-tagline { opacity: 0.7; margin-top: 0.5rem; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-light);
  margin-right: 0.5rem;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links ul li a { opacity: 0.7; }
.footer-links ul li a:hover { opacity: 1; color: var(--gold); }

.footer-contact p {
  opacity: 0.8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-contact i { color: var(--gold); font-size: 1.2rem; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Utility layout rows */
.row {
  display: flex;
  flex-wrap: wrap;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--gold);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg), 0 0 15px rgba(212, 175, 55, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: float-wa 3s ease-in-out infinite;
}

.floating-wa:hover {
  background-color: var(--gold-light);
  transform: scale(1.1);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.5);
}

@keyframes float-wa {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .floating-wa {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}
