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

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Body */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #f5f5f5;
}

/* Main container padding */
main {
  padding: 20px;
}

/* Hero Section */
.hero {
    /* Primero ponemos la imagen */
    background-image:
      linear-gradient(
        to right,
        rgba(0, 43, 91, 1)   0%,
        rgba(0, 43, 91, 0)  50%
      ),
      url('/imagenes/samarkand-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    position: relative;  /* asegúrate de que hero esté en contexto */
    z-index: 0;
  }
  
.hero-content {
  position: relative;
  padding: 0 20px;
  max-width: 400px;
}
.hero-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}
.hero-content a {
  background: #FFD700;
  color: #002B5B;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: bold;
}
.hero-wrapper {
    position: relative;
}
/* Destinos Populares */
/* Panel dorado base (idéntico a otros apartados) */
.panel-dorado {
    background: #F9F5EF;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 50px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }
  
  /* Título con líneas doradas */
  .destinos-populares > h2 {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    color: #002B5B;
    margin-bottom: 30px;
    position: relative;
  }
  .destinos-populares > h2::before,
  .destinos-populares > h2::after {
    content: '';
    display: inline-block;
    width: 50px; height: 2px;
    background: #D4AF37;
    vertical-align: middle;
    margin: 0 15px;
  }
  
  /* Grid de destinos */
  .destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  /* Tarjeta de destino */
  .destino-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .destino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .destino-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #E0D7C3;
  }
  .destino-info {
    padding: 16px;
    text-align: center;
  }
  .destino-info h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #002B5B;
    font-family: 'Noto Serif JP', serif;
  }
  .destino-info p {
    margin: 0;
    font-size: 1rem;
    color: #4A4A4A;
    line-height: 1.5;
    font-family: 'Segoe UI', sans-serif;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .destinos-populares {
      padding: 30px 10px;
    }
    .destinos-populares > h2 {
      font-size: 1.8rem;
    }
    .destinos-grid {
      grid-template-columns: 1fr;
    }
  }  

/* Slider Rutas */
.rutas-slider {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #fefaf2, #f4eee3);
    font-family: 'Segoe UI', sans-serif;
  }
  .rutas-slider h2 {
    font-size: 2.8em;
    font-weight: 600;
    color: #0d3b66;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
  }
  .slider-container {
    position: relative;
    overflow: hidden;
  }
  .slider-track {
    display: flex;
    gap: 30px;
    padding: 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
  }
  .card {
    flex: 0 0 300px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    opacity: 0.5;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .card.active {
    opacity: 1;
    transform: scale(1.1);
  }
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .card p {
    padding: 16px;
    font-size: 1.05em;
    font-weight: 500;
    color: #0d3b66;
    line-height: 1.4;
  }
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f6e27f;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 1.8em;
    color: #0d3b66;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
    z-index: 2;
  }
  .arrow.left { left: 10px; }
  .arrow.right { right: 10px; }
  .arrow:hover { background: #ffe066; }
  
  /* Oculta scrollbar en navegadores Webkit */
  .slider-track::-webkit-scrollbar { display: none; }
  
  /* Responsive */
  @media (max-width: 768px) {
    .rutas-slider { padding: 40px 10px; }
    .rutas-slider h2 { font-size: 2.2em; }
    .card { flex: 0 0 240px; }
    .arrow { font-size: 1.4em; padding: 8px 10px; }
  }
  

/********************************** Search Form **************************************************/
.search-form {
  position: absolute;   /* sácala del flujo normal */
  top: 300px;           /* ajusta a tu gusto: cuánto sube sobre el hero */
  left: 50%;            /* la centramos */
  transform: translateX(-50%); 
  width: calc(100% - 40px); /* o un ancho fijo, ej. 800px */
  max-width: 800px;
  background: #F9F5EF;
  padding: 30px;
  border-radius: 8px;
  z-index: 1;     
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 60px;
}

.search-form form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.search-form label {
  margin-bottom: 4px;
  font-weight: bold;
}
.search-form .field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.search-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
.btn-search {
  background: #002B5B;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/*********************************** Search Intro **********************************************/
.search-intro {
    font-family: 'Noto Serif JP', serif;
    background: #F9F5EF;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 40px 60px;         /* un poco más ancho a los lados */
    width: 90%;                 /* ocupa gran parte del viewport */
    max-width: 1200px;          /* pero no pasa de 1200px */
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    margin-top: 100px;
  }
  
  /* Fondo ornamental */
  .search-intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('imagenes/rutadeseda.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: 0;
  }
  
  /* Asegura que el texto está por encima */
  .search-intro > * {
    position: relative;
    z-index: 1;
  }
  
  .search-intro h1 {
    margin: 0 0 15px;
    font-size: 2rem;
    line-height: 1.2;
    color: #002B5B;
    font-weight: 700;
  }
  
  .search-intro p {
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
    color: #4A4A4A;
    max-width: 800px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .search-intro {
      padding: 30px 20px;
      width: 95%;
    }
    .search-intro h1 {
      font-size: 1.75rem;
    }
    .search-intro p {
      font-size: 0.95rem;
    }
  }  

/* ========= Ofertas más vistas (daily-deals) ========= */
.daily-deals {
  padding: 2rem 1rem;
  background: #f9f9f9;
}

.daily-deals h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #002B5B;
  text-align: center;
}

/* Contenedor en rejilla para 3 columnas */
.daily-deals .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* Tarjeta individual de oferta */
.deal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.deal-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.3rem;
  color: #002B5B;
}

