/* Estilos globales */
:root {
  --primary-color: #0198a9;
  --primary-color-dark: #006663;
  --primary-color-light: #338582;
  ---secundary-color: #016a76;
  --tertiary-color: #e6797f;
  --quartary-color: #f8f8f8;
  --white-color: #ffffff;
  --black-color: #000000;
  --gray-color: #555555;
  --text-color: #464646;
  --red-color: #ff0000;
}

/* Floating buttons base styles */
.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 120px 12px 16px;
  z-index: 10000;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.btn-float {
  flex: 1;
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  margin: 0;
  height: 45px;
  white-space: nowrap;
  transition: all 0.3s ease;
  color: var(--white-color) !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn-float:active {
  transform: scale(0.95);
}

.btn-call {
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.btn-call:active {
  background-color: var(--primary-color-dark);
  transform: translateY(2px);
}

.btn-contact {
  background-color: var(--primary-color-dark);
}

.btn-chat {
  background-color: var(--tertiary-color);
  border: none;
  cursor: pointer;
}

.btn-float i {
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  /* Slider images */
  .slider img {
    height: 250px;
    width: 100vw;
    object-fit: cover;
    display: block;
  }
  .slider .item {
    width: 100vw;
    height: 250px;
    flex: 0 0 auto;
  }

  .big{
    font-size: 2.2rem!important;
  }
  .mt-10 {
    margin-top: 6rem !important;
  }

  .mt-20 {
    margin-top: 3rem !important;
  }

  .text-grande {
    font-weight: 400;
    font-style: normal;
    line-height: 1.5rem;
    font-size: 1rem;
    color: black;
  }

  .h2-bennecke {
    font-weight: 700;
    font-style: normal;
    font-size: 1.55rem;
    color: var(--primary-color);
  }

  .formulario_buscador {
    padding: 24px;
    border-radius: 20px;
    background-color: var(--white-color) !important;
  }

  .card{
    border: none !important;
  }
  
  .card-img {
    height: 150px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .card img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la imagen cubra el contenedor y mantenga las proporciones */
    object-position: center; /* Esto centra la imagen */
  }
  

  #hero {
    background-image: url(../../website/home/BG_HOME.jpg);
    /* Aumentamos el tamaño más allá del contenedor */
    background-size: 230%;
    /* Se ancla en la esquina inferior izquierda */
    background-position: left bottom;
    background-repeat: no-repeat;
    height: 40vh;
    display: flex;
    padding-top:100px;
    justify-content: center;
    position: relative;
  }
  #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay oscuro semi-transparente */
  }
  #hero .container {
    position: relative;
    z-index: 1;
  }
  #hero .buscador h1 {
    font-size: 2rem;
  }

  .buscador label {
    color: var(--primary-color-dark);
    font-weight: bold;
    font-size: 1rem;
  }

  #hero .formulario_buscador {
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  }

  .text-w-image {
    margin-top: 90px !important;
  }
  .text-w-image .container-fluid {
    padding: 0 0;
  }

  #vende-con-bennecke h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 2rem;
    margin-bottom: 20px;
    letter-spacing: 0.2rem;
  }

  #vende-con-bennecke h2 {
    color: var(--primary-color-dark);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4rem;
  }

  #vende-con-bennecke p {
    color: var(--white-color);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4rem;
  }

  #vende-con-bennecke-home {
    margin: 0;
    padding: 0px;
    background-color: var(--primary-color-dark);
  }

  #vende-con-bennecke-home img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top left; /* o "0 0" para lo mismo */
  }

  #vende-con-bennecke-home h2 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 2rem;
    text-align: center;
  }

  #vende-con-bennecke-home p {
    width: 100%;
    color: var(--white-color);
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.5rem;
  }

  .btn-bennecke{
    font-weight: bold;
  }

  .homeblock01 {
    width: 100%;
    margin-top: 280px !important;
    padding: 0px;
    padding-top: 60px;
    background-color: var(--white-color);
  }

  .homeblock02 {
    margin-top: 40px !important;
    padding: 0px;
  }

  .homeblock03 {
    width: 100%;
    margin: auto;
    margin-top: 18px;
    margin-bottom: 0px !important;
    padding: 0px !important;
  }

  .homeblock04 {
    width: 100%;
    margin: auto;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    padding-top: 0px !important;
  }

  .text-w-image {
    margin-top: 90px !important;
  }
  .text-w-image .container-fluid {
    padding: 0 0;
  }

  .overlay-text-home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 10px;
    border-radius: 15px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra opcional */
  }

  #div-zonas {
    margin: 0px !important;
    background-color: var(--primary-color-dark);
  }

  #div-zonas li {
    padding: 5px;
    width: 100%;
  }

  #div-zonas span {
    color: white;
    font-size: 2rem;
    display: block;
    margin: 20px;
    font-weight: bold;
    text-align: center;
  }

  #div-zonas li {
    padding: 5px;
    width: 100%;
  }

  #div-zonas li a {
    color: white;
    padding: 5px;
    font-size: 1.2rem;
    display: block;
    background-color: var(--primary-color-light);
  }

  .video-iframe {
    width: 100%;
    height: auto;
  }

  .bg-zonas {
    height: 300px;
  }

  #contact h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
  }
  #contact h3 {
    font-size: 1.5rem;
  }
  #contact .form {
    padding: 20px;
  }
  #contact .form input[type="text"],
  #contact .form input[type="email"] {
    padding: 0 10px;
  }
  #contact .form textarea {
    padding: 0 10px;
  }
  #contact .form .form-check-input {
    margin: 0 10px 0 0 !important;
  }
  #contact .form .form-check-label {
    font-size: 0.8rem;
  }
  #contact .form .submit {
    padding: 0 35px !important;
    margin-top: 10px;
    font-size: 14px;
    display: block;
    width: 95%;
  }

  .lista-de-propiedades .reference {
    padding: 10px 0;
  }
  .lista-de-propiedades .price {
    padding-bottom: 0px;
  }
  .lista-de-propiedades .detail,
  .lista-de-propiedades .detail-bottom {
    padding: 1rem 0 !important;
  }

  .info-property {
    padding-top: 1.5rem !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .ref {
    margin-bottom: 15px !important;
  }
  .d-m-none {
    display: none !important;
  }
  .header {
    padding: 10px 4% !important;
  }
  .d-d-none {
    display: block;
  }
  .item {
    width: 100%;
    min-width: 100%;
  }
  #propiedad {
    padding: 0px !important;
  }
  /* Mobile-specific property layout */
  #propiedad div.container-fluid {
    padding: 0 !important;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #propiedad .property-header {
    order: 2 !important; /* Override desktop order */
    margin: 1rem 0 0 0;
    padding: 0 1rem;
  }
  #propiedad .property-slider {
    order: 1 !important; /* Override desktop order */
    margin: 0;
    width: 100vw;
    overflow: hidden;
  }
  #propiedad .property-buttons {
    order: 3;
    margin-top: 0.5rem;
    padding: 0 1rem;
  }
  #propiedad .property-buttons .mt-5 {
    margin: 0.5rem 0 !important;
  }
  .desk {
    display: none;
  }
  .container-slider {
    padding: 0px !important;
  }
  .mobile {
    display: block;
  }
  .title-interna {
    font-size: 20px;
    margin-top: 0px;
  }
  .ref-interna {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
  }
  .btn-tour {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    margin-left: 0px;
  }
  .mt-0-mobile {
    margin-top: 0px !important;
  }
  .d-flex-mobile {
    display: contents !important;
  }
  .bg-dowload {
    height: 200px;
  }

  #sobre-nosotros h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  #sobre-nosotros p {
    font-size: 1.6rem;
    line-height: 1.6rem;
    width: 100%;
  }

  #sobre-nosotros img {
    height: 280px;
  }

  #sobre-nosotros a {
    font-size: 1rem;
    display: block;
    width: 100%;
    line-height: 1rem;
  }

  #bloque_nosotros {
    padding: 0px;
  }

  #bloque_nosotros h2 {
    font-size: 2rem;
    line-height: 2rem;
  }

  #bloque_nosotros .bloque__blanco {
    padding: 10px;
  }

  #bloque_nosotros .bloque__blanco img {
    margin-bottom: 20px;
    width: 75%;
  }
  #bloque_nosotros .bloque__blanco p {
    font-size: 1rem;
  }

  #mision-vision h2 {
    font-size: 1.8rem;
    line-height: 2rem;
  }

  #mision-vision p {
    font-size: 1.2rem;
    line-height: 1.2rem;
    width: 100%;
  }

  #bg-oficina {
    padding: 0px;
    height: 350px;
  }

  #bg-oficina h2 {
    font-size: 2rem;
    line-height: 2rem;
  }

  #team h2 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  #team .team-name {
    font-size: 1.2rem;
  }

  #team .team-position {
    font-size: 0.8rem;
  }

  #bennecke-hoy {
    padding: 40px 0px;
    color: var(--gray-color);
  }

  #bennecke-hoy .nosotros-div h2 {
    font-size: 1.8rem;
    line-height: 2rem;
  }

  #bennecke-hoy p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2rem;
  }

  #bennecke-hoy h2 {
    font-size: 3rem;
    line-height: 2.6rem;
  }

  #bennecke-hoy .grande {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2rem;
  }

  #bennecke-hoy-paises {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #valoracion {
    padding: 20px 0px;
  }

  #valoracion h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 2.3rem;
  }

  #red-comercial {
    height: 400px;
  }

  #red-comercial h2 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 2rem;
  }

  #red-comercial p {
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0px;
    line-height: 2rem;
    text-align: center;
  }

  #portales {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--white-color);
    height: 200px;
  }

  #portales h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0px;
    font-weight: 300;
    line-height: 2rem;
    text-align: center;
  }

  #marketing-inmobiliario {
    padding: 20px 0px;
    background-color: var(--quartary-color);
  }

  #marketing-inmobiliario h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 2rem;
    text-align: center;
  }

  #marketing-inmobiliario .bloque__blanco {
    background-color: var(--white-color);
    margin-bottom: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;

    text-align: center;
  }

  #marketing-inmobiliario .bloque__blanco img {
    width: 60%;
    height: 60%;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
  }

  #marketing-inmobiliario .bloque__blanco p {
    color: var(--primary-color);
    margin-bottom: 0px;
    font-weight: 400;
    padding: 0px 20px;
    font-size: 1rem;
  }

  .listado-circulos li {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .listado-circulos span {
    font-weight: 400;
    font-size: 1rem;
    color: var(--gray-color);
  }

  .circulo {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 100px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;

    font-weight: 400;
    font-size: 2.5rem;
  }

  #bennecke-hoy-paises h2 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 900;
    line-height: 2rem;

    margin-left: 40px;
  }

  #contact {
    background-color: var(--quartary-color);
    padding: 50px 20px;
  }
  /* ######################################PAGE CONTACTO ###################### */

  #contacto h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 2.5rem;
    letter-spacing: 0.2rem;
  }

  #boletin h2 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 900;
    line-height: 2rem;

    text-align: center;
  }

  #boletin p {
    color: var(--white-color);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4rem;

    text-align: center;
  }

  #boletin label {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1rem;
  }

/* Hide reCAPTCHA badge */
  .grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0;
  }

  /* Mostrar botones flotantes solo en móviles */
  .floating-buttons {
    display: flex !important;
  }
}
