@media (min-width: 320px) and (max-width: 480px) {
  .grid-item { width: 150px; }
  .promo_img {
    max-width: 55px
  }
  .buscador {
    max-height: 150px;
  }
  .contenido {
    padding: 5px;
  }
  .circuloverde {
    width: 10px;
    height: 10px;
  }
  .lineaHeader {
    height: 2px;
  }
  .fondonav {
    background-image: url("../img/FondoNavMovil.jpg");
  }
  .carrusel-fondo {
    padding-top: 10px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url(../img/novedades.jpg);
    background-color: #000000;
    background-size: cover; /* Ajusta la imagen para que cubra todo el área */
    background-position: center !important;
  }
  .textitcar {
    font-size: 14px;
  }
  .swiper-pagination {
    padding-bottom: 5px;
  }
  .textitcar_sub {
    font-size: 12px;
  }
  .card-body {
    max-height: 90px;
    padding: 4px 1px 4px 6px;
  }
  .container {
    max-width: 100%;
  }
  .listing-pub {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 400px;
    min-height: 140px;
    max-width: 400px;
    -o-object-fit: cover;
    object-fit: cover;
    overflow: hidden;
    overflow-y: hidden;
    padding-top: var(--listing-cover-ratio);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
  }
  .input-group > .form-control {
    font-size: 14px !important;
    color: #B8B8B8;
  }
  .barra_divisora {
    margin: 0 auto; /* agrega esta línea */
    margin-bottom: 20px;
    max-width: 100%;
    background: #C3B091;
    height: 5px;
  }
  .custom-text-header {
    color: #FFF;
    font-size: 15px;
    font-weight: 500 !important;
  }
  .categoria-direccion {
    font-size: 10px;
    font-weight: 300;
    padding-top: 2px;
  }
  .tit-eva {
    color: #C3B091;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 300;
    padding-bottom: 1px;
    margin-bottom: 0px;
  }
  .precio {
    font-size: 12px;
    font-weight: 300;
    color: #eddcc0 !important;
    padding-top: 2px;
  }
  .buscador-margen {
    width: 100%;
  }
  .camara_gold {
    font-size: 16px;
  }
  .premium-label_gold {
    font-family: roboto condensed;
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: #4B4B4B;
    color: #FFF;
    padding: 3px 3px;
    font-size: 10px;
  }
  .margen_novedades {
    margin: 15px 10px 35px 10px;
  }
  .historias_home {
    font-size: 18px;
    font-weight: 500;
    margin: 0 10px;
  }
  .premium-label_premium {
    padding: 5px 5px;
    font-size: 10px;
  }
  .premium-label {
    font-family: roboto condensed;
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: #000000;
    color: #FFF;
    padding: 5px 10px;
    font-size: 16px;
  }
  .premium-label {
    padding: 5px 5px;
    font-size: 14px;
  }
  .txt_footer {
    font-size: 11px;
    padding: 15px 0 15px 0;
  }
  .txt_footer2 {
    font-size: 11px;
  }
  .iconreder {
    font-size: 20px;
  }
  .rectangleSearch {
    font-size: 10px;
    height: 20px;
    padding-top: 0px;
  }
  .btn-cerrar-busqueda {
    font-size: 12px;
  }
}
/********************************* Móviles************************************** */
@media (min-width: 481px) and (max-width: 575px) {
    .grid-item { width: 150px; }
  .lineaHeader {
    height: 2px;
  }
  .promo {
    width: 90px;
  }
  .swiper-pagination {
    padding-bottom: 14px;
  }
  .container {
    max-width: 750px;
  }
  .card-body {
    padding: 10px 10px 10px 6px;
    max-height: 90px;
  }
  .tit-eva {
    font-size: 13px;
    font-weight: 200;
  }
  .precio {
    font-size: 13px;
  }
  .categoria-direccion {
    font-size: 12px;
    font-weight: 300;
    color: #FFF !important; /* Asegúrate de que "!important" sea necesario */
  }
  .promo_img {
    max-width: 60px;
    z-index: 9999;
  }
  .buscador-margen {
    width: 90%;
  }
}
/* Tablets pequeñas */
@media (min-width: 576px) and (max-width: 768px) {
  .historias {
    background: #000000;
    padding-top: 5px;
    padding-bottom: 10px;
  }
  .custom-text-header {
    font-size: 18px;
    font-weight: 100;
  }
  .container {
    max-width: 750px !important;
  }
  .lineaHeader {
    height: 3px;
  }
  .card-body {
    padding: 10px;
  }
  .fondonav {
    background-image: url("../img/fondoNavmovil.jpg");
    margin: 0 auto;
  }
  .card-img-top {
    width: auto;
    max-width: 100%;
    height: auto;
  }
  .premium-label {
    font-size: 12px;
    padding: 3px 6px;
  }
  .card {
    margin: 0 10px;
  }
  .container {
    max-width: 700px;
  }
}
/* Pantallas medianas */
@media (min-width: 769px) and (max-width: 990px) {
    .grid-item { width: 150px; }
  .buscador .contenido {
    padding: 10px;
  }
  .custom-text-header {
    font-size: 18px;
  }
  .container {
    max-width: 900px !important; /* Cambia este valor al que prefieras */
  }
}
@media (min-width: 1200px) {
    .grid-item { width: 320px; }
  .borde_tarjeta {
    /*border: 1.4rem solid #6B6000;*/
    padding: 0px;
  }
  /* Contenedor padre */
  /* Línea que se pega abajo */
  .buscador {
    position: relative;
    z-index: 1; /* Asegura que el contenido se mantenga sobre el video */
    overflow: hidden; /* Esto se asegura de que el video no se salga del contenedor */
  }
  .buscador {
    position: relative; /* Asegura que el contenido esté bien posicionado sobre el video */
    z-index: 1; /* Para asegurar que el contenido esté sobre el video */
  }
  .logo_grande {
    max-width: 300px;
    padding-bottom: 15px;
  }
  .cont_menu {
    background: #000000;
    height: 50px;
    padding-top: 10px;
  }
  .contenedor-iconos {
    width: 100vw !important;
  }
}
/* Estilos para pantallas mayores a 1201px */
@media only screen and (max-width: 1400px) {
    .grid-item { width: 320px; }
  .menu_escritorio {
    max-height: 280px;
    max-width: 100%;
    position: absolute;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: unset;
  }
  .modal_1 {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .fondo_historia {
    background-color: black;
  }
  .fondo_carrusel {
    transition-duration: 0ms;
    transform: translate3d(-251.6px, 0px, 0px);
    transition-delay: 0ms;
  }
  .menu_texto {
    font-family: 19px !important;
  }
  .margen_novedades {
    margin: 25px 10px 35px 15px;
  }
}