/* ===========================================
   ESTILOS GLOBALES
=========================================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f9fafb;
  scroll-behavior: smooth;
}

/* ===========================================
   HEADER
=========================================== */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO Y MARCA ===== */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #2E3C46;
  line-height: 1;
}

.brand-name {
  line-height: 1.2;
}

/* Banderas en header */
.flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.flag-icon {
  width: 28px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arrow {
  font-size: 1.4rem;
  color: #2E3C46;
  font-weight: 500;
  margin: 0 4px;
}

/* ===== MENÚ DESKTOP ===== */
.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: #2E3C46;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #004AAD;
}

.cta {
  background: #E63946;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta:hover {
  background: #c92f3b;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2E3C46;
  transition: transform 0.3s ease;
  z-index: 10000;
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 20px;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 999;
}

.mobile-menu a {
  display: block;
  margin: 12px 0;
  color: #2E3C46;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #004AAD;
}

.mobile-menu .cta {
  margin-top: 8px;
}

/* ===== EFECTO DE DESPLEGADO ===== */
.mobile-menu.show {
  display: flex;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .logo {
    height: 80px;
  }

  .brand {
    font-size: 1.5rem;
  }

  .flags {
    font-size: 1.3rem;
  }
}

/* ===========================================
   HERO SECTION
=========================================== */
.hero-bg {
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.9), rgba(230, 57, 70, 0.8)),
              url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* Evita que el hero quedgit ade oculto por el header fijo */
#hero {
  padding-top: 30px; /* 🔹 Ajusta según la altura real del header */
}

@media (max-width: 768px) {
  #hero {
    padding-top: 30px; /* 🔹 Menos espacio en móviles */
  }
}


.hero-bg h1, 
.hero-bg h2, 
.hero-bg p {
  color: #fff;
}

/* ✈️ Animación del avión */
@keyframes flyPlane {
  0% { transform: translateX(-200px) translateY(0); }
  50% { transform: translateX(50vw) translateY(-25px); }
  100% { transform: translateX(110vw) translateY(0); }
}
.animate-plane {
  animation: flyPlane 25s linear infinite;
}

/* 🚩 Estilos de banderas (en hero) */
.inline-flag {
  width: 42px;
  height: auto;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.inline-flag:hover {
  transform: scale(1.1);
}

/* 💨 Efecto de ondeo opcional */
@keyframes wave {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-2px); }
}
.flag-wave {
  animation: wave 1.8s ease-in-out infinite;
}

/* 💻 Responsivo */
@media (max-width: 768px) {
  .animate-plane img { width: 150px; }
  .inline-flag { width: 28px; }
}

/* ===========================================
   UTILS / AJUSTES EXTRA
=========================================== */
body.menu-open {
  overflow: hidden;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
