/* ============================================
   RESET & BASE
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 1rem;
}

body {
  font-family: var(--lux-font-title);
  background-color: #F8F9FA;
  color: #333;
  line-height: 1.6;
}

#user-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1.25rem;
}

#btn-login {
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  color: var(--white);
  /* color neutro para el texto */
  border: 0.125rem solid var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 1.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#btn-login:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(- 0.125rem);
}

/* Estilo para el botón de logout que usa una imagen */
#btn-logout {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Estilo para la imagen dentro del botón de logout */
#btn-logout img {
  width: 2rem;
  /* Ajusta el ancho según necesites */
  height: 2rem;
  /* Ajusta la altura */
  object-fit: contain;
  display: block;
}

/* Si deseas que al pasar el mouse se aplique algún efecto, por ejemplo, escalar la imagen */
#btn-logout:hover img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.b {
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  color: var(--white);
  /* color neutro para el texto */
  border: 0.125rem solid var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 1.875rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Focus para accesibilidad */
#btn-login:focus {
  outline: none;
  box-shadow: 0 0 0 0.188rem rgba(0, 123, 255, 0.5);
}

/* ============================================
     VARIABLES (ROOT)
  ============================================ */
:root {
  --primary-color: #2C3E50;
  --accent-color: #E74C3C;
  --secondary-color: #16A085;
  --light-bg: #F8F9FA;
  --dark-bg: #2C3E50;
  --text-color: #333;
  --white: #FFFFFF;
  --btn-hover: #1A242F;
  --input-border: #ccc;
  --input-focus-border: var(--accent-color);
}

:root {
  --secondary-color: #d4af37;
  --white: #111111;
  --primary-color: #ffffff;
  --lux-gray: #2c2c2c;
  --lux-font-title: 'Playfair Display', serif;
  --lux-font-body: 'Playfair Display', serif;
}

.card {
  background-color: var(--lux-gray);
  border-radius: 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  padding: 2rem;
  font-family: var(--lux-font-body);
}

.card h3 {
  font-family: var(--lux-font-title);
  font-size: 1.5rem;
  color: var(--lux-gold);
}


/* ============================================
     CONTAINER
  ============================================ */
.container {
  width: 90%;
  margin: 0 auto;
  padding:0.125rem 0;
}

.header-container {
  max-width: 93.75rem;
}

/* ============================================
     HEADER
  ============================================ */
header {
  background-color: var(--primary-color);
  padding: 0.938rem 0;
  box-shadow: 00.125rem 0.25rem rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
  /* Se elimina el margen inferior */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header p {
  font-size: 1.8rem;
  color: var(--white);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

header nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: var(--accent-color);
}

.logo {
  width: auto;
  height: 6.25rem;
}

.theme-toggle {
  background: var(--accent-color);
  border: none;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: var(--btn-hover);
}

.titulo-seo {
  font-family: var(--lux-font-title);
  font-size: 5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom:3.125rem;
  color: #111;
  text-align: center;
}

.titulo-seo-inveritr {
  font-family: var(--lux-font-title);
  font-size: 4rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0rem;
  color: #2c2c2c;
  text-align: center;
}

/*
.hero {
  background: linear-gradient(to right, #111111, #2c2c2c);
  color: var(--primary-color);
  text-align: center;
  padding: 4rem 2rem;
}

.hero-heading {
  font-family: var(--lux-font-title);
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-family: var(--lux-font-body);
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.lux-button {
  background: var(--lux-gold);
  color: var(--lux-gold);
  padding: 0.75rem 1.5rem;
  font-family: var(--lux-font);
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.lux-button:hover {
  background: var(--lux-gold);
  color: var(--lux-gold);
  cursor: pointer;
}

*/



/* ========================== */
/*        ESTILO BASE        */
/* ========================== */

.hero-section {
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 18.75rem;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.slides {
  display: flex;
  transition: transform 0.7s ease;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-align: left;
  padding: 2.5rem 5rem;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-text {
  flex: 1;
  max-width: 60%;
}

.slide-text h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.slide-text p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.4;
}

.slide-buttons {
  margin-top: 0.5rem;
}

.slide-buttons .btn-slide {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #fff);
  color: #111;
  border: none;
  padding: 0.625rem 1.875rem;
  border-radius:3.125rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.5rem rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-buttons .btn-slide:hover {
  transform: translateY(- 0.188rem);
  box-shadow: 0 0.75rem 1.875rem rgba(212, 175, 55, 0.5);
}

.slide-image {
  flex-shrink: 0;
  margin-left: 1.875rem;
}

.slide-image img {
  width: 31.25rem;
  max-width: 100%;
  height: auto;
  margin-right: 9.375rem;
}


/* ========================== */
/*        RESPONSIVE          */
/* ========================== */

/* MÓVIL: hasta 48rem */
@media (max-width: 48rem) {
  .hero-section {
    height: 30vh;
  }

  .slide {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    background-size: cover !important;
    background-position: center !important;
    min-height: 100vh;
    height: auto;
  }

  .slide-text {
    max-width: 100%;
    text-align: center;
  }

  .slide-text h1 {
    font-size: 2rem;
    margin-left: 0;
    margin: 0.063rem;
  }

  .slide-text p {
    font-size: 1rem;
    margin-left: 0;
  }

  .slide-buttons {
    margin-top: 1rem;
    zoom: 0.9;
  }

  .slide-buttons .btn-slide {
    font-size: 1rem;
    padding: 0.625rem 1.875rem;
    margin: 0 auto;
  }
}


@media (max-width: 48rem) {
  .slide-image {
    display: none !important;
  }
}


.slides .slide:nth-child(1) {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('slide4.webp') no-repeat center/cover;
}

/*
.slides .slide:nth-child(2) {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('inicial.webp') no-repeat center/cover;
}*/

.slides .slide:nth-child(2) {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('casa.webp') no-repeat center/cover;
}


/* Indicadores de progreso */
.progress-indicators {
  position: absolute;
  bottom: 0.313rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  gap: 0.375rem;
  height: 0.188rem;
}

.progress-indicators .indicator {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  border-radius:0.125rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-indicators .indicator.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: white;
  animation: fill-progress 10s linear forwards;
}

@keyframes fill-progress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Botones de navegación */
.slide-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.938rem;
  transform: translateY(-50%);
}

.slide-nav button {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.slide-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}


/* Eliminar separación entre #hero y #propiedades */
.hero-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hero-section .slide:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#propiedades.section {
  padding-top: 0 !important;
}

#propiedades h2 {
  margin-top: 0 !important;
}



@media (max-width: 48rem) {
  .hero-section {
    justify-content: center;
    align-items: center;
  }


  .slide-content h1 {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }
}

.slide-button {
  margin-top: 2rem;
  /* separación del texto superior */
  background-color: transparent;
  color: #ffffff;
  border: 0.188rem solid #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  /* elimina subrayado */
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.slide-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
  z-index: 0;
}

