﻿/* ============================================
   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: 100%;
  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;
  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;
  }

  #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: 0 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;
}

.property-precio-boton p {
  margin: 0;
  font-weight: bold;
}


.property-precio-boton .invertir-btn {
  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 {
    margin-top: 1rem;
  }

  .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 */
}

.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;
}



.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;
  /* â† Limitamos el ancho mÃ¡ximo real */
  box-shadow: 0 0 00.125rem #000;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.4s ease;
  margin: 0 auto;
  /* Centrado perfecto */
}

/* 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: 700;
  color: #000;
  margin-bottom: 1rem;
  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: 1rem;
  }

  .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);
}

.bottom-navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222222;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-item:hover {
  color: #000;
}

.nav-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  transition: filter 0.2s ease-in-out;
}

.nav-item:hover img {
  filter: brightness(0.1);
}

.nav-item.active {
  color: #000000;
}

.nav-item.active img {
  filter: none;
}

/* En pantallas grandes (>=768px) la barra NO se oculta:
   pasa a ser un panel vertical a la izquierda.
   Ver bloque "Barra lateral en pantallas grandes" al final del archivo. */

/* === ESTILOS GENERALES DE SECCIONES === */
.section {
  padding: 2rem 1.5rem;
  background-color: #fff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
}

/* === SALUDO Y RESUMEN DEL USUARIO === */
.user-summary .user-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-summary .stat {
  flex: 1;
  min-width: 30%;
  background: #f7f8fa;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-summary .stat h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.user-summary .stat p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #777;
}

/* === PROPIEDADES DESTACADAS === */
.highlight-cards {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.highlight-card {
  flex: 0 0 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #eee;
}

.highlight-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card-info {
  padding: 0.9rem;
}

.card-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.card-info p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.card-info .btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #d4af37;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.card-info .btn:hover {
  background-color: #b9952f;
}

/* === MERCADO RESUMIDO === */
.market-summary .market-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.market-card {
  flex: 1;
  min-width: 30%;
  background: #f1f3f5;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ddd;
}

.market-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #111;
}

.market-card p {
  font-size: 0.8rem;
  color: #555;
}

/* === PROMOCIÃ“N === */
.promo-banner {
  background: linear-gradient(135deg, #fff4d1, #ffefd5);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-radius: 14px;
  border: 1px solid #e1c77c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.promo-banner h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.promo-banner p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #444;
}

.promo-banner .btn {
  background-color: #d4af37;
  color: white;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.promo-banner .btn:hover {
  background-color: #b9952f;
}

/* Avatares con imagen */
#avatar img,
.avatar-img,
.avatar-mini-img,
.avatar-circle-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: white;
}

/* TamaÃ±os tÃ­picos de tus UIs (ajusta si hace falta) */
.avatar-mini-img {
  width: 24px;
  height: 24px;
  background-color: white;
}

.avatar-circle-img {
  width: 36px;
  height: 36px;
  background-color: white;
}

/* comentarios de activo */
.avatar-inicial.avatar-img {
  width: 36px;
  height: 36px;
  background-color: white;
}

/* comunidad */

:root {
  --bottom-nav-h: 64px;
  /* valor por defecto; se ajusta con JS */
}

/* Barra inferior fija */
.bottom-navbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));  border-top: 1px solid var(--line, #e5e7eb);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}

/* Que el contenido suba lo suficiente para no quedar oculto */
body.has-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px)) !important;
}

/* Items de la barra */
.bottom-navbar .nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text, #0f172a);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 10px;
}

.bottom-navbar .nav-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}



@media (prefers-color-scheme: dark) {
  .bottom-navbar {
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
  }

  .bottom-navbar .nav-item.active {
    background: rgba(255, 255, 255, .08);
  }
}

/* Topbar de noticias */
.news-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.news-topbar .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  transition: transform .15s ease;
}

.news-topbar .back-btn:hover {
  transform: translateX(-2px);
}

