:root {
  --blue: #424e5b;
  --indigo: #6610f2;
  --purple: #b663d7;
  --pink: #ef9393;
  --pink1: rgb(237, 14, 51);
  --red: #c00;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #424e5b;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #c00;
  --light: #f8f9fa;
  --dark: #343a40;
  --rosa: rgb(228, 83, 121);
  --rosa1: rgb(232, 49, 98);
  --whatsapp: rgb(131, 201, 26);
  --marroncito: #dfa016;
  --verde-oficial: rgb(126, 184, 143);
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* rgba(91, 54, 54, 0.5), rgba(0, 0, 0, 0) NO PERDER COMBINACION ORIGINAL

    rgba(8, 89, 169, 0.55),   /* azul oscuro arriba 
      rgba(8, 89, 169, 0.55),    /* se desvanece 
      rgba(8, 89, 169, 0.55)         /* deja ver la imagen  COMBINACION AZUL*/

/* -header responsive */
.header-responsive {
  /* Fondo con capa negra arriba y azul corporativo debajo */
  background:
    linear-gradient(to bottom,
      rgba(8, 89, 169, 0.55),
      /* azul oscuro arriba */
      rgba(8, 89, 169, 0.55),
      /* se desvanece */
      rgba(8, 89, 169, 0.55)
      /* deja ver la imagen */
    ),
    url("Imagenes/hija-feliz-divirtiendose-sus-padres-mientras-muda-apartamento-nuevo.jpg");

  color: white;
  /* texto claro para contrastar */
  overflow: hidden;
  /* evita que el contenido sobresalga */
  background-size: cover;
  /* ajusta la imagen al contenedor */
  background-position: center;
  /* centra la imagen */
  width: 100%;
  height: 100vh;
  /* ocupa toda la pantalla */
  box-shadow: 0 9px 39px 0 rgba(0, 0, 0, 0.3);
  /* sombra sutil */
  position: relative;
  /* necesario si luego quieres capas encima */
}

/*background: linear-gradient( to bottom, rgba(91, 54, 54, 0.5), rgba(0, 0, 0, 0) )*/
/*NO PERDERLO POR SI LAS

.title-navbar {
  letter-spacing: 0px;
  font-weight: 700;
}

/* SOM */
.som-title {
  color: rgb(11, 47, 144);
  font-weight: 700;
}

/* HIPOTECA */
.hipoteca-title {
  display: inline-block;
  background: linear-gradient(45deg,
      #f7f8fb,
      /* azul claro */
      #eff0f3
      /* azul corporativo oscuro */
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/*NAVBAR STYLES ------------------------------------------------- */



/* -------- */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-toggle::after {
  display: none;
}

/* -------- */
.navbar {
  transition: background-color 0.3s ease-in-out;
}

#nav-item1 {
  border-bottom: 3px solid rgb(248, 242, 243);
  padding-bottom: 0.5rem;
}

#nav-item2 {
  border-bottom: none;
}

#nav-item3 {
  border-bottom: none;
}

#nav-link4 {
  background-color: rgb(11, 47, 144);
  /*var(--verde-oficial);*/
  border-radius: 10px;
  align-items: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#nav-link4:hover {
  background-color: white;
  color: rgb(11, 47, 144);
  border-radius: 10px;
  align-items: center;

}

#nav-item4 {

  border-bottom: none;

}

#nav-item5 {

  margin-right: 3rem !important;

}

.nav-item {
  margin-left: 2rem;

}

.nav-item:hover {
  /* border-radius: 15px;
  background-color: white; */
  border-bottom: 3px solid rgb(248, 242, 243);


}

#navbarDropdown {
  color: white;
  border-bottom: none;
}

.nav-link {
  font-size: 19px;
  font-weight: 500;



}

.dropdown-menu {
  margin-top: 5px;
}

.dropdown-item {
  border: 1px solid rgb(240, 239, 239);

}


/* .content-drop:hover{
  display: block;
} */

/* Clase para el fondo al desplazarse hacia abajo */
/* .navbar.scrolled {
background-color: var(--blue);
border-top: solid 1px rgb(228, 83, 121);
.nav-link{
    color:rgb(228, 83, 121) !important;
}
} */

.contenedor-interior {
  width: fit-content;
  height: fit-content;
  margin: 290px auto auto;
  text-align: center;
}

.title-portada {
  margin: 0;
  font-size: 39px;
  /* más espacio entre líneas */
  font-weight: 300;
  color: white;
  text-align: center;
}

.highlight-portada {
  background: rgb(234, 179, 52);
  /* degradado naranja */
  color: white;
  padding: 0.3rem 0.8rem;
  /* suficiente padding para destacar */
  border-radius: 8px;
  /* esquinas más suaves */
  display: inline-block;
  /* controla el tamaño sin romper el flujo */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  /* sombra elegante */
  line-height: 1;
  /* ajusta la altura interna del span */
}





.subtitle-portada {
  font-size: 39px;
  margin: 10px 0px 0px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 36px;
  letter-spacing: normal;
  color: rgb(255, 255, 255);
  position: relative;
}

