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

:root {
    --body-font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1{
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #5F707E;
    text-align: center; 
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1.3px;
}
h2{
    color: #515355;
    font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700; 
    margin-bottom: 10px;
    margin-top: 16px;
    letter-spacing: .025em;
}
P{
   font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #303030;
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
   line-height: 1.9;
   letter-spacing: .025em;
   font-weight: 300;

}

/*.subtitle {
  max-width: 1038px;
}*/
#banner-sub{
  max-width: 713px; 
  margin: 0 auto;   
  line-height: 1.5; 
}
a {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #7D8892;
    text-decoration: none !important; 
}

a:hover {
    color: inherit; 
}

a:not([class]) {
    text-decoration: underline; 
}

a.navbar-brand {
    color: var(--cassiopeia-color-brand); 
}
.tabs .tab {
  background: #e0e0e0;
  border: none;
  padding: 10px 18px;
  font-weight: 500  !important;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px 2px 0 0;
}
/***************************************************************************************HEADER*****************************************************************************/

/* =========================================
   TOPBAR / IDIOMAS (ESCRITORIO)
========================================= */
/* Tamaño banderas GTranslate */
.gtranslate_wrapper .glink img {
  width: 25px;
  height: 25px;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

/* Botón idioma actual */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0px;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.lang-toggle .lang-flag img {
  width: 18px;
  height: 18px;
}

.lang-toggle .lang-arrow {
  font-size: 10px;
  opacity: 0.7;
}

/* Menú desplegable idiomas */
.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  min-width: 77px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Idiomas abierto */
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Items del menú idiomas */
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
}

.lang-menu li a .lang-flag img {
  width: 18px;
  height: 18px;
}

.lang-menu li a .lang-code {
  text-transform: uppercase;
}

.lang-menu li a:hover {
  background: #ededed;
  color: #ffffff;
}

/* Topbar base */
.container-topbar {
  text-align: right;
  color: #7C8792;
  background: #EDEDED;
  padding: 6px;
}

/* Contenido derecho de la topbar */
.div-derecha {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.div-derecha img {
  width: auto;
  height: 20px;
}

.div-derecha p {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

/* =========================================
   NUEVA CABECERA (ESTILO ASESORÍA JF ADAPTADO)
========================================= */
.header.container-header {
    width: 100%;
    background: #ffffff;
    z-index: 1500;
    display: block; /* Anula el grid viejo si quedaba algún rastro */
}

.jaula-cabecera {
    width: 100%;
    max-width: 1324px; 
    margin: 0 auto;
    padding: 10px 20px;
}

/* TAMAÑO LOGO */
.brand-logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

/* MENÚ ESCRITORIO */
.container-nav .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.container-nav .mod-menu > li > a {
    color: #5f5f5f;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.container-nav .mod-menu > li > a:hover {
    color: #000000;
}

/* ANIMACIÓN SUBRAYADO (Desktop) */
@media (min-width: 992px) {
    .container-nav .mod-menu > li:not(.item-119) > a {
        position: relative;
    }
    .container-nav .mod-menu > li:not(.item-119) > a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #000000;
        transition: width 0.3s ease, left 0.3s ease;
    }
    .container-nav .mod-menu > li:not(.item-119) > a:hover::after {
        width: 100%;
        left: 0;
    }
}

/* BOTÓN CONTACTO GRIS (item-119) */
.container-nav .mod-menu .item-119 > a {
    background-color: #7D8892 !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 3px;
    transition: background-color 0.3s ease !important;
}
.container-nav .mod-menu .item-119 > a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* =========================================
   MENÚ MÓVIL (DESLIZABLE Y FONDO OSCURO)
========================================= */
/* Ocultar elementos móviles en ordenador */
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
}

@media (max-width: 991.98px) {
    /* Logo en móvil */
    .brand-logo img {
        max-width: 160px;
    }

    /* Botón Hamburguesa */
    .navbar-toggler {
        border: none;
        background: transparent;
        color: #5f5f5f;
        cursor: pointer;
        padding: 5px;
    }
    .navbar-toggler .icon-menu::before {
        content: "\2630"; /* Icono ☰ */
        font-size: 28px;
    }

    /* Fondo oscuro protector */
    .fondo-oscuro-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1040;
        display: none;
    }
    .navbar-collapse.show ~ .fondo-oscuro-menu {
        display: block; 
    }

    /* Contenedor del menú lateral deslizable */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0; 
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        padding: 20px;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    .navbar-collapse.show {
        transform: translateX(0); 
    }

    /* Cabecera interna del móvil (Logo + X) */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
        width: 100%;
    }
    .btn-cerrar-menu {
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        padding: 5px;
    }

    /* Lista de enlaces en móvil */
    .container-nav .mod-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    .container-nav .mod-menu > li {
        width: 100%;
    }
    .container-nav .mod-menu > li > a {
        display: block;
        width: 100%;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Botón contacto móvil */
    .container-nav .mod-menu .item-119 > a {
        text-align: center;
        margin-top: 25px;
        border-bottom: none;
    }
    
    /* Bloquear scroll al abrir menú */
    body.menu-open {
        overflow: hidden;
    }
}

/***************************************************************************************CONTENEDOR BANNER*****************************************************************************/


/*====================================================
  BANNER: IMAGEN + CAPA DE COLOR + TEXTO
=====================================================*/

/* Capa de color semitransparente encima de la imagen del banner */
.camera_overlayer {
    background-color: rgba(95, 112, 126, 0.35); 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; 
}

/* Contenedor de la imagen de fondo (banner) */
.camera_target {
    position: relative;
    z-index: 0; 
}

/* Contenedor del banner (asegura posición relativa para overlays) */
.container-banner {
    position: relative;
}

/* Texto que aparece encima del banner */
#mod-custom129 {
    position: absolute;
    top: 53%;                     
    left: 50%;                    
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1000;                
}

/* Estilo del título del banner */
#mod-custom129 h1 {
    color: #fff;
}

/*====================================================
  TARJETAS / CONTENEDORES
=====================================================*/

/* Quita el borde de las tarjetas globales */
.card {
    --card-border-width: 0; 
}

/* Margen inferior de un módulo concreto */
div#mod-custom123 {
    margin-bottom: 37px;
}

/* Si el navegador soporta CSS Grid */
@supports (display: grid) {

    /* Cualquier elemento con .full-width ocupa todo el ancho del grid */
    .site-grid > .full-width {
        grid-column: full-start / full-end;
        margin-bottom: -110px;
    }
}

/* Contenedor superior de banda tipo banner */
.container-top-b {
    grid-column: full-start / full-end;
}

/* Tarjeta superior tipo “hoja” */
.top-b.card.hoja {
    margin-top: 80px;
}

/* Contenedor inferior de banda tipo banner */
.container-bottom-b {
    grid-column: full-start / full-end;
}

/* Contenedor central tipo hoja (máximo ancho) */
.hoja {
    max-width: 1324px;
    margin: auto;
}


/*====================================================
  BREADCRUMB
=====================================================*/

/* Quita el texto "Está aquí:" */
.mod-breadcrumbs__here {
    display: none;
}