/* Tarjetas compactas de noticias (imagen a la derecha) */
.noticias-grid {
  display: grid;
  gap: 10px;
  margin: 10px;
}

/* Escritorio (>=1100px): ~5% de margen a cada lado, igual que el resto de
   pantallas (el grid de noticias es full-width por defecto). */
@media (min-width: 1100px) {
  .noticias-grid {
    padding-left: 5%;
    padding-right: 5%;
  }
}

.noticia-card {
  display: flex;
  flex-direction: row-reverse;
  /* ðŸ‘‰ imagen a la derecha */
  align-items: center;
  gap: 12px;
  padding: 0px 10px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.noticia-card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.noticia-card .noticia-content {
  flex: 1;
  min-width: 0;
}

.noticia-card h2 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 700;
}

.noticia-card h2 a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.noticia-card h2 a:hover {
  text-decoration: underline;
}

.noticia-card p {
  margin: 0;
  font-size: .85rem;
  color: #6b7280;
}

/* Opcional: ocultar "Leer mÃ¡s" si quieres aÃºn mÃ¡s compacto */
.noticia-card .btn-leer-mas {
  display: none;
}






/* Topbar de Noticias */
.news-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.news-title {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .2px;
}

/* Barra de filtros (scroll horizontal en mÃ³vil) */
.news-filters {
  position: sticky;
  top: 56px;
  z-index: 39;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.news-filters .chip {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.news-filters .chip:hover {
  border-color: #111;
}

.news-filters .chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}


/* PequeÃ±a mejora en el container */
.noticias-container {
  padding: 8px 12px 80px;
}

/* 80px para no tapar el final con la bottom bar */
@media (min-width: 768px) {
  .noticias-container {
    max-width: 860px;
    margin: 0 auto;
  }

  .news-topbar {
    padding: 0 16px;
  }

  .news-filters {
    padding: 12px 16px;
  }
}

/* Meta bajo el tÃ­tulo con la fecha */
.noticia-content .n-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.noticia-content .n-meta time {
  font-variant-numeric: tabular-nums;
}

.hide-date-src {
  display: none !important;
}

/* Oculta el <p> original con la fecha */

/* Chip flotante con la categorÃ­a activa */
.filter-sticky {
  position: fixed;
  left: 0;
  right: 0;
  /* la posiciÃ³n vertical se calcula por JS en funciÃ³n de la barra superior */
  z-index: 1000;
  padding: 10px 14px;
  background: var(--card, #fff);
  border: 1px solid black;
  box-shadow: var(--shadow, 0 4px 16px rgba(0, 0, 0, .08));
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.filter-sticky[hidden] {
  display: none;
}

.filter-sticky:active {
  transform: translateY(1px) scale(.98);
}

/* Header flotante a tope de pantalla */
.news-sticky-header {
  position: fixed;
  top: 0;
  /* pegado arriba del todo */
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg, #f7f7f8);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line, #e5e7eb);
  box-shadow: var(--shadow, 0 4px 14px rgba(0, 0, 0, .06));
  transform: translateY(-100%);
  transition: transform .18s ease;
}

.news-sticky-header.show {
  transform: translateY(0);
}

.news-sticky-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 10px 16px;
  /* respeta notch */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  cursor: pointer;
}

.news-sticky-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(80vw, 680px);
}

.news-sticky-header__inner .ico-up {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 8px;
  opacity: .7;
}

.news-sticky-header__inner:active {
  transform: translateY(1px);
}

/* Cuando el sticky estÃ¡ visible, ocultamos la appbar superior para que el sticky ocupe la parte mÃ¡s alta */
.has-news-sticky .news-appbar,
.has-news-sticky .news-topbar,
.has-news-sticky .news-header,
.has-news-sticky header.news {
  /* usa el selector que tengas */
  transform: translateY(-100%);
  transition: transform .18s ease;
}

/* Evita saltos del contenido si quieres dejar un margen superior fijo mientras estÃ¡ visible.
   Si NO lo quieres, puedes omitir este bloque. */
.has-news-sticky main {
  scroll-margin-top: 64px;
  /* opcional: para anclajes */
}

.news-sticky-header {
  background: rgba(247, 247, 248, var(--dyn-alpha, .78));
  -webkit-backdrop-filter: saturate(1.2) blur(var(--dyn-blur, 8px));
  backdrop-filter: saturate(1.2) blur(var(--dyn-blur, 8px));
}

@media (prefers-color-scheme: dark) {
  .news-sticky-header {
    background: rgba(11, 12, 15, var(--dyn-alpha, .60));
  }
}

/* Mini cards de noticias (tÃ­tulo izq, imagen der) */
#lista-noticias .item.news-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
}