/* CONTENEDOR */
.container-button {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* CONTENEDOR INDIVIDUAL */
.container-interior {
  margin: 0;
}

/* ESTILO BASE (mantiene tu forma original) */
.button-portada {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 3.2rem;
  /* un poco más grande */
  border-radius: 28px;
  font-size: 1.15rem;
  /* ligeramente mayor */
  font-weight: 600;
  border: 2px solid white;
  background: transparent;
  color: white;
  transition: .25s ease;
}

/* ICONOS */
.button-portada i {
  font-size: 1.35rem;
}

/* ⭐ BOTÓN DEL CENTRO DESTACADO ⭐ */
.container-interior:nth-child(2) .button-portada {
  background: rgb(11, 47, 144);
  border-color: rgb(11, 47, 144);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 3.6rem;
  /* MÁS GRANDE QUE LOS OTROS */
  font-size: 1.2rem;
  /* MÁS GRANDE */
}

/* HOVER GENERAL */
.button-portada:hover {
  background: white;
  color: rgb(11, 47, 144);
  transform: translateY(-3px);
}

/* HOVER DEL DESTACADO */
.container-interior:nth-child(2) .button-portada:hover {
  background: rgb(20, 70, 180);
  color: white;
}

/* -----Button toggle--- */
button.navbar-toggler {
  background: url("Imagenes/MENU.png") center center no-repeat;
  background-size: cover;
  border: none;
  padding: 0;
  width: 3rem;
  /* Ajusta el ancho del botón según tus necesidades */
  height: 3rem;
  /* Ajusta la altura del botón según tus necesidades */
}

/* Oculta el contenido original, pero sigue siendo accesible para usuarios con tecnologías de asistencia */
.visually-hidden {
  position: absolute;
  /* width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0; */
}

/* iconos------------------------------------------------------ */
/* .fixed-icons {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    display: flex;
    flex-direction:inline-block;
    align-items: flex-end;
    z-index: 2;
    
}
.div-icons{
    margin: 1rem;
    background-color: rgb(243, 216, 39);;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
}
.div-icons1{
    margin: 1rem;
    background: linear-gradient(226.42deg, rgb(152, 227, 92) 0%, rgb(160, 196, 64) 110.61%);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
}
.fa-whatsapp{
        font-size: 2rem;
        text-align: center;
       
}
.bi-telephone-fill{
        font-size: 2rem;
        text-align: center;
    }


.div-icons {
    margin-bottom: 10px; 
} */

/* Sección principal------------------------------------------------------------------------------------- */

#container-main {
  margin: 0px 10px 1px 10px;
}

.titulo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #424e5b;
  text-align: left;
  margin-left: 1.5rem;
  margin-top: 3.2rem;
}

.card-img-fixed {
  height: 350px;
  /* Ajusta la altura deseada */
  object-fit: cover;
  /* border-radius: 1.3rem; */
}

.card-body {
  margin-left: -1rem !important;
}

.card {
  border: 9px;
  border-color: rgb(24, 24, 23);
  margin-bottom: 2rem;
}

.card-text {
  font-size: 15px;
  color: #5f6c7a;
}

#btn {
  margin-top: 1rem;
  background-color: rgb(251, 251, 251);
  color: rgb(100, 98, 98);
  /* Texto en color blanco para mayor contraste */
  border: 2px solid rgb(8, 8, 8);
  /* Borde del mismo color que el fondo */
  border-radius: 40px;
  /* Bordes más redondeados */
  padding: 5px 40px 8px 40px;
  /* Espaciado interno */
  cursor: pointer;
  /* Cambia el cursor al pasar por encima */
  font-size: 1rem;
  /* Tamaño de fuente */
  transition: background-color 0.3s, color 0.3s;
  /* Transición suave al cambiar colores */
  font-size: 13px;
}

#btn:hover {
  background-color: navy;
  /* Cambia el color al pasar el ratón por encima */
  color: rgb(250,
      250,
      250);
  /* Cambia el color del texto al pasar el ratón por encima */
}

/* Estilos para los indicadores del carousel */

/* VENDER PISO */
.main2 {
  margin-top: 2rem;
  height: 31.25rem;
  background-image: url("Imagenes/parejafondorosado.png");
  background-size: cover;
  /* Mantiene la proporción original sin estirar */
  background-position: left top;
  /* Centra la imagen hacia la izquierda */
  margin-bottom: 1rem;
}

.content-venderpiso {
  padding: 6rem 7rem 1rem 5rem;
  margin-bottom: 1rem;
}

.titulo-venderpiso {
  font-weight: 700;
  font-size: 2.3rem;
  color: white;
  font-family: Nunito, Arial, sans-serif;
}

.parrafo-venderpiso {
  color: white;
  font-size: 1.3rem;
  line-height: 1.5rem;
  margin-top: 2rem;
}

#boton-venderpiso {
  margin-top: 2rem;
  background-color: white;
  color: rgb(134, 134, 134);
  border-radius: 40px;
  padding: 12px 52px 12px 52px;
  border: none;
  font-size: 12px;
}

#boton-venderpiso:hover {
  background-color: rgb(66, 65, 91);
  color: white;
}

/* Servicios */
.titulo-servicios {
  color: #424e5b;
  font-family: Nunito, Arial, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin: 3rem 0 5rem 0;
}

/* LO USAMOS PARA OTRAS SECCIONES */
/* .titulo-servicios1{
    color: #424e5b;
    font-family: Nunito,Arial,sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    } */
/* ---- */
.card-img-top {
  width: 100%;
  height: 300px;
  max-width: 300px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Sección Fija inferior */
.div-content-fixed {
  background-color: white;
  padding: 12px 9px 10px 9px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.content-button-fixed {
  width: 12rem;
  height: 4.5rem;
  border-radius: 20px;
  margin: 3px 0px 3px 0px;
  box-shadow: 0px 4px 8px rgba(7, 7, 7, 0.5) !important;
}

.icon-fixed {
  font-size: 2rem;
  color: white;
}

#content-whatsapp {
  /* background-color: rgb(131, 201, 26);*/
  background-color: steelblue;
}

#content-phone {
  /* background-color: var(--primary);*/
  background-color: steelblue;
}