.slide-button:hover::after {
  left: 0;
}

.slide-button:hover {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 0.25rem 1.25rem rgba(255, 255, 255, 0.3);
  text-decoration: none;
  /* asegura que tampoco se subraye al hacer hover */
}



/* ============================================
     HERO SECTION
  ============================================ 
.hero {
  position: relative;
  height: 80vh;
  background: linear-gradient(135deg, #ffffff, #2c2c2c);
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('inicial.webp') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--primary-color);
  max-width:  50rem;
  padding: 0 1.25rem;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.875rem;
}

.hero .btn {
  font-size:  1.563rem;
  border-radius: 6.25rem;
}
*/
/* ============================================
     BOTONES
  ============================================ */
.btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  background-color: #999B9B;
  transform: translateY(- 0.125rem);
}

.btn-primary {
  background-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #138F75;
}

.btn-disabled {
  background-color: #BDC3C7;
  color: #7F8C8D;
  cursor: not-allowed;
}

/* ============================================
     SECCIONES GENERALES
  ============================================ */
.section {
  padding:3.125rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.875rem;
  color: var(--primary-color);
  text-transform: uppercase;
}

/* ============================================
   PROPERTIES CAROUSEL SECTION
   (Extiende a toda la pantalla horizontalmente e infinito)
============================================ */
.carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 2.5rem 0;
  background: linear-gradient(90deg, var(--light-bg) 0%, #ffffff 100%);
  /* Usamos mask-image para difuminar los extremos y ocultar el corte */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 60%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 60%, black 90%, transparent 100%);
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 5rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  /* Importante: Se asume que el HTML duplica el contenido del carousel para lograr un loop infinito */
  animation: scroll 40s linear infinite;
  -webkit-animation: scroll 40s linear infinite;
  width: calc( 200px * 10);
}

@keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(calc(-200px * 15));
    transform: translateX(calc(-200px * 15));
  }
}

.card {
  flex: 0 0 18.75rem;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 11.25rem;
  object-fit: cover;
}

.card-content {
  padding: 0.938rem;
  text-align: center;
}

.card-content p {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
  color: var(--primary-color);
}




.cardd {
  flex: 0 0 18.75rem;
  background: var(--primary-color);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.cardd:hover {
  transform: scale(1.05);
}

.cardd img {
  width: 100%;
  height: 11.25rem;
  object-fit: cover;
}

.cardd-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  flex: 1;
}



.cardd-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.625rem;
  color: var(--white);
}

#propiedades h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--white);
  text-transform: uppercase;
}

/* ============================================
     NUEVAS SECCIONES: EL MERCADO HOY
  ============================================ */
#mercado-hoy {
  background: #fff;
  padding: 3.75rem 0;
}

#mercado-hoy h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--white);
  text-transform: uppercase;
}

#mercado-hoy h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--white);
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.875rem;
  padding: 0 1.25rem;
}

.news-card {
  background: #F7F7F7;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.938rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Asegura que ocupe todo el alto disponible */
}

.news-card:hover {
  transform: translateY(-0.313rem);
}

.news-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}

.news-content {
  padding: 1.25rem;
  text-align: center;
}

.news-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--primary-color);
}

.news-content p {
  font-size: 1rem;
  margin-bottom: 0.938rem;
  color: #666;
}

.news-content a.btn {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  border-radius:3.125rem;
}

/* ============================================
     NUEVAS SECCIONES: CONNECTA CON MVI
  ============================================ */
#connecta {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('newsl.webp');
  background-position: center 60%;
  /* ajusta el 80% según lo que quieras mostrar */
  background-repeat: no-repeat;
  background-size: cover;
  padding: 3.75rem 0;
  color: #fff;
  text-align: center;
  height: auto;
}

#connecta h2 {
  margin-top: 3.438rem;
  font-size: 3rem;
  margin-bottom:3.125rem;
  text-transform: uppercase;
}

.newsletter {
  margin: 0 auto;
}

.newsletter p {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

#newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.938rem;
}

#newsletter-form input[type="email"] {
  flex: 1 1 18.75rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius:3.125rem;
  font-size: 1rem;
  outline: none;
  max-width: 50vh;
}

#newsletter-form button {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 0.188rem solid #ffffff;
  padding: 0.625rem 1.875rem;
  border-radius:3.125rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#newsletter-form button:hover {
  background-color: black;
  transform: translateY(- 0.125rem);
}

@media (max-width: 48rem) {
  #connecta {
    padding: 2.5rem 1.25rem;
    height: auto;
    background-position: center center;
    background-size: cover;
  }

  #connecta h2 {
    font-size: 1.8rem;
    margin-top: 0.188rem;
    margin-bottom: 1.875rem;
    padding: 0 0.625rem;
  }

  .newsletter p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0 0.625rem;
  }

  #newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  #newsletter-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 0.063rem 1.25rem;
    /* ↓ bajamos la altura ↓ */
    border-radius: 1.875rem;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
  }


  #newsletter-form button {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
  }

  #mensaje-newsletter {
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 48rem) {
  #newsletter-form {
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  #newsletter-form input[type="email"],
  #newsletter-form button {
    width: 90%;
    height: 2.75rem;
    /* misma altura */
    padding: 0 1.25rem;
    font-size: 1rem;
    border-radius: 1.875rem;
    box-sizing: border-box;
    margin-bottom: 1.25rem;
  }

  #newsletter-form input[type="email"] {
    border: none;
    text-align: center;
  }

  #newsletter-form button {
    background: transparent;
    border:0.125rem solid #fff;
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.3s ease;
  }

  #newsletter-form button:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
}



/* ============================================
     RESULTADOS DE BÚSQUEDA Y DETALLES DE PROPIEDAD
  ============================================ */
.property-results {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 1.875rem auto;
}

.property-results.hidden {
  display: none;
}

.property-results img {
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.938rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.property-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.938rem;
  justify-content: center;
  margin-top: 0.938rem;
}

.property-stats p {
  background: var(--light-bg);
  border: 0.063rem solid #ddd;
  padding: 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  color: var(--primary-color);
  flex: 1 1 12.5rem;
  text-align: left;
}

/* ============================================
     DOCUMENTOS
  ============================================ */
#document-list {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}

#document-list li {
  margin-bottom: 0.625rem;
}

#document-list a {
  text-decoration: underline;
  color: var(--accent-color);
  font-size: 1rem;
  transition: color 0.3s;
}

#document-list a:hover {
  color: var(--btn-hover);
}

/* ============================================
   FOOTER ESTILIZADO
============================================ */
footer {
  background-color: var(--primary-color);
  padding: 2.5rem 0 1.25rem;
  color: var(--white);
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;

}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0 1.25rem;

}