#lista-noticias .item.news-mini h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

#lista-noticias .item.news-mini .news-mini-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: auto;
  /* empuja la imagen a la derecha */
  flex: 0 0 auto;
}

/* Responsive: en mÃ³viles una columna, imagen un poco mÃ¡s grande */
@media (max-width:640px) {
  #lista-noticias .item.news-mini .news-mini-thumb {
    width: 112px;
    height: 72px;
  }
}

/* ===== Lista â€œÃšltimas noticiasâ€ (estilo propio) ===== */
.index-news-list {
  display: grid;
  grid-template-columns: 1fr;
}

/* Tarjeta horizontal: tÃ­tulo izq, imagen der */
.index-news-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}

.index-news-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .12);
}

.index-news-card .news-info {
  flex: 1 1 auto;
  min-width: 0;
}

.index-news-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  /* multi-lÃ­nea con elipsis si se quiere limitar */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index-news-card .news-thumb {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
  margin-left: 12px;
}

@media (max-width:640px) {
  .index-news-card .news-thumb {
    width: 112px;
    height: 72px;
  }
}

/* ===== Safe area superior (notch/status bar) para la pÃ¡gina de noticias ===== */
:root {
  /* iOS/Android: si no existe, serÃ¡ 0px */
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Aplica la reserva arriba al header de noticias */
.news-header,
.noticias-topbar,
.news-topbar,
#news-header {
  /* si tu header no es fijo, usa margin-top;
     si es sticky/fijo, usa padding-top para no desplazar el layout */
  padding-top: max(10px, var(--safe-top));
}

/* Si tu header se vuelve sticky/fijo con una clase (ej. .is-stuck),
   aseguramos que quede pegado justo debajo de la zona segura */
.news-header.is-stuck,
.noticias-topbar.is-stuck,
.news-topbar.is-stuck,
#news-header.is-stuck {
  top: var(--safe-top);
  /* para position: sticky/fixed */
}

/* Si tu header ya usa position: sticky/fixed desde el inicio,
   puedes fijar siempre el offset al safe-area: */
.news-header.sticky,
.noticias-topbar.sticky,
.news-topbar.sticky,
#news-header.sticky {
  top: var(--safe-top);
}


/* =========================================================
   AVATAR MENU â€” estilo Revolut (override solo CSS)
   Pegar AL FINAL del CSS del index.html
   ========================================================= */

:root {
  --rv-bg: #ffffff;
  --rv-surface: #f6f7f9;
  --rv-ink: #0b1220;
  --rv-muted: rgba(2, 6, 23, .62);
  --rv-line: rgba(2, 6, 23, .10);
  --rv-line2: rgba(2, 6, 23, .06);
  --rv-shadow: 0 18px 55px rgba(2, 6, 23, .16);
  --rv-radius: 18px;
  --rv-radius2: 14px;
  --rv-accent: #111827;
  /* neutro, Revolut-like */
}