/* CARRUSEL SECCION PRINCIPAL */

#carouselExample {
  padding: 1rem 2rem 1rem 2rem;
}

.carousel-control-prev {
  margin: 5rem 2rem 21rem 2rem;
}

.carousel-control-next {
  margin: 5rem 2rem 21rem 2rem;
}

/* que ofrecemos */
.que-ofrecemos {
  background-image: url(https://lemonline.com/img/backgrounds/service_buy_desktop.webp);
}

.div-title-que-ofrecemos {
  margin-bottom: 2rem;
}

.title-que-ofrecemos {
  margin-top: 4rem;
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(45deg, #ff69b4, #990033) text;
  /* background: linear-gradient(to right, rgb(255, 217, 35) 0%, rgb(179, 199, 56) 100%) text; */
  -webkit-text-fill-color: transparent;
  font-family: "Be Vietnam", sans-serif;
  font-weight: bold;
}

.div-subtitle-que-ofrecemos {
  margin-bottom: 2rem;
}

.subtitle-que-ofrecemos {
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(45deg, #ff69b4, #990033) text;
  -webkit-text-fill-color: transparent;
  font-family: "Be Vietnam", sans-serif;
}

.img-que-ofrecemos {
  width: 125px;
  overflow-clip-margin: content-box;
  overflow: clip;
}

.content-inside {
  display: flex;
  margin-bottom: 1.5rem;
}

.content-inside span.list-number {
  background: linear-gradient(45deg, #ff69b4, #990033) text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem;
  line-height: 1;
  min-width: 20px;
  font-weight: bold;
}

.content-inside span:first-child {
  margin-right: 0.5rem;
}

/* .content-que-ofrecemos{

    
} */
.content-left-que-ofrecemos {
  margin: 2.5rem;
  max-width: 29rem;
}

.content-right-que-ofrecemos {
  margin: 2.5rem;
  max-width: 28rem !important;
}

#container-button-ofrecemos {
  text-align: center;
  margin-bottom: 5rem;
  margin-top: 3rem;
}

#button-ofrecemos {
  text-align: center;
  background-color: rgb(228, 83, 121);
  color: rgb(255, 255, 255);
  border: none;
  padding: 1.2rem 3.9rem 1.2rem 3.9rem;
  border-radius: 28px;
}

#button-ofrecemos:hover {
  background-color: rgb(232, 49, 98);
}

div span h4 {
  font-size: 1.3rem;
}

div span p {
  font-size: 0.9rem;
}

/* SECCION TASACION GRATUITA---------------------------------------------------- */
.seccion-gratuita {
  width: 100%;
  height: 34.25rem;
  background-color: rgb(195, 233, 204);
  /* background-color: rgb(208, 236, 215); */
}

.content-venderpiso1 {
  padding: 6rem 7rem 1rem 5rem;
  margin-bottom: 1rem;
}

.titulo-venderpiso1 {
  font-weight: 700;
  font-size: 2.3rem;
  color: white;
  font-family: Nunito, Arial, sans-serif;
}

.parrafo-venderpiso1 {
  color: white;
  font-size: 1.3rem;
  line-height: 1.5rem;
  margin-top: 2rem;
}

#boton-venderpiso1 {
  margin-top: 2rem;
  background-color: white;
  color: rgb(134, 134, 134);
  border-radius: 40px;
  padding: 12px 52px 12px 52px;
  border: none;
  font-size: 12px;
}

/* FORM TASACIÓN GRATUITA ----------------------------------------------------- */
.container-tasacion {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

#regForm {
  /* ---inventadas */
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  background-color: white;
  /* background: url(https://img.freepik.com/foto-gratis/gente-cultivos-intercambiando-llaves_23-2147694412.jpg?size=626&ext=jpg&ga=GA1.2.2040966480.1703997511&semt=ais) no-repeat center center/cover; */
  width: 100%;
  max-height: 27rem;
  margin: 0px auto;
  font-family: Raleway;
  padding: 40px;
  border-radius: 20px;
  max-width: 29rem;
}

#register {
  /* font-weight: 700; */
  /* color: #424e5b; */
  /* color: rgb(197, 236, 207); */
  color: rgb(126, 184, 143);
  text-align: center;
}

input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid #aaaaaa;
  border-radius: 10px;
  /*  -webkit-appearance: none;*/
  appearance: none;
}

.tab input:focus {
  border: 1px solid var(pink) !important;
  outline: none;
}

input.invalid {
  border: 1px solid #e03a0666;
}

.tab {
  display: none;
}

.button-form {
  background-color: rgb(228, 83, 121);
  ;
  color: #ffffff;
  border: none;
  border-radius: 10%;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-family: Raleway;
  cursor: pointer;
}

.button-form:hover {
  opacity: 0.8;
}

button:focus {
  outline: none !important;
}

#prevBtn {
  background-color: var(--blue);
}