/* Estilo general del wrapper */
.mod-breadcrumbs__wrapper {
    font-size: 12px;
    max-width: 1348px;
    margin: 0 auto;
}

/* Estilo del listado de migas */
.mod-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cada ítem de la ruta */
.mod-breadcrumbs__item {
    display: flex;
    align-items: center;
    color: #999;
}

/* Ítems no activos como enlaces */
.mod-breadcrumbs__item a {
    color: #bbb;
    text-decoration: none;
}

.mod-breadcrumbs__item a:hover {
    color: #ccc;
}

/* Fondo del breadcrumb (si viene de Bootstrap) */
.breadcrumb {
    background: none;
}

/* Texto de migas en minúscula */
.mod-breadcrumbs__item span,
.mod-breadcrumbs__item a {
    text-transform: lowercase !important;
}

/* Primera letra en mayúscula */
.mod-breadcrumbs__item span::first-letter,
.mod-breadcrumbs__item a::first-letter {
    text-transform: uppercase !important;
}


@media (max-width: 768px) {
    #camera_wrap_118 {
        height: 200px !important; 
    }

  
}

#mod-custom123 p {
    padding-left: 24px;
    padding-right: 24px;
}

/***************************************************************************************MODULO 2 (POR QUE ELEGIRNOS)*****************************************************************************/
.top-b.card.Ofrece  {
    background-color: #EDEDED; 
}
.benefits-section{
    background-color:#EDEDED;
    padding:40px 20px 20px;

}
.contenedor {
    display: flex;
    justify-content: space-between; 
    gap: 20px; 
    flex-wrap: wrap; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
}
.tarjeta {
    flex: 1; 
    min-width: 250px;
    max-width: 280px; 
    text-align: center; 

}
.tarjeta img {
    width: 80px; 
    height: auto;
    margin-bottom: 20px;
}
/* Diseño adaptable para pantallas más pequeñas */
@media (max-width: 768px) {
    .contenedor {
        justify-content: center; 
    }

    .tarjeta {
        flex: none; 
        width: 100%; 
        max-width: 400px; 
    }
}
/***************************************************************************************MODULO 3 (ASTURIAS TE ESPERA)*****************************************************************************/

.propiedades {
    text-align: center;
    padding: 40px 20px;
}
.propiedades h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.propiedades p {
   font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #303030;
    margin-bottom: 30px;
    text-align: center;
}
/* GRID PARA ALINEAR LOS ELEMENTOS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}
.grid-item.apartamentos {
    grid-column: span 2; 
}
/* CADA ELEMENTO DEL GRID */
.grid-item {
    position: relative;
    overflow: hidden;
}
.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
/* EFECTO HOVER PARA DESTACAR LA IMAGEN */
.grid-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}
/* OVERLAY PARA CENTRAR TEXTO Y BOTÓN */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; 
    text-align: center;
    opacity: 1;
}
/* ESTILO DEL TEXTO EN EL OVERLAY */
.overlay span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
/* ESTILO DEL BOTÓN */
.overlay button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 8px 57px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.overlay button:hover {
    background: white;
    color: black;
}
/* CONTENEDOR DEL BOTÓN FINAL */
.btn-container {
    margin-top: 30px;
    text-align: center;
}
/* BOTÓN "VER MÁS" */
.btn-mas {
    background: #7D8892;
    color: white;
    padding: 10px 40px;
    border: none;
    cursor: pointer;
    display: inline-block; 
    margin: 20px auto; 
    text-align: center;
}
.btn-mas:hover {
    background: #333;
	 color:white;
}
/* RESPONSIVIDAD - Ajuste de la cuadrícula para pantallas más pequeñas */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr; 
    }
    .grid-item.apartamentos {
        grid-column: span 1; 
    }
}
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr; 
    }
    .grid-item.apartamentos {
        grid-column: span 1; 
    }
}

/***************************************************************************************FICHAS, (INMUEBLES DESTACADOS)*****************************************************************************/
/* Contenedor de tarjetas en 3 columnas */
.mod-articles-items.mod-articles-grid.grid-cols-3.mod-list {
    max-width: 1324px; 
    margin: 0 auto;     
    padding: 0 20px;    
}

@media (max-width: 768px) {
.com-content-category-blog__item.blog-item {
    flex-direction: column;
    text-align: center;
    }
.item-image {
    max-width: 100%;
    }
.fields-container {
    grid-template-columns: 1fr;
    }
}
.mod-articles-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mod-articles-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
.mod-articles-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.mod-articles-image img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
}
.field-entry {
    padding: 6px 0;
    font-size: 14px;
}
.field-label {
    font-weight: bold;
    color: #444;
}
.field-value {
    color: #666;
}
.readmore {
    text-align: center;
}
.readmore a:hover {
    background: #4b5563;
}
.bottom-b.card.destacados{
    background: #EDEDED;
    padding-top: 40px;
    padding-bottom: 22px;
    margin-bottom: 100px;
}
/*logo ubicacion*/
li.field-entry.ubicacion::before {
    background-image: url('ubicacionficha.png');
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}
/*logo baños*/
li.field-entry.numero-de-banos::before {
    background-image: url('banos.png');
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}
/*logo metros cuadrados*/
li.field-entry.superficie-total::before {
    background-image: url('metros.png');
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}
/*logo habitacion*/
li.field-entry.numero-de-dormitorios::before {
    background-image: url('dormitorio.png');
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 6px;
}
/* 1) Asegúrate de que el contenedor padre sea 'position: relative'
   para que el botón se posicione dentro de él */
.mod-articles-item-content {
    position: relative;
    overflow: hidden; 
}
/* 2) El <p class="readmore"> se posiciona encima, ocupando todo el espacio,
     con fondo semitransparente y centrado */
.mod-articles-item-content .readmore {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;                      
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);        
    opacity: 0;                         
    transition: opacity 0.3s ease-in-out;
    z-index: 2;                        
}
/* 3) Al hacer hover sobre todo el bloque (o solo la imagen si prefieres),
     el botón aparece */
.mod-articles-item-content:hover .readmore {
    opacity: 1;
}

/* 4) Ajusta el estilo interno del botón para que sea visible
     sobre el fondo oscuro */
.mod-articles-item-content .readmore .btn.btn-secondary {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 8px 57px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;   
    border-radius: 0px;         
}
  /* 1) Asegurarnos de que el contenedor de la imagen sea relativo */
.mod-articles-image {
    position: relative;
    overflow: hidden; /* Evita que el overlay se desborde */
}
.mod-articles-item-content .readmore .btn.btn-secondary:hover {
    background: white;
    color: black;
}
.btn.btn-secondary {
    /*background-color: #7D8892 !important;
    color: white !important;*/
    padding: 10px 40px;
    border: none;
    cursor: pointer;
    display: inline-block; 
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease; /* Hace que el cambio a negro sea suave */
}

/* Efecto al pasar el ratón (Hover) */
.btn.btn-secondary:hover {
    /*background-color: #000000 !important;*/
    color: color: #000000 ;
    text-decoration: none;
}

