@import url("httpshttps://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700;800&display=swap");

/* Fuente para Títulos: 'Montserrat', sans-serif
Fuente para Cuerpo: 'Lato', sans-serif
*/

/* --- Configuraciones Globales --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  color: #333;
  /* Configuración para el footer pegajoso (sticky footer) */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-shrink: 0;
}

/* --- Estilos de la Barra de Navegación --- */
.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

/* Estilo para el enlace activo en la barra de navegación */
.navbar .nav-link.active,
.navbar .nav-item.active .nav-link {
  font-weight: 700;
  color: #ffffff !important; /* Blanco brillante para el enlace activo */
}

/* --- Estilo del Hero (Sección Principal) --- */
.hero-section {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://placehold.co/1920x1080/003366/FFFFFF?text=Machu+Picchu+Hero");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto Parallax simple */
}

.hero-section .display-3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section .lead {
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Títulos de Sección (H2) --- */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: #0d6efd; /* Color primario de Bootstrap */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Estilos de Tarjetas (Cards) --- */
.card-hover {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #34495e;
}

/* --- Estilos para Marcadores de Anuncios ADSTERRA --- */
.ad-placeholder {
  background-color: #f4f4f4;
  border: 2px dashed #ccc;
  color: #999;
  padding: 20px;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
}

.ad-728-90 {
  min-height: 90px;
  width: 100%;
  max-width: 728px; /* Tamaño común de leaderboard */
  margin-left: auto;
  margin-right: auto;
}

.ad-300-250 {
  min-height: 250px;
  width: 100%;
  max-width: 300px; /* Tamaño MPU */
}

/* --- Estilos del Footer --- */
.footer {
  background-color: #212529;
  color: #ffffff; /* Texto blanco por defecto en el footer */
}

/* Línea horizontal personalizada para el footer */
.footer-hr {
  margin-bottom: 1.5rem;
  margin-top: 0;
  width: 60px;
  background-color: #0d6efd;
  height: 2px;
  border: none;
  /* Centrado en modo móvil (text-center) y alineado a la izquierda en escritorio (text-md-start) */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .footer-hr {
    margin-left: 0;
  }
}

/* Estilo para enlaces del footer */
.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: #0d6efd !important; /* Resaltar enlaces al pasar el mouse */
  text-decoration: underline !important;
}

/* Copyright del footer */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 250, 0.1);
}

#searchResultsContainer {
  display: none; /* Oculto por defecto */
  position: absolute;
  top: 100%; /* Justo debajo del input */
  left: 0;
  right: 0;
  z-index: 1050; /* Por encima de otros elementos */
  margin-top: 0.25rem;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.175);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Estilo de los items de resultado (Bootstrap) */
#searchResultsContainer .list-group-item {
  border-radius: 0; /* Bordes rectos dentro del contenedor */
  border-left: 0;
  border-right: 0;
}
#searchResultsContainer .list-group-item:first-child {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  border-top: 0;
}
#searchResultsContainer .list-group-item:last-child {
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  border-bottom: 0;
}