.all-steps {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.step {
  /* height: 40px;
    width: 40px;
    margin: 0 2px; */
  height: 4rem;
  width: 4rem;
  margin: 0 4px;
  /* background-color: #bbbbbb; */
  background-color: rgb(228, 83, 121);
  ;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: var(--white);
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step.finish {
  color: var(--white);
  background: rgb(228, 83, 121);
  ;
  opacity: 1;
}

.all-steps {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.thanks-message {
  display: none;
}

.tab {
  color: rgb(126, 184, 143);
}

/* Seccion cards explicativas --------------------------------------------------------*/

.section-card-information {
  background-color: #f8f8f8;
  padding: 3rem;

}

.cuerpo-card img {
  border-radius: 20px;
  width: 100%;
  height: 13rem;
}

.body-card {
  background-color: #f8f8f8;
  ;

}

.cuerpo-card {
  background-color: #f8f8f8;
  ;
}

/* COMPRAR PISO */
#list-icon {
  margin-right: 1rem;
}

#list-icon svg {
  width: 1.6rem;
  margin-bottom: 0.5rem;
}

#list-icon path {
  fill: url(#gradient);
  /* Referencia al gradiente definido en el elemento con id "gradient" */
}

.interior-span {
  margin-bottom: rem;
}

.interior-span2 {
  margin-bottom: 2rem;
}

.button-cards-explicativas {
  margin-top: 3rem;
}

.button-cards-explicativas1 {
  margin-top: 4.4rem;
}

/* QUIERO UNA HIPOTECa */
#interior-span-hipoteca {
  margin-bottom: 2rem;
}

/* Vendertucasa */
.vendertucasa {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)),
    url(Imagenes/cuanto-vale-mi-piso.jpg);
  background-size: cover;
  padding: 9rem 0;
  margin-top: 3rem;
  background-repeat: no-repeat;
  min-height: 40rem;
}

.title-vendertucasa {
  color: white;
  font-weight: 700;
}

.div-card {
  justify-content: center;
  background-color: rgb(248, 246, 243);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 3px 5px 14px 5px rgba(0, 0, 0, 0.06);
  border: none;
  background: hsla(0, 0%, 100%, 0.91);
  height: 8rem;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
  word-wrap: break-word;
}

.number {
  margin-right: 1rem;
  color: #ebaa1b;
  /* color: #ebaa1b;  */
  font-weight: bold;
  font-size: 2rem;
}

.div-p {
  font-size: 1rem;
  color: rgb(111, 110, 110);
}

#button-vendertupiso {
  /* width: 15rem;
    height: 3rem;
    background-color: #ebaa1b;;
    color: rgb(248, 246, 246);
    border: none;
    border-radius: 10px; */
  text-align: center;
  background-color: #ebaa1b;
  color: rgb(255, 255, 255);
  border: none;
  padding: 1.2rem 3.9rem 1.2rem 3.9rem;
  border-radius: 28px;
}

#button-vendertupiso:hover {
  background-color: #dfa016;
}

/*reseñas clientes--------------------------------------------------*/

/* ===== REVIEWS SECTION (rv-) ===== */

.rv-section {
  background: linear-gradient(135deg, #f5f7fa, #eef1f4);
}

.rv-header .rv-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.rv-header .rv-subtitle {
  color: #6c757d;
}

.rv-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  height: 100%;
}

.rv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.12);
}

.rv-stars {
  color: #f5c518;
  margin-bottom: 14px;
}

.rv-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 22px;
}

.rv-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rv-avatar {
  width: 44px;
  height: 44px;
  background: #0d6efd;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.rv-footer h6 {
  margin: 0;
  font-size: 0.9rem;
}

.rv-footer span {
  font-size: 0.8rem;
  color: #6c757d;
}

.rv-section .carousel-control-prev-icon,
.rv-section .carousel-control-next-icon {
  filter: invert(1);
}


/* PREGUNTAS FRECUENTES */
/* body {
  font-family: "IBM Plex Sans", sans-serif;
  background-color: rgba(0,0,0,.1);
}

h2 {
  margin: 20px auto 80px;
  font-size: 38px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1.5;
} */
.title-preguntas {
  margin: 20px auto 80px;
  font-size: 38px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 2px;
  line-height: 1.5;
}

details {
  width: 75%;
  min-height: 5px;
  max-width: 700px;
  padding: 45px 70px 45px 45px;
  margin: 0 auto;
  position: relative;
  font-size: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  box-sizing: border-box;
  transition: all 0.3s;
}

details+details {
  margin-top: 20px;
}

details[open] {
  min-height: 50px;
  background-color: #f6f7f8;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

details p {
  color: #96999d;
  font-weight: 300;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}

summary:focus {
  outline: none;
}

summary:focus::after {
  content: "";
  height: 100%;
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 0 5px rebeccapurple;
}

summary::-webkit-details-marker {
  display: none;
}

.control-icon {
  fill: rebeccapurple;
  transition: 0.3s ease;
  pointer-events: none;
}

.control-icon-close {
  display: none;
}

details[open] .control-icon-close {
  display: initial;
  transition: 0.3s ease;
}

details[open] .control-icon-expand {
  display: none;
}

/* FOOTER -------------------------------------*/
.footer-principal {
  /* background-image: url(https://media.istockphoto.com/id/1020969074/es/vector/mapa-mundo-con-luces-de-la-ciudad-vista-nocturna-del-mapa-de-la-tierra-con-brillantes-puntos.jpg?s=612x612&w=0&k=20&c=UvPtnQRxSC62oI-vYP8mxVrL43NOatwwREwHXVl6cx4=); */
  background-color: #2b3137;
  background-size: cover;
  background-position: 50% 30%;
  /* Mueve la imagen al 50% de la anchura del contenedor y al 80% de su altura */

}

.text-color-custom {
  color: #6c727a;
}

.footer-final {
  background-color: #424e5b;

}

/* ------- */


.redes-sociales {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 10px;
  background: linear-gradient(0deg, #ddd, #fff);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.5s;
}

.redes-sociales:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.redes-sociales i {
  font-size: 24px;
  color: #262626;
}

#red-social1:hover i {
  color: #FF0000;
}

#red-social2:hover i {
  color: #3b5998;
}