.btn.btn-secondary:hover {
    text-decoration: none; 
}
.icon-chevron-right {
    display: none; 
}
li.field-entry.numero-de-dormitorios .field-value {
    display: flex;
    align-items: center;
}
li.field-entry.numero-de-dormitorios .field-value::before {
    margin-right: 5px;
}
li.field-entry.numero-de-dormitorios {
    text-align: left;
}
li.field-entry.numero-de-banos {
    display: inline-block;
    white-space: nowrap;
    width: auto;
}
.numero-de-banos {
    max-width: 80px;
}
.fields-container {
    gap: 5px;
}
/* Contenedor principal en grid */
.fields-container {
    list-style: none;
    padding: 0;
    margin: 10px;
    display: grid;
    grid-template-columns: 3fr 2fr 5fr; 
    gap: 5px 10px;
    align-items: center;
}
/* Primera fila: Tipo de propiedad y Precio */
.tipo-de-propiedad {
    grid-column: 1;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}
.precio {
    grid-column: 3;
    font-size: 18px;
    font-weight: bold;
    text-align: right;
    color: #000;
}
/* Segunda fila: Ubicación (ocupa las tres columnas) */
.ubicacion {
    grid-column: span 3;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}
/* Tercera fila: Dormitorios, Baños y Superficie */
.numero-de-dormitorios {
    grid-column: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-align: left;
}
.numero-de-banos {
    grid-column: 2;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-align: center;
}
.superficie-total {
    grid-column: 3;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-align: right;
}
/* Estilos RESPONSIVOS para móviles */
@media (max-width: 768px) {
    .fields-container {
        grid-template-columns: 1.5fr 1fr 0fr; 
    }
    .ubicacion {
        grid-column: span 3;
    }
    .numero-de-dormitorios,
    .numero-de-banos,
    .superficie-total {
        text-align: left;
    }
    .precio {
        text-align: left;
    }
}
li.field-entry.numero-de-dormitorios .field-value {
    display: flex;
    align-items: center;
}
li.field-entry.numero-de-dormitorios .field-value::before {
    margin-right: 5px;
}
li.field-entry.numero-de-dormitorios {
    text-align: left;
}
li.field-entry.numero-de-banos {
  
    display: inline-block;
    white-space: nowrap;
    width: auto;
}
.numero-de-banos {
    max-width: 80px;
}
.fields-container {
    gap: 5px;
}

/***************************************************************************************CONTACTO*****************************************************************************/


/* Bloque gris de fondo */
.contact-section {
  padding: 40px 95px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Contenedor interior: formulario + info */
.contact-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
}

/* Columna izquierda: formulario */
.contact-section__form {
  flex: 0 0 60%;
}

/* Columna derecha: info de contacto */
.contact-section__info {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  color: #515355;
  margin-top: 13%;
}

/* ===== FORMULARIO ===== */

.contact-form {
  width: 100%;
}

/* Grupos */
.contact-form__group {
  margin-bottom: 15px;
}

/* Grupos dobles (apellido/nombre, teléfono/email) */
.contact-form__group--two {
  display: flex;
  gap: 10px;
}

.contact-form__field {
  flex: 1;
}

/* Inputs y textarea solo en CONTACTO */
.contact-section input[type="text"],
.contact-section input[type="tel"],
.contact-section input[type="email"],
.contact-section textarea {
  font-family: var(--body-font-family);
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border 0.3s ease-in-out;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #888;
  font-style: italic;
}

.contact-section input:focus,
.contact-section textarea:focus {
  border: 2px solid #000;
  outline: none;
}

