@charset "utf-8";
/* CSS Document */

/* Layout general */
.destinos-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
}

/* Sidebar con sticky (no rompe footer) */
.sidebar {
  position: sticky;
  top: 120px; /* espacio debajo del header */
  align-self: flex-start;
  width: 200px;
  background-color: #f8f8f8;
  padding: 15px 10px;
  border-right: 2px solid #ddd;
  border-radius: 6px;
}

/* Enlaces del sidebar */
.sidebar a {
  display: block;
  margin: 12px 0;
  font-weight: 500;
  text-decoration: none;
  color: #9a8f7f;
  transition: color 0.3s, font-weight 0.3s, background 0.3s;
  padding: 8px 12px;
  border-radius: 4px;
}

.sidebar a:hover,
.sidebar a.active {
  color: #fff;
  font-weight: 600;
  background-color: #7a6351;
}


.region-title {
	color:#6f5745;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 15px;
}

.region-description {
  color: #5a4b3b;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Tarjetas */
.region-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.region-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.region-card img {
  width: 100%;
  display: block;
}

.region-card .info {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

.region-card .info h5 {
  margin: 0;
}

.region-card .info p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}










/* Línea verde debajo del título */
.underline {
  display: inline-block;
  width: 30px;
  height: 3px;
  background-color: #a8cf45;
  margin-top: 3px;
  border-radius: 2px;
}

/* Responsivo */
@media (max-width: 992px) {
  .destinos-layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative; /* vuelve normal en móviles */
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #ddd;
    display: flex;
    justify-content: space-around;
  }

  #destinos .content {
    margin-left: 0 !important;
    padding: 20px 10px;
  }
}



/* Contenedor destinos con posición relativa */
#destinos {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
}

/* ===== Sidebar ===== */
#destinos .sidebar {
  position: fixed;
  top: 0; /* lo controlará el JS dinámicamente */
  left: 20px;
  width: 200px;
  padding: 15px 10px;
  background: #f8f8f8;
  border-right: 2px solid #ddd;
  z-index: 1200;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  height: auto;
  transition: top .15s ease, left .15s ease, position .15s ease;
  display: none; /* oculto por defecto hasta llegar a la sección */
}

/* Links del sidebar */
#destinos .sidebar a {
  display: block;
  margin: 12px 0;
  font-weight: 500;
  text-decoration: none;
  color: #9a8f7f;
  padding: 8px 12px;
  border-radius: 4px;
}
#destinos .sidebar a:hover,
#destinos .sidebar a.active {
  color: #fff;
  background: #7a6351;
}

/* ===== Contenido ===== */
#destinos .content {
  flex: 1;
  padding: 20px;
  transition: margin-left .15s ease;
}

/* ===== Mobile ===== */
@media (max-width: 992px) {
  #destinos {
    flex-direction: column;
  }

  #destinos .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    box-shadow: none;
    border-right: none;
    border-bottom: 2px solid #ddd;
    display: flex !important;
    justify-content: space-around;
    padding: 10px 0;
  }

  #destinos .content {
    margin-left: 0 !important;
    padding: 10px;
  }
}
.link-TitDestinos {
  font-size: 24px;
  position: relative;
  display: inline-block;
  color: #ffffff !important; /* fuerza el blanco */
  font-weight: bold;
  text-decoration: none !important;
  padding-bottom: 8px;
}

.link-TitDestinos::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 6px;
  background-color: #8cc83f;
  transition: width 0.3s ease;
}

.link-TitDestinos:hover,
.link-TitDestinos:focus,
.link-TitDestinos:active {
  color: #ffffff !important; /* blanco siempre */
}

.link-TitDestinos:hover::after,
.link-TitDestinos:focus::after,
.link-TitDestinos:active::after {
  width: 100%;
}

.link-TitDestinos:visited {
  color: #ffffff !important; /* blanco siempre después de visitarlo */
}

/* ===== Menú lateral fijo ===== */
.menu-lateral {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  padding-left: 1.2rem;
  margin-left: 0.5rem;
	border-left: 3px solid #fee6af;}

.menu-lateral ul li {
  margin-bottom: 1rem;
}

.menu-lateral ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #493f37;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.menu-lateral ul li a:hover,
.menu-lateral ul li a.activo {
  color: #493f37;
  background-color: #eef7e2;
  padding: 5px 10px;
 
	
  
}

/* ===== Scroll suave ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Espaciado del contenido ===== */
.region {
  min-height: 50vh; /* Cada sección ocupa el alto completo de la pantalla */
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .menu-lateral {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 1rem;
  }

  .menu-lateral ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .menu-lateral ul li {
    margin-bottom: 0;
  }
}

/* ===== Enlaces de los destinos dentro de las tarjetas ===== */
.region-card .info .link-TitDestinos {
  font-size: 24px;
  position: relative;
  display: inline-block;
  color: #ffffff !important;        /* blanco siempre */
  font-weight: bold;
  text-decoration: none !important; /* sin subrayado */
  padding-bottom: 8px;
}

/* Línea verde debajo del texto */
.region-card .info .link-TitDestinos::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 6px;
  background-color: #8cc83f;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Hover, focus y active: mantiene color blanco y anima la línea */
.region-card .info .link-TitDestinos:hover,
.region-card .info .link-TitDestinos:focus,
.region-card .info .link-TitDestinos:active {
  color: #ffffff !important;
}

.region-card .info .link-TitDestinos:hover::after,
.region-card .info .link-TitDestinos:focus::after,
.region-card .info .link-TitDestinos:active::after {
  width: 100%;
}

/* Visited: sigue blanco */
.region-card .info .link-TitDestinos:visited {
  color: #ffffff !important;
}