.footer-logo {
  flex: 1 1 12.5rem;
  text-align: left;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  max-width: 7.5rem;
  height: auto;
}

.footer-links {
  flex: 2 1 25rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-column {
  flex: 1 1 11.25rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

/* Texto final en el footer */
footer p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}



/* ============================================
     RESPONSIVE
  ============================================ */
@media (max-width: 48rem) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .carousel-track {
    animation-duration: 30s;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .property-card {
    flex-direction: column;
  }

  .property-image-container,
  .property-info {
    flex: 1 1 100%;
  }

  .hero .btn {
    font-size: 0.938rem;
    border-radius: 6.25rem;
  }

  .titulo-seo {
    font-size: 2.8rem;

  }

  .titulo-seo-inveritr {
    font-size: 2.8rem;

  }

  .hero-heading {
    font-size: 1.5rem;
  }

  .hero-section h1 {
    margin:0.125rem
  }

}


/* ============================================
   ESTILOS ESPECÍFICOS PARA ENTRAR.HTML
   (Página de Gestión de Operación)
============================================ */
.registro-form-container {
  background: #ffffff;
  padding: 2.5rem 1.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.375rem 1.25rem#ffffff;
  max-width: 25rem;
  margin: 2.5rem auto;
}

.registro-form-container .form-group {
  margin-bottom: 1.25rem;
}

.registro-form-container .form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 600;
}

.registro-form-container .form-group input {
  width: 100%;
  padding: 0.75rem 0.938rem;
  font-size: 1rem;
  border: 0.063rem solid #ffffff;
  border-radius: 0.25rem;
  transition: border-color 0.3s;
}

.registro-form-container .form-group input:focus {
  border-color: var(--input-focus-border);
  outline: none;
}

#ingresar {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.1rem;
  background-color: var(--lux-gold);
  color: var(--lux-gold);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.625rem;
}

#ingresar:hover {
  background-color: var(--btn-hover);
  transform: translateY(- 0.125rem);
}

main.container {
  padding: 2.5rem 1.25rem;
  text-align: center;
}

#operation-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.625rem;
}

#operation-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.875rem;
}


/* ============================================
   ESTILOS ESPECÍFICOS PARA GESTION.HTML
============================================ */
main.container {
  padding: 2.5rem 1.25rem;
  text-align: center;
}

#gestion-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

#operation-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.875rem;
}

.registro-form-container {
  background: var(--primary-color);
  padding: 2.5rem 1.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.15);
  max-width: 25rem;
  margin: 2.5rem auto;
}

.registro-form-container .form-group {
  margin-bottom: 1.25rem;
}

.registro-form-container .form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 600;
}

.registro-form-container .form-group input {
  width: 100%;
  padding: 0.75rem 0.938rem;
  font-size: 1rem;
  border: 0.063rem solid var(--input-border);
  border-radius: 0.25rem;
  transition: border-color 0.3s;
}

.registro-form-container .form-group input:focus {
  border-color: var(--input-focus-border);
  outline: none;
}

#ingresar {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.1rem;
  background-color: #8a7e7e;
  color: var(--white);
  border: none #111;
  border-radius: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.625rem;
}

#ingresar:hover {
  background-color: var(--lux-gray);
  transform: translateY(- 0.125rem);
}



/* ============================================
   NUEVA SECCIÓN: ÚLTIMAS OFERTAS (CAROUSEL OSCURO)
   (Estilos exclusivos para esta sección; se ignoran los estilos generales)
============================================ */
.dark-carousel {
  background: #1A1A1A;
  /* Fondo oscuro */
  color: #F8F9FA;
  /* Texto claro */
  padding: 0;
  /* Sin padding adicional */
  margin-top: 0;
  /* Pegado al header */
}

.dark-carousel .container {
  padding: 0;
  margin: 0;
}

/* Para que el carousel ocupe toda la pantalla horizontal, usamos width: 100vw
   y aplicamos márgenes negativos para romper el contenedor */
.ofertas-carousel {
  width: 100vw;
  position: relative;
  left: 0%;
  right: 20%;
  overflow: hidden;
  padding: 0;
  background: #1A1A1A;
}

/* Eliminamos pseudo-elementos que pudieran generar franjas */
.ofertas-carousel::before,
.ofertas-carousel::after {
  display: none;
}

/* Carousel Track con animación infinita */
.ofertas-carousel .carousel-track {
  display: flex;
  gap: 0;
  /* Se asume que duplicas el contenido en el HTML para lograr un loop perfecto */
  animation: scrollOfertas 30s linear infinite;
}

.ofertas-carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollOfertas {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* Layout horizontal para la información interna de la tarjeta:
   Título, descripción y renovación dispuestos de izquierda a derecha */
.ofertas-carousel .card-content {
  padding: 0.063rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  text-align: center;
  text-decoration: none;
}

.ofertas-carousel .card-content p {
  font-size: 1.2rem;
  margin: 0;
  color: #F8F9FA;
  flex: 0 0 auto;
}



.ofertas-carousel .card-content span {
  display: block;
  font-size: 0.9rem;
  color: #ccc;
  flex: 0 0 auto;
}

.faq-section {
  background-color: #f9f9f9;
  padding: 5rem 1.25rem;
}

.faq-header {
  text-align: center;
  max-width:  50rem;
  margin: 0 auto 3.75rem auto;
}

.faq-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.625rem;
  color: #111;
}

.faq-header p {
  font-size: 1.1rem;
  color: #555;
  font-family: 'Montserrat', sans-serif;
}

.faq-wrapper {
  display: flex;
  gap: 3.75rem;
  align-items: flex-start;
  justify-content: center;
  max-width:  75rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.faq-content {
  flex: 1;
  min-width: 21.25rem;
  max-width:  37.5rem;
}

.faq-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.faq-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-top: 2rem;
}

@media (max-width: 48rem) {
  .faq-image {
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }

  .faq-image img {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }
}


.faq-item {
  background: #fff;
  border: 0.063rem solid #ddd;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.125rem 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  background-color: #fafafa;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  padding: 1rem 0;
  margin: 0;
  color: #333;
}

.faq-chatbot {
  flex: 1;
  min-width: 18.75rem;
  max-width: 43.75rem;
}

@media (max-width: 48rem) {
  .faq-wrapper {
    padding: 0;
    margin: 0;
  }

  .faq-chatbot {
    width: 100%; /* ocupa toda la pantalla */
    margin: 0;
    padding: 0;
  }

  .faq-chatbot iframe {
    width: 100% !important; /* fuerza a ocupar todo el viewport */
    height:  37.5rem;
    border: none;
    border-radius: 0;
    display: block;
  }

  .faq-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .faq-section {
    padding: 3.75rem 0.625rem;
  }

  .faq-header h1 {
    font-size: 2rem;
  }

  .faq-header p {
    font-size: 1rem;
    color: #555;
  }
}