/* Aceptación de privacidad */
.contact-form__acceptance {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.contact-form__acceptance label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.contact-form__acceptance input[type="checkbox"] {
  transform: scale(1.1);
}

/* Botón enviar */
.contact-form__submit {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: block;
  background-color: #7D8892;
  color: #ffffff;
  padding: 10px 30px;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px auto 0;
}

.contact-form__submit:hover {
  background-color: #000000;
}

/* ===== INFO DE CONTACTO ===== */

.contact-info__line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info__icon {
  width: 55px;
  height: auto;
}

.contact-info__line a {
  color: #515355;
  text-decoration: none;
}

.contact-info__line a:hover {
  text-decoration: underline;
}
/* Ocultar el h1 "CONTACTO" de la salida del artículo en esa página */
.com-content-article .page-header {
    display: none;
}


/******************************************
 * CONTACTO – RESPONSIVE (MÓVIL)
 ******************************************/

@media (max-width: 768px) {

  .contact-section {
    padding: 30px 24px 40px;
  }

  /* Formulario + info en columna, centrados */
  .contact-section__inner {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }

  .contact-section__form,
  .contact-section__info {
    flex: 0 0 100%;
    max-width: 500px;
    width: 100%;
  }

  /* Grupos dobles a una sola columna */
  .contact-form__group--two {
    flex-direction: column;
    gap: 10px;
  }

  .contact-section input[type="text"],
  .contact-section input[type="tel"],
  .contact-section input[type="email"],
  .contact-section textarea,
  .contact-section button {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-section__info {
    align-items: center;
    text-align: center;
  }

  /* Icono encima del texto y centrado */
  .contact-info__line {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}


/******************************************
 * 6. MAPA RESPONSIVE
 ******************************************/

/* Contenedor del mapa embebido */
.mapa-responsive {
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1320px;
    height: 400px;  /* ALTURA FIJA EN ESCRITORIO */
}

/* Iframe del mapa ocupa todo el contenedor */
.mapa-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


@media screen and (max-width: 768px) {
    .mapa-responsive {
        height: 0;
        padding-bottom: 56.25%; 
    }
}
/* CORRECCIÓN: que el breadcrumb no tenga margen negativo */
.site-grid > .container-banner.full-width {
  margin-bottom: 0;     
  position: relative;
  z-index: 2;          
}


/***************************************************************************VALORA TU INMUEBLE****************************************************************/

/* Fondo y alineación general */
.valora-section {
  padding: 40px 20px 60px;
  background-color: #EDEDED;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #515355;
}

/* Cabecera (título + subtítulo) */
.valora-section__header {
  text-align: center;
  margin-bottom: 40px;
}

/* Cuerpo: dos columnas (beneficios + formulario) */
.valora-section__body {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px;
  border-radius: 4px;
}

/* ============================
   COLUMNA IZQUIERDA: BENEFICIOS
   ============================ */

.valora-section__benefits {
  flex: 0 0 40%;
  margin-top: 11%;
}

.valora-benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.valora-benefit__icon {
  width: 68px;
  height: auto;
}

.valora-benefit__text strong {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.valora-benefit__text p {
  margin: 0;
  text-align: left;
   color: #303030;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
   line-height: 1.9;
   letter-spacing: .025em;
   font-weight: 300;
}

/* ============================
   COLUMNA DERECHA: FORMULARIO
   ============================ */

.valora-section__form-wrapper {
  flex: 0 0 55%;
  display: flex;
  justify-content: flex-end;
}

/* Tarjeta blanca del formulario (solo escritorio) */
.valora-form {
  width: 100%;
  max-width: 520px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #515355;
}

.valora-form h2 {
  font-size: 16px;
  margin: 15px 0 10px;
}

/* Grupos de formulario */
.valora-form__group {
  margin-bottom: 12px;
}

/* Grupos de dos columnas (tipo/superficie, apellido/nombre, etc.) */
.valora-form__group--two {
  display: flex;
  gap: 10px;
}

.valora-form__field {
  flex: 1;
}

/* Inputs, select y textarea SOLO en esta sección */
.valora-section input[type="text"],
.valora-section input[type="tel"],
.valora-section input[type="email"],
.valora-section input[type="number"],
.valora-section select,
.valora-section textarea {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.3s ease-in-out;
  font-family: inherit;
}

/* Placeholder */
.valora-section input::placeholder,
.valora-section textarea::placeholder {
  color: #888;
  font-style: italic;
}

/* Focus */
.valora-section input:focus,
.valora-section select:focus,
.valora-section textarea:focus {
  border: 2px solid #000;
  outline: none;
}

/* Textarea */
.valora-section textarea {
  min-height: 120px;
  resize: vertical;
}

/* Botón enviar */
.valora-section #buttonForm,
.valora-form__submit {
  background-color: #7D8892;
  color: #ffffff;
  padding: 10px 30px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
  display: block;        
  margin: 20px auto 0; 
}

.valora-section #buttonForm:hover,
.valora-form__submit:hover {
  background-color: #000000;
}
.contact-info__line {
  font-weight: 500;
}



/******************************************
 * VALORA TU INMUEBLE – RESPONSIVE (MÓVIL)
 ******************************************/

@media (max-width: 768px) {

  /* Un poco menos de padding general */
  .valora-section {
    background-color: #ededed;     
    padding: 20px 24px 40px;
  }

  /* Cuerpo en columna y sin “banda” marcada */
  .valora-section__body {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0;                   
  }

  .valora-section__benefits,
  .valora-section__form-wrapper {
    flex: 0 0 100%;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  /* En móvil el formulario vuelve a ser plano, sin tarjeta */
  .valora-section__form-wrapper {
    justify-content: center;
  }

  .valora-form {
    background: none;             
    box-shadow: none;           
    padding: 0;                   
    max-width: 100%;
  }

  /* Grupos dobles en una sola columna */
  .valora-form__group--two {
    flex-direction: column;
    gap: 10px;
  }

  /* Campos y botón a ancho completo */
  .valora-section input,
  .valora-section select,
  .valora-section textarea,
  .valora-section button {
    width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }
}

/*********************************************************************************RESEÑAS****************************************************************************/
/* Oculta el título "What Our Customers Say" del widget de reseñas */
/*.WidgetTitle__Header-sc-c581efe-2.hRlhFZ {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
h1.bb-titulo {
    margin-bottom: 2%;
    margin-top: 2%;
}*/

/***************************************************************************************FOOTER*****************************************************************************/
.footer {
    color: #515355;
    padding: 0;
    font-family: Helvetica, sans-serif, sans-serif;
    background: none;
    background-color: #ffffff !important;
	padding-top: 30px;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
.grid-child {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    width: auto;
}
.footer .grid-child{
    padding:0 !important;
    align-items: unset;
    max-width: 100%;
}
/* Contenedor general del footer */
.footer-container {
    max-width: 1320px; 
    margin: 0 auto;
    display: flex; 
    flex-direction: row; 
    justify-content: space-around; 
    flex-wrap: wrap; 
}
.footer-container a {
   /* Agrega espacio a la derecha de cada enlace */
    text-decoration: none;
    color: #333;
}
/* BLOQUE 1 */
.contenedorfooter1 {
    background-color: #7D8892; 
    color: white;
    justify-content: space-around;
    align-items: center;
    padding: 50px 0px 50px 0px;
    margin-bottom: 50px;
}
/* Estilo para cada elemento del footer */
.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Tamaño de los iconos */
.footer-icon {
    width: 34px; 
    height: auto;
}
/* Estilo del texto */
.contenedorfooter1 p {
    font-size: 16px;
    font-weight: lighter;
    margin: 0;
    color: #ffff;
    text-align: left;
}
/* BLOQUE 2 */
.contenedorfooter2 {
    background-color: #EDEDED; 
    justify-content: space-around;
    align-items: center;
    padding: 30px 10px;
    
}
ul{
    color: #515355;
}
.contenedorfooter2 ul {
    list-style: none;
    padding: 0;
}
.contenedorfooter2 ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}
footer .contenedorfooter2 li {
    margin-bottom: 8px; 
}
/* Estilos generales para enlaces en el footer */
footer .contenedorfooter2 a,
footer .footer-bottom a {
    color: inherit !important; 
    text-decoration: none !important; 
    position: relative;
    padding-bottom: 2px; 
}
/* Línea animada */
footer .contenedorfooter2 a::after,
footer .footer-bottom a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px; 
    background-color: currentColor; 
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}
/* Animación al hacer hover */
footer .contenedorfooter2 a:hover::after,
footer .footer-bottom a:hover::after {
    width: 100%;
    left: 0;
}
/* BLOQUE 3: Logo */
.footer-logo {
    background-color:#EDEDED; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 20px 0; 
}
.footer-logo img {
    width: 75px; 
    height: auto;
}

/* BLOQUE 5: Enlaces inferiores */
.footer-bottom {
    
    background-color: #EDEDED; 
    text-align: center;
    padding: 10px;
}
.footer-bottom a {
    color: #333;
    text-decoration: none;
    margin: 0 8px;
    font-size: 16px;
}
@media (max-width: 768px) {
.footer-container {
    flex-direction: column;    
    align-items: center;       
    justify-content: center;   
    text-align: center;        
    }
/* Para que cada bloque se separe un poco entre sí */
.footer-item,
.contenedorfooter2 > div,
.footer-bottom > .footer-container > p {
    margin-bottom: 15px; 
    }
    .footer-icon {
    width: 24px; 
    }
}

  /******************************************
 * FOOTER – BLOQUE 1 RESPONSIVE
 ******************************************/
@media (max-width: 768px) {

  /* Los 3 items, uno debajo de otro y centrados */
  .contenedorfooter1 .footer-container {
    flex-direction: column;       
    align-items: center;           
    text-align: center;            
    gap: 20px;
  }

  /* Cada item: icono encima del texto y centrado */
  .contenedorfooter1 .footer-item {
    display: flex;
    flex-direction: column;       
    align-items: center;           
    justify-content: center;
  }

  .contenedorfooter1 .footer-icon {
    margin-bottom: 6px;           
  }

  .contenedorfooter1 .footer-item p {
    text-align: center;            
    margin: 0;
  }
}


.footer-bottom p a:last-child {
    margin: 0 !important;
}
@media (max-width: 991.98px) {
    .footer-social {
        justify-content: center !important;
        width: 100% !important;
    }
}
/**********************************MULTIMEDIA***********************************/
.com-content-article h1,
.com-content-article p {
    text-align: left;
}
.com-content-article li {
    list-style-type: none;

}
/***********FICHA****/
.precio-in h1{
    font-size: 36px;
}
.detalles-propiedad h3,
.características-energéticas h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}
.detalle-propiedad-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}
.detalle-propiedad-contenedor {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 1 0 auto;
    min-width: 200px;
    margin: 15px 0px;
    border-bottom: 1px solid #ccc;
}
.detalle-propiedad-label {
    color: #777;
    flex-shrink: 0;
    width: 150px;
    font-weight: 600;
}

.detalle-propiedad-valor {
    color: #333;
    margin-left: 64px;
}
/* Opcional: eliminar los estilos de la lista ul si no son deseados */
.detalles-propiedad ul,
.características-energéticas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.informacion-adicional{
    background-color: #EDEDED;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 50px 0px 50px 0px;
    
}
.detalles-propiedad{
    margin-bottom: 40px

}
span.detalle {
    margin-right: 20px;
    background: #EDEDED;
    padding: 6px;
    border-radius: 3px;
}
.listaCarter {
    margin-top: 20px;
    margin-bottom: 50px;
}
.descripcion {
    margin-bottom: 50px;
}
.precio-in{
    margin-bottom: 20px;

}
.multimedia{
    margin-bottom: 30px;
}
.ubicacion-in{
    margin-top: 50px;
}



/* Contenedor de las “píldoras” */
.listaCarter {
  display: flex;
  flex-wrap: wrap;       

}

/******verison item**/
.lista-campos-generales {
  display: flex;
  flex-wrap: wrap;       
  gap: 12px 32px;        
  list-style: none;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.campo-generico {
  display: flex;
  align-items: center;
  gap: 8px;               
  font-size: 14px;
  color: #444;
}

.icono-campo {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

/* un icono distinto según el tipo */
.habitaciones .icono-campo {
  background-image: url('habitacion.png');
}

.dormitorios .icono-campo {
  background-image: url('dormitorio.png');
}

.banos .icono-campo {
  background-image: url('banos.png');
}

.metros .icono-campo {
  background-image: url('metros.png');
}

/* Versión responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .listaCarter {
    justify-content: flex-start;
  }

  /* Que las píldoras puedan usar media línea cada una */
  .detalle {
    white-space: normal;         
    flex: 0 1 calc(50% - 10px);  
    text-align: center;
    gap: 8px 10px;        
    margin: 10px 0 0;
  padding: 0;
  }
}
/* ============================
   SOLO MÓVIL – Detalles propiedad
============================ */
@media (max-width: 768px) {

  /* El bloque completo un poco más estrecho y compacto */
  .informacion-adicional {
    padding: 16px 15px;
  }

  /* Cada fila: una sola columna, poco espacio */
  .detalle-propiedad-contenedor {
    display: block;       
    padding: 6px 0;          
    border-bottom: 1px solid #eee;
  }

  .detalle-propiedad-label {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;        
    text-align: left;
  }

  .detalle-propiedad-valor {
    font-size: 14px;
    margin: 0;
    text-align: left;      
  }
}
/* ---------------------------------
   FICHA PROPIEDAD (MENÚ ID 105)
   --------------------------------- */



/* 2) Centrar TODOS los bloques de la ficha excepto la banda gris (.informacion-adicional) */
body.itemid-104 .bloque-propiedad-completo > *:not(.informacion-adicional),
body.itemid-107 .bloque-propiedad-completo > *:not(.informacion-adicional) {
  max-width: 1310px;
  margin-inline: auto;     
}

/* 3) Cuando la pantalla es más estrecha que 1310px, damos un pequeño margen interno a esos bloques */
@media (max-width: 1310px) {
  body.itemid-104 .bloque-propiedad-completo > *:not(.informacion-adicional),
  body.itemid-107 .bloque-propiedad-completo > *:not(.informacion-adicional) {
    padding-inline: 16px;
    box-sizing: border-box;
  }
}

/* 4) La banda gris sigue a ancho completo, pero su contenido (dos columnas) va centrado */
body.itemid-104 .informacion-adicional,
body.itemid-107 .informacion-adicional {
  background-color: #EDEDED;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-block: 50px;  /* arriba y abajo */
}

/* Contenido interno de la banda gris */
body.itemid-104 .informacion-adicional > .detalles-propiedad,
body.itemid-104 .informacion-adicional > .características-energéticas,
body.itemid-107 .informacion-adicional > .detalles-propiedad,
body.itemid-107 .informacion-adicional > .características-energéticas {
  max-width: 1310px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Opcional: un poco de padding horizontal dentro de la banda gris, para que no quede pegado al borde en pantallas pequeñas */
@media (max-width: 1310px) {
  body.itemid-104 .informacion-adicional > .detalles-propiedad,
  body.itemid-104 .informacion-adicional > .características-energéticas,
  body.itemid-107 .informacion-adicional > .detalles-propiedad,
  body.itemid-107 .informacion-adicional > .características-energéticas {
    padding-inline: 16px;
  }
}

/* SOLO FICHA (view-article + itemid-104/107) */
body.view-article.itemid-104 .site-grid,
body.view-article.itemid-107 .site-grid {
  max-width: none;
  width: 100%;
}


@media (min-width: 992px) {
  body.view-article.itemid-104 .site-grid,body.view-article.itemid-107 .site-grid {
    display: block;
  }
}

/* Versión móvil */
@media (max-width: 768px) {

  .informacion-adicional {
    padding: 16px;
  }

  .detalle-propiedad-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #cacaca; 
  }

  /* quitar la línea al último de cada bloque */
  .detalles-propiedad .detalle-propiedad-contenedor:last-child,
  .características-energéticas .detalle-propiedad-contenedor:last-child {
    border-bottom: none;
  }

  .detalle-propiedad-label {
    margin: 0;
    flex: 1;
  }

  .detalle-propiedad-valor {
    margin: 0;
    flex: 1;
    text-align: right;  
  }
}

/******************************************************************************************GALERIA**************************************/

.mi-carrusel {
    position: relative;
    width: 100%; 
    overflow: hidden;
}

.carrusel-imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out; 
    margin-bottom: 40px;
}

.carrusel-imagenes img {
    width: 100%;
    height: auto;
    flex-shrink: 0; 
}
.mi-carrusel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 5px;
}

.mi-carrusel button.carrusel-anterior {
    left: 10px;
}

.mi-carrusel button.carrusel-siguiente {
    right: 10px;
}
/* === Galería personalizada === */
.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 8px;
    margin: 24px 0;
}

