:root {
  --color-rojo: #dd3333;
}

body {
  font-family: Roboto;
}

.btn-primario {
  border: 1px solid var(--color-rojo);
  background: var(--color-rojo);
  color: #fff;
}

.btn-primario:hover {
  background: #fff;
  color: var(--color-rojo);
}

/* HEADER */
.img-header {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 140px;
}

.img-header img {
  height: auto;
  width: 100%;
}

/* NEW CSS */
.grapdiv {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0px;
}

/* HEADER */
header {
  border-bottom: 1px solid var(--color-rojo) !important;
  /* rojo institucional */
}

header small {
  font-size: 0.85rem;
  color: #555;
}

header .fab {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

header .fab:hover {
  color: var(--color-rojo);
}

/* BUSCADOR */
.card-inmueble:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  background: #000;
  padding: 20px;
  color: #fff;
}

footer a {
  color: #fff;
}

.logo-footer {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
}

/*WHAT FOOT*/
#btn-what-too {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

.logo-whatsapp {
  align-items: center;
  bottom: 20px;
  display: flex;
  height: 50px;
  justify-content: center;
  position: fixed;
  right: 10px;
  width: 50px;
  z-index: 2;
  flex-direction: column;
}

.logo-whatsapp p {
  color: #000;
  font-weight: 700;
}

.logo-whatsapp img {
  height: auto;
  width: 100%;
}


.redesul {
  align-items: center;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0px;
}

.redesul li,
.enlaces a {
  margin-right: 20px;
}

.redesul li:last-child,
.enlaces a:last-child {
  margin-right: 0px;
}

.redesul li a {
  color: #fff;
  /* font-size: 32px; */
}

.enlaces {
  text-align: center;
}

.copyright {
  text-align: center;
  margin: 0px;
  margin-top: 20px;
}

/* SINGLE INMUEBLE */
.breadcrumb a {
  margin-right: 5px;
  color: var(--color-rojo);
}

.breadcrumb a:last-child {
  margin-right: 0px;
}

.badge-destacado {
  position: absolute;
  background: var(--color-rojo);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}


.lista-inmuebles-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 2rem;
}

.grid-inmuebles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-inmueble {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.urlInmueble {
  color: var(--color-rojo);
}

.urlInmueble:hover {
  color: #dd3333;
}

.titleArchive {
  margin: 20px 0px 40px 0px;
  text-align: center;
}

.pagination {
  text-align: center;
  margin-top: 2rem;
}

/* PLUGIN */
.buscador-inmuebles {
  padding-bottom: 1.5rem !important;

}

.separate-buscador {
  height: 10px;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.15);
}


.buscador-inmuebles input {
  border-color: #dce0e0;
  text-decoration: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: 0;
}

.buscador-inmuebles .form-control {
  border-radius: 0px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.buscador-inmuebles select:focus,
.buscador-inmuebles input:focus {
  border-color: var(--color-rojo);
  box-shadow: 0 0 0 0.1rem var(--color-rojo);
}

.remove-filter {
  width: 100%;
}

.remove-filter a {
  color: var(--color-rojo);
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* SINGLE INMUEBLE */
.sectSingle {
  margin-top: 60px;
}

.imgheader-single-prod {
  width: 100%;
  height: 320px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  display: flex;
}

.imgheader-single-prod img {
  width: 100%;
  height: auto;
}

.inmueble-caracteristicas {
  display: flex;
  list-style: none;
  padding: 0px;
}

.inmueble-caracteristicas li {
  border-right: 1px solid;
  margin-right: 10px;
  padding-right: 10px;
}

.inmueble-caracteristicas li:last-child {
  border: none;
  padding: 0px;
  margin: 0px;
}

.inmueble-caracteristicas li i {
  color: var(--color-rojo);
}

.linkMapSingle {
  width: 100%;
  margin: 0px;
  margin-top: 20px;
  text-align: center;
}

.linkMapSingle a {
  color: var(--color-rojo);
}

.video-container {
  position: relative;
  width: 100%;
  /* opcional */
  margin: 20px auto;
  padding-bottom: 56.25%;
  /* relación 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.imgplano {
  width: 200px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}

.imgplano img {
  height: auto;
  width: 100%;
}

/* INMUEBLES RELACIONADOS */
.inmuebles-relacionados {
  margin: 80px 0px;
}

.page-content {
  margin-top: 40px;
}

.enlacebuscarpost {
  text-align: center;
  width: 100%;
}

.enlacebuscarpost a {
  color: var(--color-rojo);
}

/* FORMULARIO CONTACTO INMUEBLE */

.form-horizontal-contacto {
  /* background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee; */
  margin-top: 40px;
  width: 100%;
}

.form-label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #444;
}

textarea {
  white-space: pre-line;
}

.form-horizontal-contacto input::placeholder,
.form-horizontal-contacto textarea,
.form-horizontal-contacto select {
  font-size: 12px;
}

.form-horizontal-contacto .form-control-lg,
.form-horizontal-contacto .termscondform {
  font-size: 12px;
  height: 45px !important;
}

.btn-danger {
  background: #d63031;
  border: none;
  font-size: 18px;
}

.btn-danger:hover {
  background: #c0392b;
}



/* BOTON MAS INFORMACIÓN */
#contact-floating-btn {
  position: fixed;
  bottom: 50%;
  right: 0px;
  background: var(--color-rojo);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 20px 0px 0px 20px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}

#contact-floating-btn:hover {
  background: #fff;
  border: 1px solid var(--color-rojo);
  border-right: none;
  color: var(--color-rojo);
  transition: transform .2s ease;
}