.deal-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  color: #444;
}

.deal-card .price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #f3c500;
  margin-bottom: 1rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.featured-card:hover {
  transform: translateY(-4px);
}

.featured-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.featured-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
  color: #002B5B;
}

.featured-card .city {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.featured-card .price {
  font-weight: bold;
  color: #f3c500;
  margin-bottom: 1rem;
}

  /* === BÚSQUEDAS POPULARES (TABS) ================================================================ */
  .popular-searches {
    border: 2px solid #D4AF37;
    background: #fefefe;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
  }
  
  .popular-searches h2 {
    font-size: 1.8rem;
    color: #002B5B;
    margin-bottom: 1.2rem;
    text-align: center;
  }
  
  
  .tabs {
    display: flex;
    justify-content: center; /* <- Esto centra los botones */
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }  
  
  .tab-btn {
    padding: 0.6rem 1.4rem;
    border: none;
    background: #e0e0e0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .tab-btn.active {
    background: #f4a300;
    color: #002B5B;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .deal-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  .deal-card:hover {
    transform: translateY(-4px);
  }
  
  .deal-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .deal-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #002B5B;
  }
  
  .deal-card p {
    margin: 0.2rem 0;
    color: #333;
  }
  
  .deal-card .price {
    font-weight: bold;
    color: #f4a300;
    margin-bottom: 1rem;
  }  
  
  /* === FEATURES / BENEFICIOS ====================================================================== */
.features {
    /* hereda .panel-dorado: fondo crema, borde dorado, padding, sombra */
    padding: 40px 20px;   /* refresca si quieres un poco menos vertical */
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: start;
  }
  
  .feature-item {
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .feature-item img {
    width: 164px;
    height: 164px;
    margin-bottom: 16px;
  }
  
  .feature-item h4 {
    margin: 0 0 8px;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: #002B5B;
  }
  
  .feature-item p {
    margin: 0;
    font-size: 1rem;
    color: #4A4A4A;
    line-height: 1.5;
  }
  
  /* Responsive ajustes */
  @media (max-width: 768px) {
    .features {
      padding: 30px 10px;
    }
    .feature-item img {
      width: 48px;
      height: 48px;
      margin-bottom: 12px;
    }
    .feature-item h4 {
      font-size: 1.1rem;
    }
    .feature-item p {
      font-size: 0.95rem;
    }
  }
  
  