#red-social3:hover i {
  color: #dd4b39;
}


/* MODAL---------------------------------------------------------------------------------------------------------- */
/* ============================
   MODAL BASE PREMIUM
   ============================ */

.sim-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.85), rgba(15,23,42,0.95));
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 1.5rem;
}

/* quepa siempre en pantalla */
.sim-modal-content {
  background: radial-gradient(circle at top left, #ffffff, #f3f4f6);
  border-radius: 22px;
  width: 100%;
  max-width: 780px;
  padding: 2.2rem 2.4rem;
  position: relative;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  animation: simFadeIn .28s ease-out;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

/* scrollbar fino y elegante */
.sim-modal-content::-webkit-scrollbar {
  width: 6px;
}
.sim-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

/* MOBILE */
@media (max-width: 640px) {
  .sim-modal {
    padding: 1rem;
  }
  .sim-modal-content {
    padding: 1.4rem 1.3rem 1.6rem;
    border-radius: 18px;
  }
}

/* CLOSE BUTTON */
.sim-close {
  position: absolute;
  right: 1.2rem;
  top: 1.1rem;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(148,163,184,0.4);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all .18s ease;
}

.sim-close:hover {
  background: rgba(15,23,42,0.08);
  color: #111827;
}

/* TITLES */
.sim-title {
  font-size: 1.9rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #0b2f90;
  margin-bottom: .25rem;
}

.sim-subtitle {
  color: #6b7280;
  margin-bottom: 1.6rem;
  font-size: .95rem;
}

/* SEPARADOR SUTIL */
.sim-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 1.4rem 0 1.6rem;
}

/* GRID BASE PARA INPUTS / BLOQUES */
.sim-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
  .sim-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* LABELS */
.sim-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .25rem;
}

/* AYUDA / TEXTO PEQUEÑO */
.sim-help {
  font-size: .75rem;
  color: #9ca3af;
  margin-top: .2rem;
}

/* INPUTS AVANZADOS */
.sim-input-with-extra {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  overflow: hidden;
  background: #f9fafb;
  transition: all .16s ease;
}

.sim-input-prefix,
.sim-input-suffix {
  padding: .7rem .8rem;
  font-size: .82rem;
  color: #6b7280;
  background: #eef2ff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.sim-input-suffix {
  border-right: none;
  border-left: 1px solid #e5e7eb;
}

.sim-input {
  flex: 1;
  border: none;
  padding: .7rem .85rem;
  font-size: .95rem;
  background: transparent;
  color: #111827;
}

.sim-input:focus {
  outline: none;
}

.sim-input-with-extra:focus-within {
  border-color: #0b2f90;
  box-shadow: 0 0 0 1px rgba(11,47,144,0.15);
  background: #ffffff;
}

/* SECTION TITLE */
.sim-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: .4rem 0 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sim-section-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b2f90, #3b82f6);
}

/* RESULTADOS GRID */
.sim-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
  .sim-result-grid {
    grid-template-columns: 1fr;
  }
}

.sim-result-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem;
  background: radial-gradient(circle at top left, #ffffff, #f3f4f6);
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
  position: relative;
  overflow: hidden;
}

.sim-result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 55%);
  opacity: .7;
  pointer-events: none;
}

.sim-result-card.sim-result-good {
  border-left: 4px solid #16a34a;
}

.sim-result-card.sim-result-bad {
  border-left: 4px solid #b91c1c;
}

.sim-result-card.sim-result-highlight {
  grid-column: span 2;
  background: radial-gradient(circle at top left, #ecfdf3, #f0fdf4);
  border-color: #bbf7d0;
}

@media (max-width: 768px) {
  .sim-result-card.sim-result-highlight {
    grid-column: span 1;
  }
}

/* TEXTOS RESULTADOS */
.sim-result-label {
  font-size: .82rem;
  color: #6b7280;
}

.sim-result-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
  margin-top: .2rem;
  color: #111827;
}

.sim-result-extra {
  font-size: .8rem;
  color: #4b5563;
  margin-top: .15rem;
}

.sim-result-help {
  font-size: .75rem;
  color: #9ca3af;
  margin-top: .2rem;
}

/* COLORES DESTACADOS */
.sim-good {
  color: #16a34a;
}

.sim-bad {
  color: #b91c1c;
}

/* ESFUERZO BOX */
.sim-esfuerzo-box {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem;
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}

/* CTA ROW */
.sim-cta-row {
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* BOTONES */
.sim-btn-primary {
  background: linear-gradient(135deg, #0b2f90, #2563eb);
  color: white;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  border: none;
  font-weight: 650;
  cursor: pointer;
  font-size: .95rem;
  box-shadow: 0 12px 30px rgba(37,99,235,0.35);
  transition: all .18s ease;
}

.sim-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.45);
}

.sim-btn-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  font-weight: 500;
  font-size: .9rem;
  transition: all .16s ease;
}

.sim-btn-secondary:hover {
  background: #f3f4f6;
}

/* ANIMACIÓN */
@keyframes simFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.sim-badge-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .2rem;
}

.sim-badge-best {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.08);
  color: #15803d;
  border: 1px solid rgba(22,163,74,0.25);
  font-weight: 600;
}