/* FORMULARIO FLOTANTE */
#contact-form-floating {
  position: fixed;
  bottom: 80px;
  /* justo encima del botón */
  right: 10px;
  width: 90%;
  max-width: 350px;
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;

  /* Oculto por defecto */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Cuando está visible */
#contact-form-floating.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* BOTÓN FLOTANTE */
/* #contact-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073e6;
  color: white;
  border: none;
  padding: 15px 22px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
} */

/* Animación del botón */
#contact-floating-btn:active {
  transform: scale(0.95);
}

/* Solo mobile */
@media (min-width: 769px) {

  /* #contact-floating-btn,
  #contact-form-floating {
    display: none !important;
  } */
}

.btn-custom-share {
  margin-top: 18px;
  border: none;
  background: #fff;
  cursor: pointer;
  color: var(--color-rojo);
  border: 1px solid var(--color-rojo);
  transition: transform .2s ease;
}

.btn-custom-share i {
  color: var(--color-rojo);
}

.btn-custom-share:hover {
  background: var(--color-rojo);
  color: #fff;
  border: 1px solid var(--color-rojo);
}

.btn-custom-share:hover i {
  color: #fff;
}

.btns-prit {
  position: relative;
}

/* BOTON COMPARTIR
 */
/* .btn-custom-share {
  background: #424242;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
} */

.share-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  top: 55px;
  /* ajusta según tu botón */
  /* right: 10px; */
}

.share-tooltip.hidden {
  display: none;
}

.share-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.share-item:hover {
  background: #f3f3f3;
}

/* colores por red */
.share-item.whatsapp i {
  color: #25D366;
}

.share-item.facebook i {
  color: #1877f2;
}

.share-item.instagram i {
  color: #E4405F;
}

/* BLOG */
.blog-categories-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.blog-category-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e7e7e7;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.blog-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

.blog-category-card a {
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  color: #1a1a1a;
}

.blog-category-card a:hover {
  color: #0056ff;
}

/* ===== MENÚ ROJO ===== */
header {
  padding-bottom: 0px !important;
}

.navbar-red {
  background-color: var(--color-rojo) !important;
  /* Rojo */
  padding: 10px 0;
  margin-top: 20px;
}
.navbar-brand{
  margin-left: 0px !important;
}
.navbar-red .navbar-brand,
.navbar-red .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
  text-align: left !important;
}

/* Hover */
.navbar-red .navbar-nav .nav-link:hover {
  color: #ffeaea !important;
}

/* Activo */
.navbar-red .navbar-nav .current-menu-item>a {
  color: #ffffff !important;
  border-bottom: 2px solid #fff;
}

/* Móvil */
.navbar-red .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-red .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255, 0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Alinear texto del menú a la izquierda */
.navbar-red .navbar-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
  /* empuja todo hacia la izquierda */
  text-align: left !important;
}

/* Asegura que los links queden alineados a la izquierda */
.navbar-red .navbar-nav .nav-link {
  text-align: left !important;
  /* padding-left: 0 !important; */
}

.navbar-red .navbar-nav .nav-link:first-child {
  padding-left: 0 !important;
}

/* RESULTADOS BUSQUEDA  */
#cont-res-bus {
  position: relative;
}

#resultadosBuscador {
  margin-top: 4px;

  background: #fff;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  z-index: 999;
  width: 100%;

}

.resultadosBuscadorActive {
  border: 1px solid #ddd;
  -webkit-box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.5);
}

.resultado-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.imgres {
  align-items: center;
  display: flex;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  width: 50px;
}

.imgres img {
  height: 100%;
  width: auto;
}

.resultado-item a {
  text-decoration: none;
  color: #333;
}

.resultado-item:hover {
  background: #f7f7f7;
}

.resultado-item-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.imgres {
  margin-right: 10px;
}

/* SLIDER SINGLE */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-rojo);
}

.swiper-pagination-bullet-active {
  background: var(--color-rojo);
}

.secSingleSlider {
  position: relative;
}