/* ============================================
     NUEVAS SECCIONES: FORMULARIO RESEÑAS
  ============================================ */

#resenas {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.875rem;
  flex-wrap: wrap;
}

#resenas img {
  max-width:  37.5rem;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  flex: 1 1 18.75rem;
  margin-right: 12.5rem;
}


#resenas .container {
  max-width: 34.375rem;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2.5rem 3.125rem;
  border-radius: 6.25rem;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
  margin-left: 18.75rem;
  margin-top:3.125rem;
}

#resenas h2 {
  text-align: center;
  font-size: 2.2em;
  color: #1a1a1a;
  margin-bottom: 1.875rem;
  font-weight: 600;
}

#resenas h3 {
  font-size: 1rem;
  color: #111111;
  margin-top: 0rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-align: justify;
}

#review-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#review-form label {
  font-weight: 600;
  color: #333333;
  margin-bottom:0.125rem;
  font-size: 1.5em;
}

#review-form input[type="text"],
#review-form input[type="email"],
#review-form textarea {
  width: 100%;
  padding:0.875rem 1rem;
  font-size: 1em;
  border: 0.063rem solid #d1d1d1;
  border-radius: 0.25rem;
  transition: border-color 0.3s ease;
  color: #333;
  background-color: #fafafa;
}

#review-form input[type="text"]:focus,
#review-form input[type="email"]:focus,
#review-form textarea:focus {
  border-color: #0072ce;
  outline: none;

}

.star-rating {
  display: flex;
  gap: 0.375rem;
  font-size: 2rem;
  cursor: pointer;
}

.star-rating span {
  color: #ccc;
  transition: color 0.2s;
  width: 100%;
  text-align: center;

}

.star-rating span.hover,
.star-rating span.selected {
  color: gold;
}



/* Botón de envío */
#review-form button.btn {
  padding: 0.75rem 1.875rem;
  background-color: #d4af37;
  border: none;
  border-radius:3.125rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#review-form button.btn:hover {
  background-color: gold;
}

@media (max-width: 48rem) {
  #resenas {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 0 0.938rem;
  }

  #resenas img {
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    height: auto;
    border-radius: 0.75rem;
    order: 2;
    /* Imagen debajo del formulario */
  }

  #resenas .container {
    max-width: 100%;
    margin: 1.25rem 0;
    padding: 1.875rem 1.25rem;
    border-radius: 1.25rem;
    box-shadow: none;
    background-color: #fff;
    order: 1;
  }

  #resenas h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.25rem;
  }

  #resenas h3 {
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 0.938rem;
  }

  #review-form label {
    font-size: 1.1rem;
  }

  #review-form input[type="text"],
  #review-form input[type="email"],
  #review-form textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .star-rating {
    font-size: 1.6rem;
    justify-content: center;
  }

  #review-form button.btn {
    width: 100%;
    padding:0.875rem;
    font-size: 1rem;
    margin-top: 0.625rem;
  }
}


.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* dos columnas iguales */
  gap: 2rem;
  padding: 2rem;
  width: 90%;
  /* ✅ usa todo el ancho disponible */
  box-sizing: border-box;
}

@media (max-width: 115rem) {
  .property-grid {
    grid-template-columns: 1fr;
    /* una columna en móvil */
  }
}



/* BLOQUE INDIVIDUAL */
.property-block {
  background-color: #fff;
  border:0.125rem solid #000;
  /* ✅ Borde negro */
  border-radius: 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.property-block:hover {
  transform: translateY(-0.313rem);
}

/* IMAGEN */
.property-block img {
  width: 100%;
  height: 11.25rem;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.property-block:hover img {
  filter: brightness(0.95);
}

/* INFO TEXTO */
.property-block .property-info {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.property-block .property-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.property-block .property-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.property-block .property-info strong {
  color: #333;
  font-weight: 600;
}

/* SECCIÓN DE INFORMACIÓN DE LA EMPRESA */
.empresa-info {
  padding: 3rem 0;
  color: #333;
  line-height: 1.8;
  background-color: #f9f9f9;
  border-radius: 1rem;
  margin-bottom: 3rem;
  text-align: justify;
}

.empresa-info h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  position: relative;
}



.empresa-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

/* SECCIÓN DE DOCUMENTOS PDF */
.pdf-documents {
  padding: 2rem 0 4rem;
}

.pdf-documents h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  position: relative;
}


.pdf-documents ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.pdf-documents li {
  margin-bottom: 1rem;
}

.pdf-documents a {
  color: #2b7a78;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  padding-left: 1.5rem;
  position: relative;
}

.pdf-documents a::before {
  content: "📄";
  position: absolute;
  left: 0;
  top: 0;
}

.pdf-documents a:hover {
  color: #20564a;
  text-decoration: underline;
}

/* LAYOUT EN DOS COLUMNAS */
.empresa-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.empresa-texto {
  flex: 1 1 60%;
}

.empresa-imagen {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empresa-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Adaptabilidad para móvil */
@media (max-width: 48rem) {
  .empresa-info-grid {
    flex-direction: column;
  }

  .empresa-imagen {
    margin-top: 1rem;
  }
}



#popup-aviso {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(20, 20, 20, 0.96);
  color: white;
  padding: 0.938rem 1.25rem;
  z-index: 9999;
  box-shadow: 0 - 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
  border-top:0.125rem solid #444;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.938rem;
  flex-wrap: wrap;
}

.popup-logo {
  width: 2.5rem;
  height: auto;
}

.popup-texto {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  font-size: 1rem;
}

.popup-botones {
  display: flex;
  gap: 0.625rem;
}

.btn-popup {
  background-color: #ffffff;
  color: #222;
  padding: 0.5rem0.875rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-popup:hover {
  background-color: #dddddd;
}

.cerrar-popup {
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
}



/* Posición fija a la derecha en escritorio */
#google_translate_element {
  position: absolute !important;
  top: 0rem !important;
  right: 0rem !important;
  left: auto !important;
  z-index: 9999 !important;
}

#google_translate_element:hover {
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.15);
}

/* Ajusta el texto del widget */
#google_translate_element .goog-te-gadget {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
}


/* Estilo del selector desplegable */
.goog-te-combo {
  padding: 0.375rem 0.75rem;
  border: 0.063rem solid #ddd;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.goog-te-combo:hover {
  background-color: #eeeeee;
}





.legacy-block {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fdfdfd;
  border-radius: 1.5rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 4rem auto;
  max-width:  75rem;
}

.legacy-image {
  flex: 1 1 40%;
  background-image: url('Inversor.webp');
  background-size: cover;
  background-position: center;
  min-height: 31.25rem;
}

.legacy-text {
  flex: 1 1 60%;
  padding: 3rem 2rem;
  color: #2c3e50;
  line-height: 1.8;
  font-size: 1.1rem;
  background: white;
  text-align: justify;
}

