@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #2D4059;
  --color-secondary: #EA8217;
  --color-white: #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-border: #E0E0E0;
  --color-text: #2b2b2b;
  --font-titles: 'Raleway', sans-serif;
  --font-text: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-text);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  margin: 0;
  padding: 0;

}

/* HEADER */
header {
  background-color: var(--color-white);
  margin: 0 30px 0 30px;
  border-radius: 25px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.navbar-logo {
  width: 120px;
}

.navbar-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-titles);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-titles);
  font-weight: 600;
  cursor: pointer;
}

button.principal {
  background-color: var(--color-primary);
  color: var(--color-white);
}

button.secundario {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
}

/* ===============================
   BIENVENIDA USUARIO - HEADER
   =============================== */

.Bienvenido {
  background-color: #2D4059;
  /* azul Aventura Go */
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Ajuste para que no se pegue al botón salir */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bienvenido strong {
  font-weight: 700;
}

/* CONTENIDO PRINCIPAL */
.hospedaje-container {
  padding-top: 120px;
  padding-bottom: 60px;
}

.titulo-seccion {
  font-family: var(--font-titles);
  font-weight: 700;
  color: var(--color-primary);
}

.contenedor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}



/* INICIA no modificar, estilos del dropdown--------------------------------------------- */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #2D4059;
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.profile-btn i {
  font-size: 16px;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 46px;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 8px 0;
  display: none;
  z-index: 999;
}

.profile-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #2B2B2B;
  text-decoration: none;
}

.profile-menu li a:hover {
  background-color: #F8F9FA;
}

.profile-menu .divider {
  height: 1px;
  background-color: #E0E0E0;
  margin: 6px 0;
}

.profile-menu .logout {
  color: #EA8217;
  font-weight: 600;
}

/* termina no modificar, estilos del dropdown--------------------------------------------- */

/* TARJETAS */
.card-hospedaje {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-hospedaje:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.card-body-custom {
  padding: 16px;
}

.card-titulo {
  font-family: var(--font-titles);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card-resena {
  font-size: 14px;
  color: #777;
  margin-bottom: 6px;
}

.card-precio {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 16px;
}

/* Estilos para tarjeta en búsqueda, más pequeña y compacta */
.busqueda-tarjeta {
  max-width: 600px !important;
  /* compacta y centrada */
  margin: 0 auto !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.busqueda-tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.busqueda-tarjeta img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 16px 16px 0 0 !important;
}

.busqueda-tarjeta .card-body {
  padding: 14px 18px !important;
}

.busqueda-tarjeta .card-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin-bottom: 6px !important;
}

.busqueda-tarjeta .card-text {
  font-size: 13px !important;
  color: #777 !important;
  margin-bottom: 6px !important;
}

.busqueda-tarjeta .precio {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--color-secondary) !important;
  margin-top: 6px !important;
}

/* Responsive para búsqueda */
@media (max-width: 768px) {
  .busqueda-tarjeta {
    max-width: 90% !important;
  }

  .busqueda-tarjeta img {
    height: 140px !important;
  }

  .busqueda-tarjeta .card-title {
    font-size: 16px !important;
  }

  .busqueda-tarjeta .precio {
    font-size: 14px !important;
  }
}


/* ===== MODAL PROFESIONAL ===== */
.modal-content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: var(--font-text);
  background-color: var(--color-white);
  animation: modalFade 0.3s ease-out;
}

.modal-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-bottom: none;
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 18px;
  padding: 16px 20px;
}

.modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* Cuerpo del modal */
.modal-body {
  text-align: center;
  padding: 25px 30px;
  color: var(--color-text);
  background-color: #fafafa;
}