/* Convertimos sheet iOS en dropdown */
.avatar-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;

  width: min(360px, 92vw) !important;
  height: auto !important;
  max-height: min(560px, 72vh) !important;

  background: var(--rv-bg) !important;
  border: 1px solid var(--rv-line) !important;
  border-radius: var(--rv-radius) !important;

  box-shadow: var(--rv-shadow) !important;
  overflow: hidden !important;

  padding: 10px !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transform: translateY(6px) scale(.99) !important;
  transform-origin: top right !important;
}

/* Open animation */
.avatar-menu.open {
  display: flex !important;
  animation: rvDrop .16s ease-out !important;
}

@keyframes rvDrop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(6px) scale(.99);
  }
}

/* Quitamos el handle */
.avatar-sheet-handle {
  display: none !important;
}

/* Header tipo Revolut: bloque suave dentro */
.avatar-header {
  margin: 2px 2px 10px !important;
  padding: 12px 12px !important;
  border-radius: var(--rv-radius2) !important;


  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;

  text-align: left !important;
}

/* Avatar redondo limpio */
.avatar-header img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  box-shadow: none !important;
  border: 1px solid rgba(2, 6, 23, .10) !important;
  background: #fff !important;
  margin: 0 !important;
}

/* Username fuerte pero moderno (no serif) */
.avatar-header #menu-username {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--rv-ink) !important;
  letter-spacing: .01em !important;
}

/* Cuerpo: lista con tarjetas */
.avatar-menu-body {
  padding: 0 2px 2px !important;
  gap: 8px !important;
}

/* Items tipo Revolut: pill-card suave */
.menu-item {
  width: 100% !important;
  border: 1px solid var(--rv-line2) !important;
  background: #fff !important;
  border-radius: var(--rv-radius2) !important;

  padding: 12px 12px !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  color: var(--rv-ink) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  box-shadow: 0 1px 0 rgba(2, 6, 23, .04) !important;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease !important;
}

/* â€œchevronâ€ sutil a la derecha, estilo app */
.menu-item::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  color: rgba(2, 6, 23, .35);
  margin-left: 10px;
  transform: translateY(-1px);
}

.menu-item:hover {
  background: rgba(2, 6, 23, .02) !important;
  border-color: rgba(2, 6, 23, .12) !important;
  box-shadow: 0 10px 26px rgba(2, 6, 23, .10) !important;
  transform: translateY(-1px) !important;
}

.menu-item:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .10) !important;
}

/* Panel de idiomas como tarjeta dentro */
.lang-panel {
  margin: 0 2px !important;
  padding: 12px !important;
  border-radius: var(--rv-radius2) !important;
  background: var(--rv-surface) !important;
  border: 1px solid rgba(2, 6, 23, .06) !important;
}

/* Cerrar sesiÃ³n: â€œdangerâ€ estilo Revolut (sobrio) */
.menu-item[onclick*="cerrarSesion"],
.menu-item.danger {
  border-color: rgba(185, 28, 28, .18) !important;
  color: #7f1d1d !important;
}

.menu-item[onclick*="cerrarSesion"]::after,
.menu-item.danger::after {
  color: rgba(127, 29, 29, .45);
}

.menu-item[onclick*="cerrarSesion"]:hover,
.menu-item.danger:hover {
  background: rgba(185, 28, 28, .04) !important;
  border-color: rgba(185, 28, 28, .24) !important;
}