.legacy-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.legacy-text p {
  white-space: pre-line;
  /* Respeta los saltos de línea si prefieres usar texto sin <br> */
}

@media (max-width: 48rem) {
  .legacy-block {
    flex-direction: column;
  }

  .legacy-image {
    order: -1;
    min-height: 15.625rem;
  }

  .legacy-text {
    padding: 2rem 1.5rem;
  }
}

.news-card {
  text-align: center;
  /* Centra todo el contenido en horizontal */
}

.news-card .btn {
  align-self: center;
  /* Centra el botón horizontalmente */
  margin-top: auto;
  /* Empuja el botón al final del bloque */
  padding: 0.75rem  1.563rem;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 1.875rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-bottom: 1.25rem;
}

.news-card .btn:hover {
  background-color: #d4af37;
  color: #111;
  transform: translateY(- 0.125rem);
}

.news-card a {
  text-decoration: none;
}


.equity-block {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #fefefe;
  border-radius: 1.5rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 4rem auto;
  max-width:  75rem;
}

.equity-image {
  flex: 1 1 40%;
  background-image: url('Equity.webp');
  /* puedes cambiar la imagen aquí */
  background-size: cover;
  background-position: center;
  min-height: 31.25rem;
}

.equity-text {
  flex: 1 1 60%;
  padding: 3rem 2rem;
  color: #2c3e50;
  line-height: 1.8;
  font-size: 1.1rem;
  background: white;
}

.equity-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.equity-text strong {
  color: #0b3c5d;
  font-weight: 600;
}

.equity-text a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.equity-text a:hover {
  text-decoration: underline;
}

@media (max-width: 48rem) {
  .equity-block {
    flex-direction: column;
  }

  .equity-image {
    order: -1;
    min-height: 15.625rem;
  }

  .equity-text {
    padding: 2rem 1.5rem;
  }
}



.press-block {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.05);
  margin: 4rem auto;
  max-width:  75rem;
}

.press-image {
  flex: 1 1 40%;
  background-image: url('Promotor.webp');
  background-size: cover;
  background-position: center;
  min-height: 31.25rem;
}

.press-content {
  flex: 1 1 60%;
  padding: 3rem 2rem;
  color: #2d2d2d;
  font-size: 1.1rem;
  line-height: 1.9;
}

.press-content h1 {
  font-size: 2rem;
  color: #102a43;
  margin-bottom: 1.5rem;
}

.press-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #234361;
}

.press-content strong {
  color: #0b3c5d;
}

.press-content a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.press-content a:hover {
  text-decoration: underline;
}

.press-content blockquote {
  font-style: italic;
  background-color: #f6f9fc;
  padding: 1rem 1.5rem;
  border-left: 0.25rem solid #0b3c5d;
  margin: 1rem 0;
  color: #334e68;
}

@media (max-width: 48rem) {
  .press-block {
    flex-direction: column;
  }

  .press-image {
    min-height: 15.625rem;
    order: -1;
  }

  .press-content {
    padding: 2rem 1.5rem;
  }
}




/* Menú hamburguesa oculto por defecto */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* Estilos responsive para móviles */
@media (max-width: 48rem) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
  }

  .logo-link {
    order: 0;
    flex: 0 0 auto;
  }

  .lux-title {
    order: 1;
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
    color: var(--white);
  }

  .menu-toggle {
    display: block;
    order: 2;
    flex: 0 0 auto;
    margin-right: 0.625rem;
  }

  .lux-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    text-align: center;
    padding: 0.625rem 0;
  }

  .lux-nav.show {
    display: flex;
  }

  .lux-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  #user-section {
    display: none;
    justify-content: center;
    padding: 0.625rem 0;
  }

  #user-section.show {
    display: flex;
  }
}

@media (max-width: 48rem) {
  header {
    padding: 0.5rem 0;
    position: relative;
  }

  .logo {
    height: 3.75rem;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo-link {
    flex: 0 0 auto;
  }

  .lux-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.2rem;
    margin: 0;
    color: var(--white);
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--white);
    background: none;
    border: none;
    margin-right: 0.625rem;
    z-index: 1001;
  }

  .lux-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    text-align: center;
    padding: 0.625rem 0;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  }

  .lux-nav.show {
    display: flex;
  }

  .lux-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
  }

  #user-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 0;
    background-color: var(--primary-color);
  }

  #user-section.hidden {
    display: none;
  }
}


/* todo el contenido original sin cambios ... */

/* Ajustes del widget de traducción solo para móviles dentro del menú */
@media (max-width: 48rem) {
  #google_translate_element {
    position: static;
    background-color: transparent;
    padding: 0.625rem 0;
    box-shadow: none;
    margin: 0 auto;
    z-index: auto;
  }

  #google_translate_element .goog-te-gadget {
    color: var(--white);
    text-align: center;
    font-size: 1rem;
  }

  .lux-nav.show #google_translate_element {
    display: block;
    margin-top: 0.625rem;
  }
}

/* Ocultar el widget fuera del menú en móviles */
@media (max-width: 48rem) {
  body:not(.menu-open) #google_translate_element {
    display: none;
  }
}


@media (max-width: 48rem) {
  #google_translate_element {
    position: static !important;
    margin: 0.625rem auto 0;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    box-shadow: none;
    text-align: center;
  }

  #google_translate_element .goog-te-gadget {
    color: var(--white);
  }

  .goog-te-combo {
    background-color: #fff;
    color: #000;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: none;
    margin-top: 0.313rem;
  }
}


.form-group input[type="checkbox"] {
  accent-color: #555;
  /* color del checkbox marcado */
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  text-align: center;
}

.form-group label a {
  color: #0077cc;
  text-decoration: underline;
  margin-left: 0.25rem;
  font-weight: 500;
}

.form-group label a:hover {
  color: #005fa3;
  text-decoration: none;
}

.aviso-legal {
  text-align: center;
  font-size: 1rem;
  color: #999;
  margin-top: 0.625rem;
}


.property-precio-boton {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.625rem;
  margin-left: 1.625rem;
  margin-bottom: 0.625rem;
}

.property-precio-boton p {
  margin: 0;
  font-weight: bold;
}


.property-precio-boton .invertir-btn {
  margin-bottom: 1.25rem;
  background-color: #2c2c2c;
  color: white;
  padding: 0.938rem 3.125rem;
  border: none;
  border-radius: 1.875rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing:  0.031rem;
}

.property-precio-boton .invertir-btn:hover {
  background-color: #111111;
  transform: translateY(- 0.125rem);
  text-decoration: none;
}



.cardd-content .invertir-btn {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;


}

.cardd-content .invertir-btn:hover {
  background-color: #111111;
  transform: translateY(- 0.125rem);
}