/* Imagen centrada y estilizada */
.modal-body img {
  display: block;
  margin: 0 auto 20px auto;
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Texto descriptivo */
.modal-body p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Lista de detalles */
.modal-body ul {
  text-align: left;
  display: inline-block;
  margin: 10px auto;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #444;
}

.modal-body ul li::before {
  content: "• ";
  color: var(--color-secondary);
  font-weight: bold;
}

/* Pie del modal */
.modal-footer {
  border-top: 1px solid var(--color-border);
  padding: 15px 25px;
  background-color: var(--color-white);
  justify-content: flex-end;
}

.modal-footer .btn-info {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-footer .btn-info:hover {
  background-color: #cf6c12;
  transform: scale(1.05);
}

/* Animación de entrada */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


* E S T I L O S F O O T E R-_________________________________________________________________________________________ */

/* footer superior */
.footer-top {
  width: 100%;
  align-content: center;
  background-color: #2D4059;
  color: white;
  padding: 5px 0;
}


.footer-top .row .col-md-12 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 20px;
  background-color: #2D4059;
}

.footer-top h2 {
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-left: 315px;
}

@keyframes palpitar {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.palpitando {
  animation: palpitar 1.5s infinite ease-in-out;
}

.footer-top a {
  background-color: #EA8217;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Raleway', sans-serif;
  border-radius: 20px;
  padding: 10px 20px;
  transition: transform 0.3s ease;
  margin-right: 375px;
}

.footer-top a:hover {
  transform: scale(1.05);
  text-decoration: none;
}

/* FOOTER INFERIOR------------------------------------------------------------------------ */
.footer-bottom {
  background-color: var(--color-bg-light);
  color: white;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
}

.footer-bottom .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 40px;
}

/* Cada columna ocupa espacio automático */
.footer-bottom .col-md-2 {
  flex: 1;
  min-width: 0;
}

/* Logo  */
.logo-section img {
  max-width: 230px;
  margin-bottom: 0px;
  margin-top: 43px;
  margin-left: -6px;
  width: 115%;
}

/* y descripción */
.description {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text);
  margin-top: 33px;
  margin-left: -22px;
  margin-right: -63px;
}

/* Títulos */
.dest-section,
.enlaces-section,
.contacto-section,
.redes-section {
  font-family: 'lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-left: 60px;

}

/* Listas */
.footer-bottom .list-unstyled li {
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--color-text);
  margin-left: 35px;
  margin-right: -40px;
}

.footer-bottom .list-unstyled a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-bottom .list-unstyled a:hover {
  color: #EA8217;
}

/* Contactos */
.contact-list li {
  font-size: 12px;
  color: #cccccc;
  margin-bottom: 8px;
}

/* Redes sociales en fila */
.social-links {
  display: flex;
  gap: 10px;
  margin-left: 50px;
}

.social-links a {
  color: var(--color-primary);
  font-size: 16px;
  text-decoration: none;
}

.social-links a:hover {
  color: #EA8217;
}






@media screen and (max-width: 430px) {

  /* FOOTER___________________________________________________ */
  #footer {
    text-align: center;
    padding: 0;
  }

  /* Sección superior */
  .footer-top {
    padding: 20px 15px;
  }

  .footer-top .row .col-md-12 {
    flex-direction: column;
    gap: 15px;
    margin: 0;
  }

  .footer-top h2 {
    font-size: 16px;
    margin: 0;
    text-align: center;
  }

  .footer-top a {
    padding: 10px 20px;
    font-size: 14px;
    margin: 0;
  }

  /* Footer inferior */
  .footer-bottom {
    padding: 30px 15px;
  }

  .footer-bottom .row {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .footer-bottom .col-md-2 {
    width: 100%;
    margin-bottom: 0;
    text-align: center;
  }

  .logo-section img {
    width: 150px;
    margin: 0 auto;
  }

  .description {
    max-width: 100%;
    margin: 0 10px;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
  }

  .dest-section,
  .enlaces-section,
  .contacto-section,
  .redes-section {
    margin-left: 0;
    font-size: 16px;
  }

  .footer-bottom .list-unstyled li {
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
  }

  .contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 0 0;
  }

  .social-links a i {
    font-size: 18px;
  }
}