body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  padding-top: 80px !important;
}

/*hacemos que el navbar sea fijo*/
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #4fb8eb;
}

/* Header */
.header {
  position: fixed;
  /* Hace que el header sea fijo */
  top: 0;
  /* Fijado en la parte superior */
  left: 0;
  width: 100%;
  /* Abarca todo el ancho */
  background-color: #fff;
  /* Color del header */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  z-index: 1000;
  /* Para asegurarse de que esté encima de otros elementos */
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.5);
  /* Sombra opcional para darle profundidad */
  border-bottom: 2px solid #4fb8eb;
}

.header .logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.header .logo img {
  height: 40px;
  margin-right: 10px;
}

.header .menu {
  display: flex;
  gap: 20px;
}

.header .menu a {
  color: #3d82ec;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  /* Hace que los íconos estén encima del texto */
  align-items: center;
  font-size: 12px;
  /* Tamaño reducido para los labels */
}

.header .menu a i {
  font-size: 24px;
  /* Tamaño del ícono */
  margin-bottom: 5px;
  /* Espaciado entre el ícono y el texto */
}

/* Buscador */
.search-box {
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-box h2 {
  margin: 0 0 15px 0;
  color: #3d82ec;
  font-size: 20px;
  text-align: center;
}

.search-box .input-group {
  display: flex;
  flex-wrap: wrap;
  /* Permite que los elementos se reorganicen en mobile */
  gap: 10px;
}

.input-group .input-with-icon {
  position: relative;
  flex: 1;
}

.input-group .input-with-icon input {
  width: 100%;
  padding: 10px 35px 10px 10px;
  /* Espacio para el ícono */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.input-group .input-with-icon i {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #3d82ec;
  font-size: 20px;
}

.search-box button {
  padding: 10px 15px;
  background-color: #3d82ec;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  flex: 1;
}

.search-box button:hover {
  background-color: #4fb8eb;
}

/* Ajustes del slider */

#slider img {
  object-fit: cover;
  height: 50vh;
}

@media (max-width: 768px) {
  #slider img {
    height: 30vh;
    /* Ajusta la altura en pantallas pequeñas */
  }
}

.info-card {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
}

.info-card .icon {
  font-size: 40px;
  color: #3d82ec;
  margin-right: 15px;
}

.info-card .content h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.info-card .content p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.info-card .content a {
  text-decoration: none;
  color: #d6226d;
  font-weight: bold;
  font-size: 14px;
}

.info-card img {
  max-width: 120px;
  margin-left: auto;
}

.offer-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.offer-card:hover {
  transform: scale(1.03);
}

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

.offer-card-body {
  padding: 15px;
}

.offer-title {
  color: #3d82ec;
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.offer-location {
  font-size: 14px;
  color: #555;
  margin: 5px 0;
}

.offer-price {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.offer-price small {
  font-size: 12px;
  color: #999;
}

.offer-city {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

.offer-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #3d82ec;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: #f8f9fa;
  padding: 10px 0;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav a {
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  color: #3d82ec;
}

.mobile-nav a i {
  font-size: 24px;
}

.offer-link {
  text-decoration: none;
  color: inherit;
  /* Mantener el color del texto heredado */
}

/* Asegurar que el texto no cambie de color en hover */
.offer-link:hover .offer-title,
.offer-link:hover .offer-location,
.offer-link:hover .offer-price {
  color: inherit;
}

footer {
  margin-top: 50px;
  background-color: #3d82ec;
  /* Color principal */
  color: white;
  padding: 20px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .search-box h2 {
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
  }

  .input-group {
    flex-direction: column;
    /* Apila los inputs y botón */
  }

  .input-group .input-with-icon {
    flex: 1;
  }

  .search-box button {
    margin-top: 10px;
    /* Botón separado debajo */
  }
}