@media screen and (max-width: 48rem) {

  .noticias-container {
    padding: 1rem 0.5rem;
    margin: 2rem auto;
  }

  .noticias-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .noticias-header p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  /* Reorganizar sección destacadas en columna */
  .destacadas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 2rem;
  }

  .destacadas .noticia-card.titular {
    position: static;
    display: block;
    width: 100%;
    background: var(--primary-color);
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  

  /* Cuatro noticias en columna */
  .cuatro-noticias {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .cuatro-noticias .noticia-card {
    width: 100% !important;
  }

  /* Carrusel: una sola tarjeta visible */
  .carrusel-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .carrusel-scroll::-webkit-scrollbar {
    display: none;
  }

  .carrusel-scroll .noticia-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .carrusel-btn {
    top: 45%;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem;
    box-shadow: none;
  }

  .carrusel-btn.left {
    left: 0.5rem;
  }

  .carrusel-btn.right {
    right: 0.5rem;
  }

  /* Tarjetas */
  .noticia-card {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #ddd;
  }

  .noticia-card img {
    height: 12rem;
    object-fit: cover;
    width: 100%;
  }

  .noticia-content {
    padding: 1rem;
  }

  .noticia-content h2 {
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--lux-font-title);
    color: #111;
  }

  .noticia-content p,
  .btn-leer-mas {
    display: none !important;
  }

  /* Secciones temáticas y bloques de noticias en columna */
  #secciones-tematicas h3,
  .seccion-fija h2,
  .seccion-carrusel h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    text-align: left;
  }

  .bloque-noticias {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .seccion-carrusel .carrusel-scroll .noticia-card {
    flex: 0 0 100%;
    height: auto;
  }

  .seccion-carrusel .carrusel-btn {
    display: flex;
    top: 45%;
  }
}

@media screen and (max-width: 48rem) {
  .destacadas .noticia-card:nth-child(1) h2 {
    font-size: 1.5rem !important; /* o el tamaño que prefieras */
  }
}




/* ---------- CONTENEDOR GENERAL ---------- */
.noticias-container {
  max-width: 86.25rem;
  margin: 4rem auto;
  padding: 0 0.5rem;
  font-family: var(--lux-font-body);
}

/* ---------- CABECERA ---------- */
.noticias-header {
  text-align: center;
  margin-bottom: 3rem;
}

.noticias-header h1 {
  font-family: var(--lux-font-title);
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 0.5rem;
}

.noticias-header p {
  color: var(--lux-gray);
  font-size: 1rem;
  max-width: 43.75rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- DISTRIBUCIÓN DESTACADAS ---------- */
.destacadas {
  display: grid;
  grid-template-columns: 18% 64% 18%;
  grid-template-areas: "izq principal secundaria";
  gap: 1rem;
  padding-right: 2.5rem;
  padding-left: 0.063rem !important;
  margin-bottom: 0rem;
  position: relative;
  padding-left: 0; /* asegúrate de esto */

}

.destacadas .noticia-card:nth-child(1) p {
  display: none !important;
}

.destacadas .noticia-card:nth-child(1) {
  grid-area: principal;
}

.destacadas .noticia-card:nth-child(1) h2 {
  font-size: 2.5rem;
}

.destacadas .noticia-card:nth-child(2) {
  grid-area: secundaria;
}

.destacadas .noticia-card:nth-child(1) img {
  height: 25.75rem;
  object-fit: cover;
}


/* ---------- TITULARES 3-5 A LA IZQUIERDA ---------- */
.destacadas .noticia-card.titular {
  position: absolute;
  width: 17%;
  background: none;
  border: none;
  box-shadow: none;
}

.destacadas .noticia-card.titular:nth-of-type(3) {
  top: 0;
}
.destacadas .noticia-card.titular:nth-of-type(4) {
  top: 15rem;
}
.destacadas .noticia-card.titular:nth-of-type(5) {
  top: 30rem;
}

.destacadas .noticia-card.titular img,
.noticia-card.titular .btn-leer-mas ,
.destacadas .noticia-card.titular p {
  display: none !important;
}

.destacadas .noticia-card.titular h2 {
  font-size: 1rem;
  font-family: var(--lux-font-title);
  color: var(--lux-gray);
  border-bottom: 0.063rem solid #ccc;
  padding-bottom: 0.25rem;
  margin-bottom: 0rem;
  
}

/* ---------- BLOQUE NOTICIAS 6–9 (FILA) ---------- */
.cuatro-noticias {
  display: flex;
  gap: 0rem;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0rem;

}

.cuatro-noticias .noticia-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.noticias-hoy p {
  display: none !important;
}

/* ---------- CARRUSEL NOTICIAS 10+ ---------- */
.carrusel-container {
  width: 100%;
  position: relative;
  text-align: left;

}

.carrusel-container p {
  display: none !important;
}

.carrusel-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0.625rem;
  margin-bottom: 0rem;
}

.carrusel-scroll::-webkit-scrollbar {
  display: none;
}

.carrusel-scroll .noticia-card {
  flex: 0 0 21.875rem;
  scroll-snap-align: start;
}

/* ---------- FLECHAS DEL CARRUSEL ---------- */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: black;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 0.313rem rgba(0, 0, 0, 0.2);
}

.carrusel-btn.left {
  left: 1.25rem;
}

.carrusel-btn.right {
  right: 1.25rem;
}

/* ---------- ESTILO GENERAL DE LAS TARJETAS ---------- */
.noticia-card {
  background-color: var(--primary-color);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0rem;
  
}

.noticia-card:hover {
  transform: translateY(-0.313rem);
  box-shadow: 0 0.938rem 1.875rem rgba(0, 0, 0, 0.2);
}

.noticia-card img {
  width: 100%;
  height: 13.75rem;
  object-fit: cover;
}

.noticia-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.noticia-content h2 {
  font-size: 1.4rem;
  color: #111111;
  margin-bottom: 0rem;
  font-family: var(--lux-font-title);
}

.noticia-content h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.noticia-content h2 a:hover {
  color: var(--lux-gray);
}

.noticia-content p {
  font-size: 1rem;
  color: var(--lux-gray);
  line-height: 1.6;
}





#secciones-tematicas {
  margin-top: 2rem;
}

#secciones-tematicas h3 {
  font-family: var(--lux-font-title);
  font-size: 2rem;
  color: var(--lux-gray);
  margin: 3rem 0 1.5rem;
  border-bottom: 2px solid var(--lux-gray);
  padding-bottom: 0.5rem;
}

.bloque-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}




.seccion-carrusel {
  margin-top: 0rem;
}

.seccion-carrusel h2 {
  font-family: var(--lux-font-title);
  font-size: 1.4rem;
  color: var(--lux-gray);
  margin: 0rem 0 ;
  padding-bottom: 0.5rem;
}

.seccion-carrusel .carrusel-container {
  position: relative;
}

.seccion-carrusel .carrusel-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0.625rem;
  margin-bottom: 1rem;
}