/* Dark mode: Revolut-like (no puro negro, â€œdeepâ€) */
@media (prefers-color-scheme: dark) {
  :root {
    --rv-bg: #0b0c0f;
    --rv-surface: #111318;
    --rv-ink: #e5e7eb;
    --rv-muted: rgba(226, 232, 240, .65);
    --rv-line: rgba(148, 163, 184, .22);
    --rv-line2: rgba(148, 163, 184, .14);
    --rv-shadow: 0 22px 70px rgba(0, 0, 0, .72);
  }

  .avatar-menu {
    border-color: var(--rv-line) !important;
    box-shadow: var(--rv-shadow) !important;
  }

  .avatar-header {
    background: var(--rv-surface) !important;
    border-color: rgba(148, 163, 184, .14) !important;
  }

  .avatar-header img {
    background: #0b0c0f !important;
    border-color: rgba(148, 163, 184, .18) !important;
  }

  .menu-item {
    background: rgba(17, 19, 24, .92) !important;
    border-color: rgba(148, 163, 184, .14) !important;
    box-shadow: none !important;
  }

  .menu-item:hover {
    background: rgba(255, 255, 255, .06) !important;
    border-color: rgba(148, 163, 184, .22) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .55) !important;
  }

  .menu-item::after {
    color: rgba(226, 232, 240, .45);
  }

  .lang-panel {
    background: rgba(255, 255, 255, .04) !important;
    border-color: rgba(148, 163, 184, .14) !important;
  }
}

/* =========================================================
   AVATAR MENU â€” Fullscreen (Revolut-style screen)
   ========================================================= */

.avatar-menu {
  position: fixed !important;
  inset: 0 !important;
  /* top/right/bottom/left:0 */
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;

  border-radius: 0 !important;
  padding: 14px !important;

  /* Fondo y layout */
  background: var(--rv-bg, #fff) !important;
  border: none !important;
  box-shadow: none !important;

  display: none !important;
  flex-direction: column !important;
  z-index: 999999 !important;

  transform: none !important;
}

/* Abierto */
.avatar-menu.open {
  display: flex !important;
  animation: none !important;
}

/* Cabecera como barra superior */
.avatar-header {
  margin: 0 !important;
  border-radius: 16px !important;
}

/* Cuerpo scrollable ocupa el resto */
.avatar-menu-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px 2px 2px !important;
}

/* BotÃ³n cerrar (inyectado por JS) */
.avatar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, .10);
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: rgba(2, 6, 23, .75);
  z-index: 2;
}

.avatar-close:hover {
  background: rgba(2, 6, 23, .03);
  border-color: rgba(2, 6, 23, .14);
}

@media (prefers-color-scheme: dark) {
  .avatar-close {
    background: rgba(17, 19, 24, .92);
    border-color: rgba(148, 163, 184, .18);
    color: rgba(226, 232, 240, .85);
  }

  .avatar-close:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(148, 163, 184, .22);
  }
}

/* =========================================================
   Apariencia panel (similar a Idiomas)
   ========================================================= */

.appearance-panel {
  display: grid;
  gap: 8px;
}

.appearance-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(2, 6, 23, .08);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;

  cursor: pointer;
  text-align: left;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.appearance-option:hover {
  background: rgba(2, 6, 23, .02);
  border-color: rgba(2, 6, 23, .12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .10);
  transform: translateY(-1px);
}

.appearance-option:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(2, 6, 23, .10);
}

.appearance-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(2, 6, 23, .18);
  background: transparent;
  flex: 0 0 auto;
}

.appearance-text {
  display: grid;
  gap: 2px;
}

.appearance-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #0b1220;
}

.appearance-text small {
  font-size: 12px;
  color: rgba(2, 6, 23, .62);
}

/* Estado seleccionado */
.appearance-option.is-active {
  border-color: rgba(2, 6, 23, .18);
  background: rgba(2, 6, 23, .03);
}

.appearance-option.is-active .appearance-dot {
  background: #111827;
  border-color: #111827;
}

/* Dark mode visual del panel (si tema oscuro estÃ¡ activo) */
html.theme-dark .appearance-option {
  background: rgba(17, 19, 24, .92);
  border-color: rgba(148, 163, 184, .14);
}

html.theme-dark .appearance-text strong {
  color: #e5e7eb;
}

html.theme-dark .appearance-text small {
  color: rgba(226, 232, 240, .65);
}

html.theme-dark .appearance-dot {
  border-color: rgba(226, 232, 240, .35);
}