.swiper-gallery-main {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.swiper-gallery-main .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.swiper-gallery-thumbs {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}
.swiper-gallery-thumbs .swiper-slide {
    cursor: pointer;
}
.swiper-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid transparent;
}
.swiper-gallery-thumbs .swiper-slide-thumb-active img {
    border-color: #007bff;
}

@media (max-width: 768px) {
    .property-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    }
    .swiper-gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    grid-column: 1 / 2;
    }
}
.mi-carrusel {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.carrusel-imagenes {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carrusel-imagenes a {
    flex: 0 0 100%; 
    display: block;
}
.carrusel-imagenes img {
    width: 100%;
    height: auto;
    display: block;
}
.galeria-multiple {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}
.galeria-multiple .bloque-galeria {
    width: 100%;
    height: 100%;
}
.galeria-multiple .bloque-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Asignamos la imagen grande a la primera celda ocupando dos filas */
.galeria-multiple .bloque-galeria:nth-child(1) {
    grid-row: 1 / span 2;
    grid-column: 1;
}

  /* Segunda imagen (arriba derecha) */
.galeria-multiple .bloque-galeria:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

  /* Tercera imagen (abajo derecha) */
.galeria-multiple .bloque-galeria:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
}
.galeria-multiple-wrapper {
    position: relative;
}
.boton-galeria-contador {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    color: #000;
    z-index: 10;
}
.boton-galeria-contador svg {
    width: 18px;
    height: 18px;
}
.boton-galeria-contador:hover {
    background: #222;
    color: #fff;
    cursor: pointer;
}
.boton-galeria-contador:hover svg path {
    fill: #fff;
}

/***************************************************************************************ARTICULOS********************************************
/*====================================================
  LISTADO DE ARTÍCULOS / PROPIEDADES (GRID)
=====================================================*/

/* Tarjeta individual (el <div class="com-content-category-blog__item blog-item">) */
.com-content-category-blog__item {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease-in-out,
              transform 0.3s ease-in-out;
}

.com-content-category-blog__item:hover {
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.30);
  transform: translateY(-5px);
}