.seccion-carrusel .carrusel-scroll::-webkit-scrollbar {
  display: none;
}

.seccion-carrusel .carrusel-scroll .noticia-card {
  flex: 0 0 27rem; /* MÁS ANCHA */
  height: 11rem;   /* MÁS BAJA */
  scroll-snap-align: start;
}

.seccion-carrusel .carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: black;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 0.313rem rgba(0, 0, 0, 0.2);
}

.seccion-carrusel .carrusel-btn.left {
  left: -3rem;
}

.seccion-carrusel .carrusel-btn.right {
  right: -3rem;
}



.seccion-fija {
  margin-top: 1rem;
}

.seccion-fija h2 {
  font-family: var(--lux-font-title);
  font-size: 2rem;
  color: var(--lux-gray);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
}

.seccion-fija .bloque-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}




.btn-leer-mas {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: black;
  color: var(--primary-color);
  border-radius: 2rem;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-leer-mas:hover {
  background-color: var(--lux-gray);
}

@media screen and (max-width: 48rem) {
  .noticias-container {
    padding: 1rem;
    margin-top: 2rem;
  }

  .noticias-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .noticias-header p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Estructura vertical para todas las secciones */
  .destacadas,
  .cuatro-noticias,
  .carrusel-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0 0 2rem;
  }

  .destacadas .noticia-card.titular {
    display: none !important;
  }

  .noticia-card {
    border: 0.063rem solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
  }

  .noticia-card img {
    width: 100%;
    height: 12.5rem;
    object-fit: cover;
    display: block;
  }

  .noticia-content {
    padding: 0.8rem 1rem;
  }

  .noticia-content h2 {
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--lux-font-title);
    color: #111;
  }

  /* 🔻 Ocultar todo lo demás */
  .noticia-content p,
  .btn-leer-mas {
    display: none !important;
  }

  /* 🔻 Carrusel: sin scroll horizontal */
  .carrusel-scroll {
    overflow-x: hidden;
  }

  .carrusel-scroll .noticia-card {
    flex: none;
    width: 100%;
  }

  .carrusel-btn {
    display: none;
  }
}



.popup-inversion {
  opacity: 0;
  transform: translateY(1.875rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: none;
}

.popup-inversion.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}




.articulos-container {
  max-width: 68.75rem;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: var(--lux-font-body);
}

.articulos-header {
  text-align: center;
  margin-bottom: 3rem;
}

.articulos-header h1 {
  font-family: var(--lux-font-title);
  font-size: 2.4rem;
  color: #111111;
  margin-bottom: 0.5rem;
}

.articulos-header p {
  max-width: 43.75rem;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--lux-gray);
  line-height: 1.6;
}

.articulos-listado {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.articulo-entry {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background-color: var(--primary-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 15.625rem;
  /* ALTURA FIJA IGUAL PARA TODAS */
  min-height: 15.625rem;
}

.articulo-entry:hover {
  transform: translateY(- 0.188rem);
}

.articulo-entry img {
  width: 18.75rem;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* Contenedor de texto ocupa el resto del espacio */
.articulo-texto {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Estilos del texto */
.articulo-texto h2 {
  font-size: 1.4rem;
  font-family: var(--lux-font-title);
  color: #111111;
  margin-bottom: 1rem;
}

.articulo-texto h2 a {
  text-decoration: none;
  color: inherit;
}

.articulo-texto h2 a:hover {
  color: var(--lux-gray);
}

.articulo-texto p {
  font-size: 1rem;
  color: var(--lux-gray);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.btn-articulo {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 2rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-articulo:hover {
  background-color: var(--lux-gray);
}



@media screen and (max-width: 48rem) {


  .articulo-texto {
    padding: 1.5rem;
  }
}

@media (max-width: 67rem) {
  .articulo-entry {
    flex-direction: column;
    height: auto;
    min-height: unset;
  }

  .articulo-entry img {
    width: 100%;
    height: auto;
    max-height: 15.625rem;
  }

  .articulo-texto {
    padding: 1rem;
  }

  .articulo-texto h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .articulo-texto p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .btn-articulo {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .btn-articulo:hover {
    background-color: var(--lux-gray);
  }
}



.art-block {
  display: flex;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.08);
  margin: 4rem auto;
  max-width:  97.5rem;
  /* ancho más controlado para mejorar legibilidad */
  font-family: 'Georgia', 'Times New Roman', serif;
  /* más legible para textos largos */
    background-color: #fafafa;

}

.art-content {
  flex: 1 1 60%;
  padding: 3rem 2rem;
  color: #1a1a1a;
  font-size: 1.525rem;
  line-height: 2;
  letter-spacing: 0.01em;
  background-color: #fafafa;
}

.art-content h1 {
  font-size: 2.25rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.art-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.art-content p {
  margin-bottom: 1.3rem;
}

.art-content blockquote {
  font-style: italic;
  background-color: #eef2f7;
  padding: 1.25rem 1.5rem;
  border-left: 0.313rem solid #2c5282;
  margin: 2rem 0;
  color: #2e3b4e;
}

strong {
  font-weight: normal !important;
}

.art-content ul {
  margin-left: 1.8rem;   /* sangría izquierda */
  padding-left: 1rem;    /* espacio interno adicional */
  list-style-type: disc; /* asegura que se vean los puntos */
}

.art-content li {
  margin-bottom: 0.6rem;  /* espacio entre elementos de la lista */
  line-height: 1.7;       /* buena legibilidad */
}



@media (max-width: 48rem) {
  .art-block {
    margin: 0rem auto;
    border-radius: 0rem;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .art-image {
    width: 100%;
    height: auto;
    min-height: 11.25rem;
    max-width: 100%;
  }

  .art-content {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
  }

  .art-content h1 {
    font-size: 1.75rem;
  }

  .art-content h2 {
    font-size: 1.25rem;
  }

  .art-content p,
  .art-content a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media (max-width: 48rem) {
  .art-content ul {
    margin-left: 1.2rem;
    padding-left: 0.8rem;
  }
}


body,
html {
  overflow-x: hidden;
}




@media (max-width: 48rem) {
  .property-precio-boton {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 1.25rem !important;
  }

  .property-precio-boton a,
  .property-precio-boton button {
    width: 100% !important;
    text-align: center;
    padding:0.875rem 1.5rem !important;
  }

  .property-precio-boton img {
    margin: 0 auto 0.625rem auto !important;
  }
}




/* Fondo del popup */
#popup-connecta-invertir {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* ← Para que ocupe el 100% exacto del viewport */
  height: 100vh;
  backdrop-filter: blur(0.5rem);
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 0;
  overflow-x: hidden;
  /* ← Importante: quita desplazamiento lateral */
}

/* Mostrar popup */
#popup-connecta-invertir.show {
  opacity: 1;
  pointer-events: auto;
}

/* Caja del popup */
#popup-connecta-invertir .popup-content {
  background: #ffffff !important;
  padding: 2rem;
  border-radius: 1.2rem;
  width: 100%;
  max-width: 31.25rem;
  box-shadow: 0 0 00.125rem #000;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.4s ease;
  margin: 0 auto;
}

/* Animación entrada */
#popup-connecta-invertir.show .popup-content {
  transform: scale(1);
  opacity: 1;
}

/* Botón cerrar */
#popup-connecta-invertir .close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.4s;
}

#popup-connecta-invertir .close-btn:hover {
  transform: rotate(90deg);
}

/* Limpiar estilos heredados de section y container */
#popup-connecta-invertir .section,
#popup-connecta-invertir .container {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Título */
#popup-connecta-invertir h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 1rem;
  margin-top: 0 !important;
  text-align: center;
}

/* Texto */
#popup-connecta-invertir p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #111;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Formulario */
#popup-connecta-invertir form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Input de email */
#popup-connecta-invertir input[type="email"] {
  all: unset;
  /* 🔥 Resetea absolutamente TODO (padding, line-height, margin, etc.) */
  width: 90%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1.2rem;
  border: 0.094rem solid #000;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
  box-sizing: border-box;
}



/* Botón de enviar */
#popup-connecta-invertir button[type="submit"] {
  width: 90%;
  padding: 1rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#popup-connecta-invertir button[type="submit"]:hover {
  background: #333;
}