html.theme-dark .appearance-option.is-active .appearance-dot {
  background: #e5e7eb;
  border-color: #e5e7eb;
}

.emisores-list li::marker {
  content: none;
}




/* ============================================
   RI: Component Skeletons
============================================ */
.ri-skel-card,
.ri-skel-post,
.ri-skel-stat {
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
}

.ri-skel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 88px;
}

.ri-skel-thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.ri-skel-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ri-skel-line {
  height: 12px;
  border-radius: 999px;
}

.ri-skel-line.w-90 {
  width: 90%;
}

.ri-skel-line.w-80 {
  width: 80%;
}

.ri-skel-line.w-70 {
  width: 70%;
}

.ri-skel-line.w-60 {
  width: 60%;
}

.ri-skel-line.w-50 {
  width: 50%;
}

.ri-skel-line.w-40 {
  width: 40%;
}

.ri-skel-line.w-30 {
  width: 30%;
}

.ri-skel-btn {
  width: 120px;
  height: 34px;
  border-radius: 999px;
}

.ri-skel-post {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ri-skel-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ri-skel-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.ri-skel-post-foot {
  display: flex;
  gap: 12px;
}

.ri-skel-stat {
  min-height: 46px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.ri-skel-image {
  background: #eceff1;
  border-radius: 12px;
}

/* =========================
   FIX: Footer (bottom-navbar) visible incluso con skeleton
   ========================= */

/* 1) El footer SIEMPRE por encima del skeleton */
.bottom-navbar {
  position: fixed;
  /* por si algún CSS no lo deja fijo */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483647;
  /* > que el skeleton */
}

/* 2) Mientras carga, NO ocultes el footer */
html.ri-loading body>*:not(#ri-skeleton-screen):not(.bottom-navbar):not(#connection-lost-banner) {
  opacity: 0;
}

/* 3) (Recomendado) El skeleton NO ocupa el área del footer */
html.ri-loading #ri-skeleton-screen {
  bottom: var(--bottom-nav-h, 72px);
  /* usa tu --bottom-nav-h que calculas en script.js */
}

/* =========================================================
   Barra lateral en pantallas grandes (tablet / PC, >=768px)
   - <768px  : barra inferior de siempre, sin ningún cambio
               (etiquetas y secciones de escritorio ocultas).
   - 768-1099: panel lateral estrecho, solo iconos.
   - >=1100px: panel lateral ancho con iconos + texto (estilo eToro),
               con secciones extra y desplegable "Más".
   ========================================================= */

/* Elementos solo-escritorio: ocultos en el modo móvil (barra inferior) */
.bottom-navbar .nav-label,
.bottom-navbar .nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  :root {
    --side-nav-w: 78px;
    /* ancho del panel lateral (modo iconos) */
  }

  /* La barra deja de estar abajo y pasa a la izquierda, en vertical */
  .bottom-navbar {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;

    /* En escritorio NO debe estar por encima de los modales/overlays de la app
       (calendario, previsualización de inversión, etc.): baja de 2147483647 a
       900, suficiente para tapar el contenido y las cabeceras sticky (z<=50),
       pero por debajo de los modales (z>=9999). */
    z-index: 900;
    background: #ffffff;

    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--side-nav-w);
    height: 100%;

    padding: 18px 10px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: none;
    border-right: 1px solid var(--line, #e5e7eb);
    box-shadow: 2px 0 12px rgba(0, 0, 0, .06);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Los items ya no se reparten el ancho (eso era para la barra horizontal) */
  .bottom-navbar .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 14px;
    /* El fondo del panel es blanco fijo; forzamos texto/icono oscuros para que
       en modo oscuro (donde --text pasa a claro) no queden blanco sobre blanco */
    color: #0f172a;
  }

  .bottom-navbar .nav-item:hover {
    background: rgba(15, 23, 42, .05);
  }

  .bottom-navbar .nav-item.active {
    background: rgba(15, 23, 42, .08);
    font-weight: 700;
  }

  .bottom-navbar .nav-item img {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .bottom-navbar .nav-item svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }

  /* Items solo-móvil: presentes en la barra inferior del móvil pero ocultos
     en el panel lateral de escritorio (p. ej. Comunidad) */
  .bottom-navbar .nav-mobile-only {
    display: none;
  }

  /* Secciones extra de escritorio (Noticias + grupo "Más") */
  .bottom-navbar .nav-desktop {
    display: flex;
  }

  .bottom-navbar .nav-group.nav-desktop {
    display: block;
  }

  /* Botón del grupo "Más" (reset de <button>) */
  .bottom-navbar .nav-group-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    /* color fijo oscuro (no 'inherit': el fondo del panel es blanco y en modo
       oscuro el color heredado del body sería claro → invisible) */
    color: #0f172a;
    text-align: left;
  }

  .bottom-navbar .nav-caret {
    display: none;
    /* sin sitio en modo iconos; visible en >=1100px */
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform .2s ease;
  }

  .bottom-navbar .nav-group.open .nav-caret {
    transform: rotate(180deg);
  }

  /* Submenú desplegable */
  .bottom-navbar .nav-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
  }

  .bottom-navbar .nav-group.open .nav-sub {
    display: flex;
  }

  .bottom-navbar .nav-subitem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
  }

  .bottom-navbar .nav-subitem svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .bottom-navbar .nav-subitem:hover {
    background: rgba(15, 23, 42, .05);
  }

  .bottom-navbar .nav-subitem.active {
    background: rgba(15, 23, 42, .08);
    font-weight: 700;
  }

  /* Accesibilidad: foco de teclado visible (los outline globales están
     anulados por script.js, así que usamos box-shadow) */
  .bottom-navbar .nav-item:focus-visible,
  .bottom-navbar .nav-subitem:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, .35);
  }

  /* El contenido se desplaza a la derecha para dejar hueco a la barra
     (en móvil se reservaba con padding-bottom; aquí lo anulamos) */
  body.has-bottom-nav {
    padding-bottom: 0 !important;
    padding-left: var(--side-nav-w) !important;
  }

  /* El menú de avatar es position:fixed dentro del topbar (que ahora está
     desplazado por el sidebar). Con width:100%/100vw se salía por la derecha;
     width:auto hace que ocupe exactamente entre left:0 y right:0 de su
     contenedor, sin desbordar. */
  .avatar-menu {
    width: auto !important;
  }

  /* El skeleton de carga tampoco debe quedar tapado por la barra lateral */
  html.ri-loading #ri-skeleton-screen {
    bottom: 0;
    left: var(--side-nav-w);
  }
}

/* Pantallas anchas (>=1100px): panel con etiquetas de texto, estilo eToro */
@media (min-width: 1100px) {
  :root {
    --side-nav-w: 232px;
  }

  .bottom-navbar {
    padding: 22px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-navbar .nav-item {
    justify-content: flex-start;
    padding: 11px 14px;
  }

  .bottom-navbar .nav-label {
    display: inline;
  }

  .bottom-navbar .nav-caret {
    display: block;
  }

  .bottom-navbar .nav-subitem {
    justify-content: flex-start;
    padding: 8px 14px 8px 26px;
    /* sangría: se ve que cuelga de "Más" */
  }

  /* Badge "BETA": en pantallas grandes va a la esquina superior IZQUIERDA del
     contenido, justo a la derecha del panel lateral (sin pisarlo). En móvil se
     queda arriba a la derecha (estilo inline de beta-badge.js). El !important
     es necesario para ganar a los estilos inline del badge. */
  #ri-beta-badge {
    left: calc(var(--side-nav-w, 232px) + 14px) !important;
    right: auto !important;
    /* arriba del todo: ya no hay campana a la izquierda que esquivar */
    top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
  }
}