/*====================================================
  TARJETA PROPIEDAD – IMAGEN + BOTÓN "VER MÁS"
=====================================================*/

/* Contenedor de la imagen */
.property-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 275px;           
}

/* Imagen de cabecera */
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Pequeño zoom de la imagen al hacer hover en la tarjeta */
.property-link:hover .property-image img {
  transform: scale(1.03);
}

/* La tarjeta completa es el <a class="property-link"> */
.property-link {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;          
}

/* Contenido (texto, iconos…) debajo de la imagen */
.property-link .item-content {
  background: #ffffff;

  position: relative;
  z-index: 2;             
}

/* Capa oscura sobre TODA la tarjeta (imagen + contenido) */
.property-link::before {
  content: "";
  position: absolute;
  inset: 0;                  
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;               
  pointer-events: none;     
}

/* Botón VER MÁS centrado respecto a TODA la tarjeta */
.property-link .btn-ver-mas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 42px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  opacity: 0;               
  transition: all 0.25s ease;
  text-align: center;
  cursor: pointer;
  z-index: 4;                
}
/* Al pasar el ratón por cualquier parte de la tarjeta */
.property-link:hover::before {
  opacity: 1;
}

.property-link:hover .btn-ver-mas {
  opacity: 1;
}

/* Hover directo sobre el propio botón */
.property-link .btn-ver-mas:hover {
  background: #ffffff;
  color: #000000;
}
/* Botón VER MÁS centrado respecto a TODA la tarjeta */
.property-link .btn-ver-mas {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  display: inline-block;
  margin: 0;
  padding: 12px 42px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  opacity: 0;
  transition: all 0.25s ease;
  text-align: center;
  cursor: pointer;
  z-index: 4; }

/* Overlay sobre toda la tarjeta */
.property-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
  pointer-events: none;
}

/* Contenido inferior (campos, título, etc.) */
.property-card .item-content {
  position: relative;
  z-index: 1;           
  background: #ffffff;
}

/* ============ OVERLAY + VER MÁS CENTRADO ============ */

.property-overlay {
  position: absolute;
  inset: 0;                        
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);   
  opacity: 0;                       
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  pointer-events: none;             
}

/* Al pasar el ratón por la tarjeta mostramos overlay + botón */
.property-card:hover .property-overlay {
  opacity: 1;
  pointer-events: auto;             
}

/* Botón VER MÁS */
.property-overlay .btn-ver-mas {
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px 36px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
}

/* Hover del botón */
.property-overlay .btn-ver-mas:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.blog-item .item-image {
    margin-top: 0px;
    /* margin-bottom:15px; */
    overflow: hidden
}
/* Hacer que la imagen interior rellene toda la caja de la figura */
.venta-propiedades__imagen img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Opcional: Quitar el margen inferior que Joomla le pone a la etiqueta figure por defecto */
.venta-propiedades__imagen {
    margin: 0 !important;
}
@supports (display: grid) {
    .blog-items {
        grid-gap: 1.5em !important;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        margin: 0 0 1em;
        display: grid
    }}
/* SUBRAYADO CONTACTO*/
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a:link,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a:visited,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a:hover,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a:active,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a:focus {
  text-decoration: none !important;          
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-thickness: 0 !important;
  text-decoration-color: transparent !important;
  -webkit-text-decoration-color: transparent !important;
  border-bottom: none !important;            
  box-shadow: none !important;              
  background-image: none !important;        
  outline: none !important;
}

/* Quitar pseudo-elementos que puedan dibujar la línea */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a::before,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list
.metismenu-item.item-119.level-1 > a::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Si el tema añade clases dinámicas, también las anulamos */
.metismenu-item.item-119.level-1.mm-active > a,
.metismenu-item.item-119.level-1.active > a,
.metismenu-item.item-119.level-1.mm-hover > a,
.metismenu-item.item-119.level-1:hover > a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/*ANIMACION DE MODULOS*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.aparece {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
    padding: 0 !important;
}

/* Añadir etiquetas visuales tras los valores (solo apariencia) */
.numero-de-banos .field-value::after {
  content: " baños";
}

.numero-de-dormitorios .field-value::after {
  content: " dormitorios";
  margin-left: 4px;
}

.superficie-total .field-value::after {
  content: " m²";
}

/*MODULO RESEÑAS DE GOOGLE*/

.bb-widget {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/***************************************************************************************
   1. TIPOGRAFÍA Y ESTILOS GENERALES
***************************************************************************************/
p {
    font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #303030;
    font-size: 1rem;
    font-weight: 300; /* El grosor fino que buscabas */
    line-height: 1.9;
    letter-spacing: .025em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.25em; 
}


/***************************************************************************************
   2. CABECERA, TOPBAR Y MENÚ (HEADER)
***************************************************************************************/
/* Topbar: se desplaza normalmente */
.container-topbar {
    position: relative;
    width: 100%;
    z-index: 9999;
}

/* NUEVOS AJUSTES TOPBAR */
.container-topbar {
    display: flex;       
    align-items: center;    
    justify-content: flex-end; 
    color:#5f5f5f;            
    box-shadow: none !important; 
}

#mod-custom141 {
    order: -1; 
    font-size: 16px;
    padding: 0px 6px;
}
#mod-custom141 a {
    color: inherit;         
    text-decoration: none;   
}

span.lang-code {
    color: #5f5f5f;
    font-size: 16px;
    font-family: var(--body-font-family);
}


/***************************************************************************************
   3. SECCIÓN VENDER PROPIEDADES
***************************************************************************************/
.venta-propiedades__header {
  text-align: center;
  padding: 2rem 1rem;
}

.venta-propiedades__intro {
  max-width: 713px; 
  margin: 0 auto;   
  line-height: 1.5; 
}

.venta-propiedades__acciones {
    margin-top: 52px;
}

.venta-propiedades__acciones a {
  margin-right: 1rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}

.venta-propiedades__acciones a:hover {
  background: #000;        
  color: #fff;              
}

.btn-contacto {
    background: #7D8892;
    color: white;
    padding: 10px 40px; 
    border: none;
    cursor: pointer;
    display: block; 
    margin: 20px auto; 
    text-align: center;
}