/* Mensaje de confirmación */
#popup-connecta-invertir #mensaje-newsletter {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: green;
  text-align: center;
}


.servicios-mvi {
  padding: 3.75rem 1.25rem;
}

.servicios-titulo {
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
}

.servicio {
  display: flex;
  align-items: center;
  margin-bottom: 3.75rem;
  flex-wrap: wrap;
  position: relative;
}

.servicio-texto {
  flex: 1;
  background-color: #111;
  color: white;
  padding: 1.875rem;
  border-radius: 1.25rem;
  z-index: 1;
}

.servicio-texto h3 {
  font-size: 1.8rem;
  margin-bottom: 0.625rem;
}

.servicio-texto p {
  font-size: 1rem;
  line-height: 1.6;
}

.servicio-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.servicio-imagen img {
  max-width: 100%;
  max-height: 15.625rem;
  object-fit: cover;
  border-radius: 1rem;
}

.bloque-derecha .servicio-texto {
  order: 1;
}

.bloque-derecha .servicio-imagen {
  order: 2;
}

.bloque-izquierda .servicio-texto {
  order: 2;
}

.bloque-izquierda .servicio-imagen {
  order: 1;
}

.diagonal {
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  overflow: hidden;
}


@media (max-width: 48rem) {
  .servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.125rem;
  }

  .servicio-texto {
    width: 100%;
    padding: 1.25rem;
    background-color: #111;
    color: #fff;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    text-align: left;
  }

  .servicio-texto h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .servicio-texto p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eaeaea;
  }

  .servicio-imagen {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    clip-path: none;
  }

  .servicio-imagen img {
    width: 95%;
    height: auto;
    max-height: 17.5rem;
    object-fit: cover;
    border-radius: 1rem;
    display: inline-block;
    box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.08);
  }

  .bloque-derecha .servicio-texto,
  .bloque-izquierda .servicio-texto,
  .bloque-derecha .servicio-imagen,
  .bloque-izquierda .servicio-imagen {
    order: unset;
  }
}





/* Contenedor principal de la sección */
.noticias-carousel {
  position: relative;
  background-color: #111;
  padding: 0.625rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Cartel fijo "NOTICIAS" */
.noticias-label-fixed {
  position: absolute;
  /* o quita la línea completamente */
  top: auto;
  /* elimina si usas static */
  left: auto;
  height: 4.063rem;
  background-color: #111;
  color: #fff;
  font-weight: 700;
  padding: 0.938rem 0.625rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Contenedor horizontal que se mueve */
.noticias-wrapper {
  margin-left: 15.625rem;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* Carrusel que se desplaza */
.carousel-inner {
  display: inline-flex;
  gap: 2.5rem;
  animation: scroll-left 40s linear infinite;
  padding: 0 1.25rem;
}

/* Elemento de cada noticia */
.noticia-slide {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 17.5rem;
  background-color: #111;
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  color: white;
  flex-shrink: 0;
}

.noticia-slide img {
  width: 3.125rem;
  height: 3.125rem;
  object-fit: cover;
  margin: 0;
}

.noticia-slide h3 {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.noticia-slide h3 a {
  color: white;
  text-decoration: none;
}

.noticia-slide h3 a:hover {
  text-decoration: underline;
}

/* Animación continua */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pausar animación con hover */
.noticias-carousel:hover .carousel-inner {
  animation-play-state: paused;
}

.carousel-inner {
  animation: scroll-left 60s linear infinite;
}

@media (max-width: 48rem) {
  .noticias-carousel {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.625rem 0 1.25rem 0;
  }

  .noticias-label-fixed {
    display: none;
  }

  .noticias-wrapper {
    margin-left: 0rem;
    padding-right: 0.625rem;
  }

  .carousel-inner {
    gap: 1.25rem;
    animation-duration: 60s;
    padding: 0 0.625rem;
  }

  .noticia-slide {
    min-width: 13.75rem;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
  }

  .noticia-slide img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .noticia-slide h3 {
    font-size: 0.8rem;
  }
}





#chat-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: #2c2c2c;
  color: #fff;
  border-radius: 50%;
  width: 3.125rem;
  height: 3.125rem;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 00.125rem 0.375rem rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

#chat-toggle:hover {
  background-color: #444;
}

.chat-popup {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: 20rem;
  max-height: 25rem;
  background: #111;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
}

.chat-popup.hidden {
  display: none;
}

.chat-header {
  background: #2c2c2c;
  padding: 0.625rem 0.938rem;
  color: #fff;
  font-weight: 600;
  border-bottom: 0.063rem solid #444;
}

.chat-messages {
  flex: 1;
  padding: 0.625rem;
  overflow-y: auto;
  color: white;
}

.chat-options {
  padding: 0.625rem;
  border-top: 0.063rem solid #333;
  background-color: #000;
}

.chat-option-btn {
  background-color: #fff;
  color: #111;
  border: none;
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  width: 100%;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-option-btn:hover {
  background-color: #fff;
}


.chat-wrapper {
  position: fixed;
  bottom:  1.563rem;
  right: 1.875rem;
  display: flex;
  align-items: center;
  z-index: 9999;
}

.chat-label {
  background-color: #fff;
  color: #111;
  padding: 0.5rem 0.75rem;
  border-radius: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size:0.875rem;
  margin-right:3.125rem;
  white-space: nowrap;
  border:0.125rem solid var(--white);
}