/* ESFUERZO BOX VARIANTES  A VALORAR SI LO DEJAMOS*/
.sim-esfuerzo-box.sim-esfuerzo-ok {
  border-color: #86efac;
  background: radial-gradient(circle at top left, #ecfdf5, #f0fdf4);
}

.sim-esfuerzo-box.sim-esfuerzo-warning {
  border-color: #fde047;
  background: radial-gradient(circle at top left, #fefce8, #fef9c3);
}

.sim-esfuerzo-box.sim-esfuerzo-danger {
  border-color: #fca5a5;
  background: radial-gradient(circle at top left, #fef2f2, #fee2e2);
}
.sim-animate {
  animation: simPulse .45s ease-out;
}

@keyframes simPulse {
  0% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.sim-risk-box {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.sim-risk-title {
  font-size: .9rem;
  font-weight: 700;
  color: #374151;
}

.sim-risk-status {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: .3rem;
}

.sim-risk-desc {
  margin-top: .3rem;
  font-size: .85rem;
  color: #6b7280;
}

/* Estados dinámicos */
.sim-risk-ok {
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
}

.sim-risk-warning {
  border-color: #fde047;
  background: #fefce8;
  color: #b45309;
}

.sim-risk-danger {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}
/* BARRA DE ESFUERZO FINANCIERO */
.sim-effort-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: .8rem;
  overflow: hidden;
}

.sim-effort-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .4s ease, background .4s ease;
}
/* ICONOS PREMIUM */
.sim-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: .4rem;
  opacity: .85;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ICONO EURO (VERSIÓN CORRECTA) */
.sim-icon-euro {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b2f90' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 5.5a1 1 0 0 0-1-1h-2.09a5.5 5.5 0 0 0-5.3 4H5.5a1 1 0 1 0 0 2h1.41a5.5 5.5 0 0 0 0 2H5.5a1 1 0 1 0 0 2h1.61a5.5 5.5 0 0 0 5.3 4h2.09a1 1 0 1 0 0-2h-2.09a3.5 3.5 0 0 1-3.3-2h3.89a1 1 0 1 0 0-2H8.71a3.5 3.5 0 0 1 0-2h3.89a1 1 0 1 0 0-2H10.2a3.5 3.5 0 0 1 3.3-2h2.09a1 1 0 0 0 1-1z'/></svg>");
}

/*-------------------------------------------------------------------------------------------------------------------------*/
/*MODAL HIPOTECA*/
/* MODAL FULLSCREEN */
.hipoteca-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

/* CONTENEDOR PRINCIPAL */
.hipoteca-container {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    border-radius: 24px;
    padding: 50px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* BOTÓN CERRAR */
.hipoteca-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #4b5563;
}

/* CABECERA DE PROGRESO */
.hipoteca-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

#hipoteca-progress-percent {
    font-size: 16px;
    font-weight: 600;
    color: #0b2f90;
}

/* BARRA DE PROGRESO */
.hipoteca-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
}

#hipoteca-progress-bar {
    height: 100%;
    width: 0%;
    background: #0b2f90;
    border-radius: 999px;
    transition: width .4s ease;
}

/* WRAPPER DE PASOS */
#hipoteca-steps-wrapper {
    width: 100%;
    height: 100%;
}

/* CADA PASO */
.hipoteca-step {
    display: none;
    padding: 0 10px 40px 10px;
    overflow-y: auto;
    box-sizing: border-box;
}

.hipoteca-step.active {
    display: block;
}

.hipoteca-step h1 {
    font-size: 30px;
    margin-bottom: 12px;
    color: #0b2f90;
}

.hipoteca-step p {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
}

/* INPUTS */
.hipoteca-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.hipoteca-input:focus {
    border-color: #0b2f90;
    box-shadow: 0 0 0 1px rgba(11,47,144,0.15);
}

/* OPCIONES TIPO BOTÓN */
.hipoteca-options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.hipoteca-options button {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    transition: all .2s;
}

.hipoteca-options button:hover {
    border-color: #0b2f90;
    background: #eef2ff;
}

.hipoteca-options button.selected {
    border-color: #0b2f90;
    background: #e0e7ff;
    color: #0b2f90;
}

/* BOTÓN SIGUIENTE */
.hipoteca-btn-primary {
    background: #0b2f90;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
    transition: background .2s, transform .1s, box-shadow .2s;
}

.hipoteca-btn-primary:hover {
    background: #0a2675;
    box-shadow: 0 10px 25px rgba(11,47,144,0.35);
}

.hipoteca-btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* BOTÓN ATRÁS */
.hipoteca-btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    margin-right: 10px;
    transition: background .2s;
}

.hipoteca-btn-secondary:hover {
    background: #d1d5db;
}

/* CHECKBOXES FINALES */
.hipoteca-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hipoteca-container {
        height: 95vh;
        padding: 28px 20px 24px;
        border-radius: 18px;
    }

    .hipoteca-step h1 {
        font-size: 22px;
    }

    .hipoteca-step p {
        font-size: 14px;
    }

    .hipoteca-close {
        font-size: 28px;
        top: 12px;
        right: 16px;
    }
}
/* CAJA LEGAL */
.hipoteca-legal-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 20px 22px;
    border-radius: 14px;
    margin: 25px 0;
}

.hipoteca-legal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0b2f90;
    margin-bottom: 8px;
}

.hipoteca-legal-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 18px;
}

.hipoteca-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #374151;
}

.hipoteca-check input {
    margin-top: 3px;
}

.hipoteca-check a {
    color: #0b2f90;
    text-decoration: underline;
}

.hipoteca-legal-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    line-height: 1.4;
}