.btn-valoracion {
     background: #7D8892;
    color: white;
    padding: 10px 40px; 
    border: none;
    cursor: pointer;
   display: inline-block;
    margin: 20px auto; 
    text-align: center;
}

/* Contenido lado a lado */
.venta-propiedades__contenido-lado {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
}

.venta-propiedades__contenido-lado {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1rem;
    flex-direction: row-reverse; 
}

.venta-propiedades__contenido-lado {
    display: flex;
    height: 453px; 
}

.venta-propiedades__wrapper {
    background:   #ededed;
     padding: 2px;
}

.venta-propiedades__imagen {
  flex: 1 1 45%;
  height: 100%;
}

.venta-propiedades__imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.venta-propiedades__beneficios {
  flex: 1 1 50%;
  height: 100%;
}

.venta-propiedades__beneficios table {
  width: 100%;
  border-collapse: collapse;
}

.venta-propiedades__beneficios th,
.venta-propiedades__beneficios td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* Sección inferior */
.venta-propiedades__zona {
  text-align: center;
  margin: 3rem 0;
  padding: 1rem;
}

.btn-buscar-agencia {
    background: #7D8892;
    color: white;
    padding: 10px 40px; 
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 20px auto; 
    text-align: center;
}

.btn-buscar-agencia:hover {
  background: #000;    
  color: #fff;        
}

/* Responsive: móvil VENDER */
@media (max-width: 768px) {
  .venta-propiedades__contenido-lado {
    flex-direction: column;
    align-items: center;
    height: auto;            
  }

  .venta-propiedades__imagen,
  .venta-propiedades__beneficios {
    flex: 1 1 100%;
    height: auto;
  }

  .venta-propiedades__imagen img {
      height: auto;
      object-fit: contain; 
  }

  .venta-propiedades__acciones a {
    margin: 0.5rem auto;
  }
}


/***************************************************************************************
   4. SECCIÓN SERVICIOS / INGENIERÍA
***************************************************************************************/
.seccion-servicios {
    text-align: center;
    padding-bottom: 50px; 
}

.contenedor-cabecera {
    background-image: 
        linear-gradient(rgba(95, 112, 126, 0.35), rgba(95, 112, 126, 0.35)), 
        url('/images/ejemplo-fondo-inge.jpg');
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    min-height: 450px; 
    padding: 100px 20px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

.contenedor-cabecera h1,
.contenedor-cabecera p {
    color: #ffffff; 
    text-align: center; 
}

.intro-texto p {
    padding: 40px 20px; 
    text-align: center !important;
    max-width: 800px; 
    margin: 0 auto; 
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 70px;
}

.caja-servicio {
    background-color: #EDEDED; 
    color: #ffffff;
    padding: 30px;
    border-radius: 3px;
    min-height: 200px; 
    text-align: left;
}

.caja-servicio h2 {
    text-align: center; 
}

.caja-servicio ul {
    list-style-type: square; 
    list-style-position: inside; 
    padding-left: 20px; 
    margin: 0;
}

.caja-servicio ul li {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 5px;
    padding-left: 10px; 
    list-style-position: outside; 
}

.caja-servicio ul li::marker {
    content: "■ "; 
    color: #7D8892; 
    font-size: 0.5em; 
}

.boton-info {
    background: #7D8892;
    color: white;
    padding: 10px 40px;
    border: none;
    cursor: pointer;
    display: inline-block; 
    margin: 20px auto; 
    text-align: center;
}

.boton-info:hover {
    background-color: #000000; 
    color: #ffffff; 
}

/* Responsive Servicios */
@media (max-width: 992px) {
    .grid-servicios {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .grid-servicios {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/***************************************************************************************
   5. BANNERS Y SLIDESHOWS (CAMERA WRAP)
***************************************************************************************/
.camera_target_content,
.camera_target_content .cameraContents,
.camera_target_content .cameraContent {
    height: 100% !important;      
    max-height: 100% !important;
    overflow: hidden !important; 
}

@media (max-width: 480px) {
    #camera_wrap_118,
    #camera_wrap_118 .cameraSlide,
    #camera_wrap_118 .camerarelative {
        height: 180px !important; 
    }
    .camera_target_content {
        height: 180px !important;
    }
}

/* === Reparación Final Slideshow Móvil === */
@media (max-width: 768px) {
  /* 1. Forzamos la altura del contenedor principal */
  #camera_wrap_118, 
  .camera_wrap, 
  .camera_fakehover, 
  .camera_target, 
  .camera_target_content, 
  .cameraSlide {
    height: 350px !important; 
    min-height: 460px !important;
  }

  /* 2. Reset de la imagen: la obligamos a centrarse y cubrir todo */
  #camera_wrap_118 img, 
  .camera_wrap img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important; 
    margin-top: 0 !important;    
    top: 0 !important;            
  }

  /* 3. Ajuste del texto para que no se pegue a los bordes */
  .camera_caption {
    bottom: 20px !important;
  }
}


/***************************************************************************************
   6. ARTÍCULOS, GRID DE PROPIEDADES Y OVERLAYS
***************************************************************************************/
/* Ocultar banner y buscador solo en artículos */
body.view-article #mod-custom139 {
    display: none !important;
}
body.view-article #test-custom {
    display: none !important;
}

@supports not (aspect-ratio: 1/1) {
  .grid-item {
    height: 0;
    padding-top: 56.25%; 
    min-height: 180px;
  }
}

.grid-item { 
    aspect-ratio: 4 / 4;    
}

.grid-item img {
  inset: 0;                
  width: 100%;
  height: 100%;
  object-fit: cover;      
  display: block;
}

@media (max-width: 768px) {
  .grid-item { 
    aspect-ratio: 4 / 4;  
  }
}

/* Capa Readmore en Propiedades */
.mod-articles-item-content .readmore {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}


/***************************************************************************************
   7. CONTACTO Y FORMULARIOS (CONVERT FORMS)
***************************************************************************************/
/* Alinea todo el bloque de info a la izquierda */
.contact-section__info {
    text-align: left !important;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start; 
}

/* Asegura que cada línea individual también mire a la izquierda */
.contact-info__line {
    text-align: left !important;
    display: flex;
    align-items: center; 
    margin-bottom: 20px;
    width: 100%;
}

/* Espacio entre el icono y el texto */
.contact-info__icon {
    margin-right: 15px !important;
    margin-left: 0 !important;
}

/* 1. Quitar el espacio excesivo dentro de la caja blanca */
.contact-section__form {
    padding: 20px !important; 
}

/* 2. Reducir el espacio entre cada fila de campos */
.cf-row {
    margin-bottom: 10px !important; 
}

/* 3. Eliminar márgenes internos del propio formulario */
.convertforms {
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Pegar más el botón al último campo */
.contact-form__submit {
    margin-top: 10px !important;
}

/* Que el botón de Convert Forms se ponga negro al pasar el ratón */
button.cf-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important; 
    transition: all 0.3s ease !important;
}

/* === Color personalizado para el Check de Privacidad === */
.cf-checkbox-group input[type="checkbox"] {
  accent-color: #7D8892 !important; 
  transform: scale(1.1) !important; 
  cursor: pointer;
}


