/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* === HEADER CON LOGO DE IMAGEN Y TEXTO === */
.topbar {
  background: #edf7ed; /* Verde oscuro original */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  position: relative;
  z-index: 1100;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 100px; /* Altura ajustable según tu imagen */
  width: auto;
  margin-bottom: 5px; /* Espacio entre imagen y texto */
}

.logo-text {
  font-family: 'Dancing Script', 'Pristina', cursive;
  font-size: 1.8rem;
  color: rgb(3, 99, 19);
  letter-spacing: 3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

/* Resto de estilos se mantienen igual */
.top-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.whatsapp-btn {
  background: #06441d;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #08552a;
  transform: translateY(-1px);
}

/* Media Queries para responsividad */
@media (max-width: 992px) {
  .logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
  
  .logo-img {
    height: 100px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .top-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 80px;
  }
  
  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  
  .whatsapp-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* === SELECTOR DE IDIOMA MEJORADO === */
.language-selector {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-family: sans-serif;
  width: 160px;
  z-index: 1500;
}

.selected-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #f3f3f3;
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #333;
}

.selected-language img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.language-flag {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgb(15, 59, 6);
  border: 1px solid #0f0204;
  border-radius: 4px;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  z-index: 1500;
  box-shadow: 0 4px 6px rgba(110, 80, 80, 0.1);
}

.language-options.show {
  display: block;
}

.language-options li {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.language-options li:hover {
  background-color: #134407;
}

.language-options img {
  width: 16px;
  height: 16px;
}

/* === BARRA DE NAVEGACIÓN HORIZONTAL === */
.navbar-horizontal {
  background: linear-gradient(to right, #004d00, #003300);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 15px 10px;
  display: block;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(11, 105, 27, 0.7);
}

.nav-link.active {
  background-color: #298000;
  font-weight: 600;
}

.nav-link i {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Efecto de subrayado al pasar el mouse */
.nav-item:not(.active) .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: #ffcc00;
  animation: underline 0.3s ease-out;
}

@keyframes underline {
  from { width: 0; left: 50%; }
  to { width: 60%; left: 20%; }
}

/* Responsive para tablets */
@media (max-width: 992px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 12px 5px;
  }
  
  .nav-link i {
    display: block;
    margin: 0 auto 5px;
    font-size: 1.2rem;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .navbar-horizontal {
    position: relative;
  }
  
  .nav-list {
    flex-wrap: wrap;
  }
  
  .nav-item {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-link {
    padding: 10px 5px;
    font-size: 0.85rem;
  }
  
  .nav-link i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-item {
    flex: 1 1 100%;
  }
}

/* === CARRUSEL COMPACTO HD === */
.carrusel-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Más compacto que la versión anterior */
    height: 350px; /* Altura reducida */
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carrusel {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 51, 0, 0.7);
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-size: 1rem;
    backdrop-filter: blur(2px); /* Mejora la legibilidad */
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 51, 0, 0.7);
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(9, 83, 9, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Media Queries para dispositivos pequeños */
@media (max-width: 600px) {
    .carrusel-container {
        height: 250px;
        max-width: 95%;
    }
    
    .caption {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.prev:hover, .next:hover {
    background-color: rgba(130, 224, 22, 0.8); /* Rojo vino para el hover */
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicador {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicador.active {
    background-color: #298000; /* Verde para el indicador activo */
    transform: scale(1.2);
}

/* === CONTENIDO PRINCIPAL === */
.main {
  padding: 1rem;
}

h1 {
  text-align: center;
  margin: 2rem 0;
  color: #333;
  font-size: 2.2rem;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-bar p {
  font-weight: bold;
  color: #666;
  margin: 0;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 200px;
}

.search-bar input:focus {
  outline: none;
  border-color: #298000;
  box-shadow: 0 0 0 2px rgba(41, 128, 0, 0.2);
}

.search-bar select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.search-bar select:focus {
  outline: none;
  border-color: #298000;
}

/* === FILTROS === */
.contenido {
  display: flex;
  gap: 2rem;
}

.filtros {
  width: 220px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filtros h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.3rem;
  border-bottom: 2px solid #298000;
  padding-bottom: 0.5rem;
}

.filtros label {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.filtros label:hover {
  color: #298000;
}

.filtros input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
  cursor: pointer;
}

.filtros button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #800000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filtros button:hover {
  background: #a00000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(128, 0, 0, 0.3);
}

/* === TARJETAS DE TOURS === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  flex: 1;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card .info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  flex-grow: 1;
}

.card .price {
  margin-top: 1rem;
  font-weight: bold;
  color: #004080;
  font-size: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* Responsive para contenido */
@media (max-width: 1024px) {
  .contenido {
    flex-direction: column;
  }
  
  .filtros {
    width: 100%;
    position: static;
    margin-bottom: 2rem;
  }
  
  .filtros label {
    display: inline-flex;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 0.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar input {
    min-width: auto;
    margin-bottom: 0.5rem;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card {
    max-width: 100%;
  }
}