/* BOTONES DEL ÚLTIMO PASO */
.hipoteca-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.hipoteca-step {
    padding-bottom: 80px; /* ← IMPORTANTE para que los botones no desaparezcan */
}
/* =====================================================
   FIX FINAL MODAL HIPOTECA (NO ELIMINA NADA)
===================================================== */

/* El wrapper controla el alto real */
#hipoteca-steps-wrapper {
    flex: 1;
    overflow: hidden;
}

/* Cada paso puede hacer scroll completo */
.hipoteca-step {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 140px; /* espacio real para botones */
}

/* Botones del último paso siempre visibles */
.hipoteca-buttons {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 15px;
    padding-bottom: 10px;
    border-top: 1px solid #e5e7eb;
    z-index: 20;
}

/* Evita que el sticky quede tapado en móvil */
@media (max-width: 768px) {
    .hipoteca-step {
        padding-bottom: 160px;
    }
}
/* PRIVACIDAD SIMPLE */
.hipoteca-legal-simple {
    margin: 20px 0 30px;
    font-size: 14px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hipoteca-legal-simple label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.hipoteca-legal-simple input {
    margin-top: 3px;
    cursor: pointer;
}

.hipoteca-legal-simple a {
    color: #0b2f90;
    text-decoration: underline;
}

/* ================================
   BLOQUE PRIVACIDAD ATRACTIVO
================================ */

.hipoteca-legal-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 22px;
    margin: 25px 0 40px;
}

.hipoteca-legal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #0b2f90;
    margin-bottom: 14px;
}

.hipoteca-legal-icon {
    font-size: 18px;
}

.hipoteca-legal-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    cursor: pointer;
}

.hipoteca-legal-option:last-child {
    margin-bottom: 0;
}

.hipoteca-legal-option input {
    margin-top: 3px;
    cursor: pointer;
}

.hipoteca-legal-option a {
    color: #0b2f90;
    text-decoration: underline;
}

/* ================================
   BOTONES PRINCIPALES
================================ */

.hipoteca-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

/* BOTONES ATRÁS */
.hipoteca-btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.hipoteca-btn-secondary:hover {
    background: #d1d5db;
}

/* BOTONES SIGUIENTE / ENVIAR */
.hipoteca-btn-primary {
    background: #0b2f90;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, box-shadow 0.2s;
}

.hipoteca-btn-primary:hover {
    background: #0a2675;
    box-shadow: 0 6px 15px rgba(11,47,144,0.3);
}

.hipoteca-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   CONSENTIMIENTO / PRIVACIDAD
================================ */

/* Mini checkbox opcional para links de política */
.hipoteca-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    margin: 12px 0;
    cursor: pointer;
}

.hipoteca-consent input {
    margin-top: 3px;
    cursor: pointer;
}

.hipoteca-consent a {
    color: #0b2f90;
    text-decoration: underline;
}

/* Botones atractivos para aceptar / no aceptar privacidad */
.hipoteca-privacy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.hipoteca-btn-privacy {
    flex: 1;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #0b2f90;
    color: white;
    transition: all 0.2s;
}

.hipoteca-btn-privacy:hover {
    background: #0a2675;
    box-shadow: 0 6px 15px rgba(11,47,144,0.3);
}

.hipoteca-btn-privacy.hipoteca-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.hipoteca-btn-privacy.hipoteca-btn-secondary:hover {
    background: #d1d5db;
}

/* Nota de alerta si no acepta privacidad */
#hipoteca-privacy-alert {
    color: #dc2626;
    font-size: 13px;
    display: none;
    margin-top: 6px;
}

/* Link opcional a política de privacidad */
.hipoteca-privacy-note {
    font-size: 13px;
    color: #0b2f90;
    margin-bottom: 6px;
}

.hipoteca-privacy-note a {
    text-decoration: underline;
}



/*------------------------------------------------------------------------------------------------------------------------*/

/* Responsive */
/* Estilos generales */

/* Estilos responsivos */
@media (max-width: 768px) {
  .nav-item {
    margin-left: 0;
  }

  .nav-item::after {
    display: none;
  }

  /* .container-portada {
        margin: 100px auto !important;
        width: auto !important;
    } */

  .contenedor-interior {
    margin: 3rem auto !important;
    width: auto !important;
  }


}

/* Menú desplegable para pantallas pequeñas */
@media (max-width: 768px) {
  .nav-header {
    text-align: center;
  }

  .nav-header ul {
    padding: 0;
    list-style: none;
  }

  .nav-header li {
    display: block !important;
    margin-bottom: 10px !important;
  }

  .button-portada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Ajuste del botón destacado en móvil para que NO se vea más grande */
  .container-interior:nth-child(2) .button-portada {
    padding: 1.4rem 3.2rem;
    /* igual que los otros */
    font-size: 1.25rem;
    /* igual que los otros */
  }

  .container-button {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }

}

/* 🔓 LIBERAR CLICKS EN EL HEADER */
.header-responsive {
  position: relative;
}

/* Desactiva clicks en todo el header */


/* Reactiva clicks SOLO en los botones */
.container-button,
.container-button *,
.button-portada,
.button-portada * {
  pointer-events: auto !important;
  position: relative;
  z-index: 9998;
}

/*------------------------------*/
/* Por defecto (desktop): solo iconos visibles */
.tellamamos,
.tehablamos {
  display: none;
}

/* En móvil (pantallas ≤ 767px) mostrar texto junto al icono */
@media (max-width: 767px) {

  .tellamamos,
  .tehablamos {
    display: inline;
    margin-left: 0.5rem;
    /* espacio entre icono y texto */
    font-weight: 600;
    font-size: 1rem;
    /* ajusta tamaño si quieres */
  }

  /* Ajustamos los botones para que tengan más espacio horizontal */
  .content-button-fixed {
    padding: 0.8rem 1rem;
  }
}