/***************************************************************************************
   8. AVISO DE COOKIES (COOKIES CK)
***************************************************************************************/
/* Colores de los botones de Cookies CK */
#cookiesck_accept {
    background-color: #7D8892 !important;
    border-color: #7D8892 !important;
    color: #ffffff !important;
}
#cookiesck_accept:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

/* =========================================
   MENÚ MÓVIL (NUEVO)
========================================= */
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
}

@media (max-width: 991.98px) {
    /* Logo en móvil */
    .brand-logo img {
        max-width: 160px;
    }

    /* Botón Hamburguesa */
    .navbar-toggler {
        border: none!important;
        background: transparent!important;
        color: #5f5f5f !important;
        cursor: pointer!important;
        padding: 5px;
    }
    .navbar-toggler .icon-menu::before {
        content: "\2630"; /* Icono ☰ */
        font-size: 28px;
    }

    /* Fondo oscuro protector */
    .fondo-oscuro-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999998 !important; /* Capa altísima */
        display: none;
    }
    .fondo-oscuro-menu.active {
        display: block !important; 
    }

    /* Contenedor del menú lateral deslizable (Pegado a la IZQUIERDA) */
    #navbar1 {
        position: fixed;
        top: 0;
        left: 0; 
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        z-index: 999999 !important; /* Capa suprema */
        padding: 20px;
        display: flex !important; 
        flex-direction: column !important;
        transform: translateX(-100%); /* Se esconde hacia la izquierda */
        transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1); /* Sombra hacia la derecha */
        overflow-y: auto;
    }
    #navbar1.show {
        transform: translateX(0) !important; 
    }

    /* Cabecera interna del móvil (Logo + X) */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
        width: 100% !important;
    }
    .mobile-logo img {
        max-height: 25px;
        width: auto;
    }
    .btn-cerrar-menu {
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        padding: 5px;
        margin: 0;
    }

    /* Lista de enlaces en móvil blindada */
    #navbar1 .mod-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #navbar1 .mod-menu > li {
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #navbar1 .mod-menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 15px 10px !important;
        font-size: 18px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        text-align: left !important; 
        color: #333 !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }
    
    /* Botón contacto móvil */
    #navbar1 .mod-menu .item-119 > a {
        text-align: center !important;
        margin-top: 25px !important;
        border-bottom: none !important;
        background-color: #7D8892 !important;
        color: #ffffff !important;
        border-radius: 3px !important;
    }
}
/* =======================================
       DISEÑO DE LA TOPBAR DENTRO DEL MENÚ
    ======================================= */
    #navbar1 .container-topbar {
        margin-top: 80px !important; /* Empuja esto al fondo del menú */
        background: transparent !important; /* Le quita el fondo gris */
        flex-direction: column !important; /* Pone uno encima del otro */
        justify-content: center !important;
        align-items: center !important;
        padding: 30px 0 10px 0 !important;
        gap: 15px !important;
        border-top: 1px solid #eee; /* Una línea separadora sutil */
    }
    
    /* El enlace de Ingeniería */
    #navbar1 .container-topbar #mod-custom141 a {
        font-size: 16px !important;
        color: #7D8892 !important;
        text-decoration: none !important;
    }
    
    /* Centrar los idiomas */
    #navbar1 .container-topbar .lang-switcher {
        margin: 0 auto !important;
    }
/* =======================================
       BANDERAS EN HORIZONTAL (SIN DESPLEGABLE)
    ======================================= */
    /* 1. Ocultamos el botón principal que abre el desplegable */
    #navbar1 .container-topbar .lang-toggle {
        display: none !important; 
    }

    /* 2. Forzamos a la lista oculta a estar siempre visible y en fila */
    #navbar1 .container-topbar .lang-menu {
        position: relative !important;
        top: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: row !important; /* Las pone una al lado de otra */
        justify-content: center !important;
        gap: 15px !important; /* Espacio entre banderas */
        box-shadow: none !important;
        background: transparent !important;
        min-width: auto !important;
        padding: 0 !important;
        margin: 10px 0 0 0 !important;
    }

    /* 3. Ajustamos el diseño individual de cada bandera */
    #navbar1 .container-topbar .lang-menu li a {
        padding: 5px !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important; 
        gap: 5px !important;
    }

    #navbar1 .container-topbar .lang-menu li a:hover {
        background: transparent !important;
        color: #000 !important;
    }
    #navbar1 .container-topbar #mod-custom141 a {
        font-size: 0 !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    #navbar1 .container-topbar #mod-custom141 a::before {
        content: "INGENIERÍA" !important; 
        font-size: 16px !important;       
        color: #7D8892 !important;
        display: block !important;
    }
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    background: transparent;
    color: #5f5f5f;
    cursor: pointer;
    padding: 5px;
    margin-left: auto; 
	  
  }
	.navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none !important;
        box-shadow: none !important;
    }
}
/* Matamos el padding por defecto de los <li> de Joomla */
    .container-nav .metismenu.mod-menu .metismenu-item {
        padding: 0 !important;
    }
/* Fondo borroso e intocable */
    .site-content-blurred {
        filter: blur(5px);
        transition: filter 0.3s ease-in-out;
        pointer-events: none !important; /* MAGIA: Anula cualquier clic o toque en el fondo */
        user-select: none !important;
    }

    /* Evitar que deslizar fuerte el menú arrastre el fondo */
    #navbar1 {
        overscroll-behavior: none !important; 
    }
/* ==========================================================
   ALINEACIÓN PERFECTA DE LA TOPBAR CON EL MENÚ (ESCRITORIO)
========================================================== */
@media (min-width: 992px) {
    .container-topbar {
  
        padding-right: max(20px, calc(50% - 663px + 20px)) !important;
    }
}
/* ==========================================================
       FORZAR CABECERA FIJA (STICKY) EN MÓVILES
    ========================================================== */
  .header.container-header {
        position: -webkit-sticky !important; 
        position: sticky !important;
        top: 0 !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px rgb(172 172 172 / 10%); !important; 
    }

    body, html {
        overflow-x: clip !important; 
    }
@media (min-width: 992px) {
    .container-header .container-nav {
        padding-bottom: 5px !important;
    }
}
/* =========================================
   BOTÓN "VOLVER ATRÁS" 
========================================= */
.volver-atras-wrapper .btn.btn-secondary {
    background-color: #7D8892 !important; 
    color: #ffffff !important;           
    border: none !important;              
    border-radius: 3px !important;      
    padding: 8px 16px !important;        
    font-weight: 500 !important;
    transition: all 0.3s ease !important; 
}

.volver-atras-wrapper .btn.btn-secondary:hover {
    background-color: #000000 !important; 
    color: #ffffff !important;
}


/* 1. Quitamos el espacio falso del texto */
.container-top-b {
    min-height: auto !important; 
}


@media (min-width: 992px) {
    .container-banner.full-width {
        min-height: 400px; 
        background-color: transparent; 
    }
}
@media (min-width: 992px) {
    .container-banner.full-width {
        min-height: 50px; /* Espacio mínimo en ordenadores */
    }
}

div#mod-custom144,
div#mod-custom145,
div#mod-custom146 {
    font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

div#mod-custom144 h1,
div#mod-custom145 h1,
div#mod-custom146 h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #5F707E;
    text-align: left; 
}