/*-------------------------------------------------*/


/* <--------------> */
/* @media (max-width: 768px) {
    .content-header {
        height: 50vh; 
    }
} */

@media (max-width: 768px) {
  .card {
    height: 50vh;
    margin-bottom: 2rem;
    /* Ajusta la altura para pantallas más pequeñas */
  }
}

/* Media query para ajustar estilos en pantallas pequeñas */
/* Sección vender piso */
@media (max-width: 1133px) {
  .titulo-venderpiso {
    font-size: 2rem;
    /* Tamaño de fuente ajustado para títulos en pantallas pequeñas */
    margin-top: 2rem;
    letter-spacing: 1px;
  }

  .parrafo-venderpiso {
    font-size: 1.1rem;
    /* Tamaño de fuente ajustado para párrafos en pantallas pequeñas */
  }

  #columna-none {
    display: none;
  }

  #columna-valida {
    margin-bottom: 2rem !important;
    width: 100%;
    z-index: 1;
  }

  .content-venderpiso {
    padding: 2rem 1rem 2rem 1rem;
  }

  .main2 {
    position: relative;
    margin-top: 2rem;
    height: 500px;
    background-image: url("Imagenes/parejafondorosado.png");
    background-size: cover;
    background-position: left top;
    margin-bottom: 0rem;
  }

  .main2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(241, 237, 237, 0),
        rgba(0, 0, 0, 0.5));
    z-index: 0;
  }
}

@media (max-width: 767px) {
  .main2 {
    background-image: url(Imagenes/2.png);
  }
}

/* seccion fija inferior */
@media (max-width: 767px) {
  .div-content-fixed {
    border-top: 1px solid grey;
  }
}

@media (min-width: 767px) {
  .div-content-fixed {
    background-color: transparent;
    justify-content: end !important;
  }

  .content-button-fixed {
    width: 4.5rem;
    /* Ajusta el ancho según sea necesario */
    height: 4.5rem;
    /* Ajusta la altura según sea necesario */
    border-radius: 50%;
    /* Esto hace que el borde tenga forma de círculo */
    margin-right: 2rem;
  }

  .icon-fixed {
    font-size: 1.9rem;
  }

  #content-phone {
    margin-right: 1rem !important;
  }
}

/* CARRUSEL RESPONSIVE */
@media (max-width: 1133px) {
  .titulo-main {
    margin-bottom: 2rem;
    margin-right: 0.6rem;
  }

  /* #content-card-carousel{
    border-radius: 30px;
   } */
}

/* que ofrecemos */

@media (max-width: 767px) {
  .content-que-ofrecemos {
    align-items: none;
    justify-content: none;
    display: flex none;
    padding: 0rem;
    flex-direction: column;
  }

  .content-left-que-ofrecemos {
    margin-left: 0.5rem;
    margin-bottom: 0px;
  }

  .content-right-que-ofrecemos {
    margin-left: 0.5rem;
    margin-bottom: 0;
    margin-top: 0;
  }

  .content-inside {
    margin-left: 0rem;
  }

  #container-button-ofrecemos {
    margin-top: 0;
    margin-bottom: 10rem;
    background-color: none;
  }
}

@media (max-width: 1100px) {
  .content-que-ofrecemos {
    align-items: none;
    justify-content: none;
    display: flex none;
    padding: 0rem;
    flex-direction: column;
  }

  .content-left-que-ofrecemos {
    margin-left: 0.5rem;
    margin-bottom: 0px;
  }

  .content-right-que-ofrecemos {
    margin-left: 0.5rem;
    margin-bottom: 0;
    margin-top: 0;
  }

  .content-inside {
    margin-left: 0rem;
  }

  #container-button-ofrecemos {
    margin-top: 0;
    margin-bottom: 10rem;
    background-color: none;
  }
}

/* vendertucasa */
@media (max-width: 767px) {
  .vendertucasa {
    background-position: center;
  }
}

@media (min-width: 767px) {
  .div-card:hover {
    transform: scale(1.1);
  }
}


/* SECCION TASACION GRATUITA */
/* FORM */
@media (max-width: 767px) {
  .row.justify-content-center {
    flex-direction: column;
    align-items: center;
  }

  .col-md-7.content-principal-venderpiso-left {
    margin-bottom: 20px;
  }

  .col-md-5 {
    width: 100%;
  }

  .seccion-gratuita {
    margin-bottom: 31rem !important
  }
}

/* CARDS EXPLICATIVAS */
@media (max-width: 767px) {
  .button-cards-explicativas {
    margin-top: 2rem;
  }

  .button-cards-explicativas1 {
    margin-top: 2rem;
  }

  .cuerpo-card {
    margin-top: 1rem;
  }
}

/* ============================= */
/* 📱 TÍTULOS PORTADA EN REM (MÓVIL) */
/* ============================= */

@media (max-width: 768px) {

  h1.title-portada {
    font-size: 2.1rem;

  }

  h1.title-portada .highlight-portada {
    font-size: 1.8rem;

  }

  h3.subtitle-portada {
    font-size: 1.8rem;

  }

}

@media (max-width: 661px) {

  h1.title-portada {
    font-size: 1.7rem;

  }

  h1.title-portada .highlight-portada {
    font-size: 1.4rem;

  }

  h3.subtitle-portada {
    font-size: 1.4rem;

  }

  .contenedor-interior {
    margin: 1rem auto !important;
    width: auto !important;
  }

}