/* 
   NUM INMOBILIARIA - CORE REDESIGN 2026
   Premium Light Theme.
*/

:root {
  --primary-color: #132c49;
  --accent-gold: #c5a059;
  --text-dark: #111111;
  --text-muted: #666666;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --font-main: 'Poppins', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   HEADER STYLES
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5% !important;
  z-index: 1000;
  /* El degradado inicial es oscuro para que se vea sobre el hero */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 20px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
  /* Blanco por defecto sobre Hero */
  transition: filter 0.3s ease;
}

.mega-menu,
.mobile-header {
  display: none !important;
}

nav ul {
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: #fff;
  /* Blanco sobre Hero */
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 300;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-gold);
}

/* --- NUEVOS ESTILOS HEADER (Estructura limpia sin UL) --- */
.desktop-nav {
  display: flex;
  gap: 35px;
  align-items: center;
}

.desktop-nav a {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 300;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--accent-gold);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.header-icons i {
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.header-icons i:hover {
  color: var(--accent-gold);
}

/* Ajuste específico para página de detalle: Header sólido o gradiente más fuerte */
.detalle-page header {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
}

/* ============================================================
   HERO SECTION (Mantiene estilo premium sobre imagen)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 8vh 5%;
  overflow: hidden;
  background-color: #000;
  /* Fondo base para carga de imagen */
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFadeScale 18s infinite ease-in-out;
}

.hero-slide:nth-child(1) {
  background-image: url('../images/hero_new_1.webp');
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  background-image: url('../images/hero_new_2.webp');
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  background-image: url('../images/hero_new_3.webp');
  animation-delay: 12s;
}

@keyframes heroFadeScale {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  10% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  43% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  pointer-events: none;
}

.hero-text-side {
  flex: 1;
  text-align: left;
  pointer-events: auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  margin: 0 0 15px 0;
  font-weight: 300;
  color: #fff;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.hero-search-bar {
  display: flex !important;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 10px 0;
  margin-left: 40px;
  pointer-events: auto;
}

.search-item {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 25px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  position: relative;
}

.search-item:last-child {
  border-right: none !important;
  min-width: 280px !important;
  flex-direction: row !important;
  align-items: center !important;
  padding-right: 15px !important;
}

.search-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.hero-search-bar select,
.hero-search-bar input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.search-input-group {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 10px;
}

.search-input-group input {
  flex: 1;
  width: auto !important;
  min-width: 120px;
}

.hero-search-bar select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 20px;
}

.search-item i.fa-chevron-down {
  position: absolute;
  right: 15px;
  bottom: 8px;
  font-size: 0.7rem;
  color: var(--accent-gold);
}

.search-submit {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.search-submit:hover {
  opacity: 1;
}

/* ============================================================
   ABOUT PREMIUM SECTION
   ============================================================ */
.about-premium {
  background-color: #fff;
  padding: 120px 5% !important;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.about-eyebrow .line {
  width: 40px;
  height: 1px;
  background-color: #000;
}

.about-eyebrow .eyebrow-text {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: capitalize;
  color: var(--text-dark);
  font-weight: 400;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 35px;
  font-weight: 300;
}

.about-description {
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  max-width: 550px;
  line-height: 1.8;
}

.about-image {
  flex: 1.2;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  filter: contrast(1.05);
}

/* ============================================================
   PORTFOLIO SPAIN (CUSTOM CARDS)
   ============================================================ */
.portfolio-spain {
  padding: 80px 5% !important;
  background-color: #fff !important;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.property-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
}

.property-card:hover .image-area {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 2px;
  transition: box-shadow 0.3s ease;
}

.card-img-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.card-img-slide.active {
  opacity: 1;
  z-index: 2;
}

.image-area img {
  display: none;
  /* Ocultar imgs estáticas si las hubiera por error */
}

.card-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.card-arrows i {
  color: #fff;
  font-size: 1.5rem;
  /* Slightly larger */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  /* FontAwesome Solid icons require font-weight: 900 */
  font-weight: 900;
}

.card-arrows i:hover {
  opacity: 1;
  transform: scale(1.1);
}

.info-area {
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  /* Línea gris suave */
  margin-bottom: 5px;
}

.prop-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.prop-price {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #000;
  letter-spacing: -0.5px;
}

.prop-address {
  font-size: 0.7rem;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.prop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #000;
}

.view-btn {
  color: #000;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* MORE LINK */
.more-link-wrapper {
  text-align: right;
  margin-top: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.more-btn {
  text-transform: lowercase;
  color: #bbb;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   MARKETING - LIGHT
   ============================================================ */
.servicios-marketing {
  background: #fff !important;
  padding: 80px 5%;
}

.contenedor-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card-servicio h3 {
  color: #fff;
  /* Se mantiene blanco por el overlay oscuro de la imagen */
}

.card-servicio p {
  color: rgba(255, 255, 255, 0.8);
}

.boton-detalles {
  border: 1px solid #fff;
  color: #fff;
}

/* FOOTER - LIGHT */
.footer {
  background: #ffffff;
  padding: 80px 5% 40px;
  border-top: 1px solid #eee;
  color: var(--text-dark);
}

.footer-logo {
  height: 24px;
  margin-bottom: 25px;
  filter: none;
  /* Logo original o oscuro */
}

.footer-tagline {
  color: var(--text-muted);
}

.footer-col h4 {
  color: var(--text-dark);
  font-weight: 600;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--text-dark);
}

/* Scroll Indicator - Dark version for visibility */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #fff, transparent);
}

.scroll-text {
  font-size: 0.6rem;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Swiper Hidden */
.swiper-pagination {
  display: none !important;
}

/* ============================================================
   STORYTELLING CAROUSEL SECTION
   ============================================================ */
.storytelling-section {
  padding: 100px 5%;
  background-color: #f9f9f9;
  /* Fondo muy sutil para diferenciar */
}

.storytelling-header {
  text-align: center;
  margin-bottom: 50px;
}

.storytelling-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.storytelling-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  /* Tamaño mucho más sutil que el H2 principal */
  font-weight: 300;
  line-height: 1.1;
  color: #000;
}

.carousel-wrapper-contained {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  /* Evita desbordamiento horizontal */
  padding-bottom: 40px;
}

/* Ajustes para las cards dentro del carrusel */
.cards-inmuebles-carousel .property-card {
  height: auto;
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.cards-inmuebles-carousel .image-area {
  height: 250px;
  /* Altura fija para uniformidad */
}

/* ============================================================
   SELL PROPERTY SECTION
   ============================================================ */
.sell-property-section {
  position: relative;
  height: 500px;
  background-image: url('/images/hero_new_3.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sell-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.sell-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.sell-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 300;
}

.sell-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 300;
}


/* ============================================================
   FOOTER ELEGANT
   ============================================================ */
.footer-elegant {
  background-color: #333;
  /* Gris oscuro elegante */
  color: #fff;
  padding: 80px 5%;
  font-family: var(--font-main);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* TOP ROW */
.footer-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav a {
  color: #aaa;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-label {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 5px;
}

/* BOTTOM ROW */
.footer-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #fff;
  font-size: 1.1rem;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: #fff;
  color: #000;
}

.footer-legal {
  max-width: 400px;
  font-size: 0.75rem;
  color: #888;
}

.footer-contact {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.footer-contact a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.footer-phone {
  font-size: 0.85rem;
  color: #aaa;
}

@media (max-width: 768px) {

  .footer-row-top,
  .footer-row-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
    align-items: center;
  }

  .footer-legal {
    max-width: 100%;
    margin-top: 10px;
  }
}



/* ============================================================
   DETALLE DE INMUEBLE (PREMIUM REDESIGN)
   ============================================================ */

/* CONTAINER & LAYOUT */
/* CONTAINER & LAYOUT */
.detalle-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* Columna ancha + Columna Formulario */
  gap: 60px;
  width: 90%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0;
}

@media (max-width: 900px) {
  .detalle-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* BREADCRUMB ALINEADO */
.breadcrumb-container {
  width: 90%;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0;
  font-size: 0.85rem;
  color: #666;
}

/* PORTADA CONTAINER: Ajustado para que empuje contenido hacia abajo */
/* PORTADA CONTAINER: Ajustado para que empuje contenido hacia abajo */
.portada-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  /* Un poco más de aire */
  height: 65vh;
  min-height: 500px;
  width: 90%;
  max-width: 1400px;
  /* Limitar ancho máximo para pantallas ultra-wide */
  margin: 100px auto 0;
  /* Centrado y con margen superior seguro */
  padding: 0;
  /* Padding lateral ELIMINADO para alineación exacta */
  background: #fff;
  overflow: hidden;
  position: relative;
  /* Contexto de pila */
  z-index: 10;
}

.portada-img-wrapper:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.portada-img-wrapper:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.portada-img-wrapper:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.portada-img-wrapper:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.portada-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.portada-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portada-img-wrapper:hover .portada-img {
  transform: scale(1.03);
}

/* Resto de estilos de grid de portada... */

/* BOTONES DEBAJO DE LA PORTADA: Forzar flujo normal (block level) */
.ver-galeria-wrapper {
  position: relative !important;
  /* Forza posicionamiento relativo, NO absoluto */
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 5%;
  background: #fff;
  z-index: 15;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
  width: 100%;
  /* Ocupa todo el ancho */
  margin-top: 0;
  /* Pegado justo debajo del grid */
}

/* Estilos de botones se mantienen, solo el wrapper cambia comportamiento */
.btn-ver-galeria,
.btn-ver-mapa,
#btn-ver-plano {
  padding: 14px 40px;
  border-radius: 0;
  /* Bordes rectos para elegancia minimalista, o leve radius */
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  color: var(--text-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  background: #fff;
  border: 1px solid #e0e0e0;
}

.btn-ver-galeria:hover,
.btn-ver-mapa:hover,
#btn-ver-plano:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-ver-galeria:active,
.btn-ver-mapa:active,
#btn-ver-plano:active {
  transform: translateY(0);
}

.btn-ver-galeria i,
.btn-ver-mapa i,
#btn-ver-plano i {
  font-size: 0.9rem;
}


@media (max-width: 768px) {
  .portada-container {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 en tablets */
    height: 48vh;
  }
}

@media (max-width: 640px) {
  .portada-container {
    display: none !important;
  }

  /* Swiper Móvil (Inyectado por JS) */
  #portada-swiper {
    display: block !important;
    height: 45vh;
    margin-top: 105px;
    /* <--- MUCHO mayor margen para evitar por completo el header */
    width: 100%;
    position: relative;
    padding: 0 10px;
  }

  .portada-swiper__swiper {
    width: 100%;
    height: 100%;
  }

  .portada-swiper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  /* Estilizar la paginación de Swiper ("puntitos") como líneas cortas en la parte inferior */
  .portada-swiper-pagination {
    bottom: 20px !important;
    /* <--- Lo levantamos un poco de la imagen para que destaque más */
    z-index: 100 !important;
    /* <--- Aseguramos que siempre estén por encima de la foto */
  }

  .portada-swiper-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.8) !important;
    /* <--- Más blancos y opacos para que resalten */
    opacity: 1;
    margin: 0 4px !important;
    transition: background 0.3s, width 0.3s;
  }

  .portada-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--accent-gold, #c5a059);
    width: 30px;
    /* Un poco más larga la activa */
  }

  .ver-galeria-wrapper {
    gap: 12px;
    padding: 20px 5%;
  }

  .btn-ver-galeria,
  .btn-ver-mapa,
  #btn-ver-plano {
    padding: 10px 15px;
    font-size: 0.65rem;
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* HEADER DEL INMUEBLE (Título, Precio, Dirección) */
.detalle-header-unified {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 30px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: last baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 20px;
}

.detalle-header-unified h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  margin: 0;
  max-width: 70%;
}


.header-price-block {
  text-align: right;
}

.precio {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.5px;
  position: relative;
  /* Para el tooltip */
  cursor: pointer;
}

.precio-tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-mxn {
  visibility: hidden;
  width: max-content;
  background-color: #222;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px 10px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  /* Posición encima del texto */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-mxn::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.precio:hover .tooltip-mxn,
.precio-tooltip:hover .tooltip-mxn {
  visibility: visible;
  opacity: 1;
}

.header-address {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BADGES & ICONS */
.header-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.badges-group {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  /* Más espacio entre badges e iconos */
}

.badge-pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f4f4f4;
  color: #555;
  border-radius: 2px;
}

.badge-outline {
  background: transparent;
  border: 1px solid #ddd;
}

.badge-dark {
  background: #222;
  color: #fff;
}

.header-icons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.icono {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
}

.icono i {
  font-size: 1.1rem;
  color: #000;
  /* Negro elegante */
}

/* DESCRIPCIÓN & TEXTOS */
.descripcion h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 400;
  border-bottom: 1px solid #eee;
  /* Línea sutil estilo editorial */
  padding-bottom: 10px;
  display: inline-block;
}

.descripcion p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 0.95rem;
  text-align: justify;
}

/* BOTÓN PDF */
.btn-descargar-pdf {
  width: auto;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid #ddd;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}

.btn-descargar-pdf i {
  font-size: 0.9rem;
}

.btn-descargar-pdf:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ASIDE: FORMULARIO STICKY */
.formulario-contacto-lateral {
  position: sticky;
  top: 100px;
  /* Debajo del header fixed */
  background: #fff;
  border: 1px solid #eee;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  height: fit-content;
}

.formulario-contacto-lateral h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.formulario-contacto-lateral p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.formulario-contacto-lateral input,
.formulario-contacto-lateral select,
.formulario-contacto-lateral textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fcfcfc;
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.formulario-contacto-lateral input:focus,
.formulario-contacto-lateral textarea:focus {
  border-color: #000;
}

.formulario-contacto-lateral textarea {
  resize: none;
  height: 100px;
  margin-bottom: 15px;
}

.btn-enviar {
  width: 100%;
  padding: 15px;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-enviar:hover {
  background: #333;
}

.btn-compartir-lateral {
  float: right;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* CARACTERÍSTICAS GRID */
.grid-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.grid-caracteristicas div {
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-caracteristicas i {
  color: #aaa;
  font-size: 0.8rem;
}

/* ============================================================
   SECCIÓN DE MODALES & POPUPS RESTAURADOS
   (Consolidado desde css/modales.css)
   ============================================================ */
.hidden {
  display: none !important;
}

.galeria-popup,
.mapa-popup,
.plano-popup,
.modal-compartir,
.imagen-ampliada {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}

.popup-content,
.modal-content,
.plano-dialog {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Galería Oscura */
.galeria-popup .popup-content {
  background: transparent;
  box-shadow: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 40px;
}

.galeria-popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.galeria-popup-grid img {
  width: 100%;
  height: auto;
  /* IMPORTANTE: Dejarlo auto o cover dependiendo del aspecto. Si estaba 200px estiraba las proporciones de algunas o de la marca de agua */
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.galeria-popup-grid img:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* Botones de cerrar */
.cerrar-popup,
.cerrar-modal,
.cerrar-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 100;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.3s;
}

.cerrar-popup:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mapa-popup .cerrar-popup {
  color: #000;
  background: #fff;
  top: 10px;
  right: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Compartir */
.modal-compartir .modal-content {
  max-width: 500px;
  background: #fff;
  color: #333;
}

.modal-compartir .cerrar-modal {
  color: #333;
  background: transparent;
  top: 10px;
  right: 15px;
}

/* Lightbox Imagen */
.imagen-ampliada {
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-ampliada img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.imagen-ampliada .cerrar-lightbox {
  position: fixed;
  top: 30px;
  right: 30px;
}

/* Planos Popup */
.plano-dialog {
  display: flex;
  flex-direction: column;
  height: 85vh;
  padding: 0;
  overflow: hidden;
  max-width: 1400px;
}

.plano-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.plano-titulo {
  font-weight: 600;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

.plano-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.plano-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

.plano-select {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.plano-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.plano-left {
  flex: 2;
  border-right: 1px solid #eee;
  position: relative;
  background: #f0f0f0;
  overflow: hidden;
}

.plano-right {
  flex: 1;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plano-stage {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.plano-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plano-preview-empty {
  color: #999;
  font-style: italic;
}

/* PINES Y CONOS */
.pin {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.pin:hover,
.pin.active {
  background: #000;
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 101;
}

.cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 80px solid rgba(255, 215, 0, 0.3);
  transform-origin: center bottom;
  transform: translate(-50%, -100%) rotate(var(--ang));
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .plano-body {
    flex-direction: column;
  }

  .plano-left {
    flex: 2;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .plano-right {
    flex: 1;
    height: 250px;
  }
}


/* ============================================================
   CHIP DE FOTOS (Consolidado desde css/chip.css)
   ============================================================ */
.chip-fotos {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  z-index: 20;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-fotos i {
  font-size: 0.9rem;
}


/* ============================================================
   CARACTERÍSTICAS GRID (Consolidado desde css/caracteristicas.css)
   ============================================================ */
.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.item-caracteristica {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.item-caracteristica:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #eee;
}

.item-caracteristica i {
  font-size: 1.4rem;
  color: #111;
  min-width: 30px;
  text-align: center;
}

.item-caracteristica div {
  display: flex;
  flex-direction: column;
}

.item-caracteristica h4 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 500;
}

.item-caracteristica span {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-top: 3px;
}

/* ============================================================
   AMENIDADES - ESTILO PREMIUM
   ============================================================ */
.contenedor-amenidades {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.amenidad-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #fcfcfc;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.amenidad-item:hover {
  background-color: #fff;
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  color: #222;
}

.amenidad-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.amenidad-item span {
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================================
   GALERÍA CON MARCA DE AGUA
   ============================================================ */
.wrapper-galeria-marcaagua {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  /* Garantiza proporción consistente */
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
}

.wrapper-galeria-marcaagua .imagen-popup {
  position: absolute;
  /* Para que encaje bien en el wrapper */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  z-index: 1;
}

.wrapper-galeria-marcaagua:hover .imagen-popup {
  transform: scale(1.05);
}

.marca-agua-centro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100px;
  /* Tamaño máximo */
  max-height: 80px;
  object-fit: contain !important;
  /* Forza la proporción correcta */
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(100%) brightness(1.5);
  z-index: 2;
}

/* Marca de agua en Lightbox (imagen ampliada) */
.marca-agua {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 200px;
  object-fit: contain !important;
  opacity: 0.6;
  pointer-events: none;
  z-index: 10;
  filter: grayscale(100%) brightness(1.5);
}

/* Lightbox Imagen - Ampliación HD */
.imagen-expandida-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(8px);
}

.imagen-expandida-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  height: 80vh;
  overflow: hidden;
  border-radius: 8px;
  /* Opcional */
}

.img-expandida {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease-out;
  /* Suaviza el zoom */
  transform-origin: center center;
}

/* Flechas Galería */
.flecha-galeria {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 100;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
  user-select: none;
}

.flecha-galeria:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.flecha-izq {
  left: 20vw;
  /* Ajustado para que queden afuera de la foto si es necesario, o adentro. El modal abarca 100vw, foto 90vw */
}

.flecha-der {
  right: 20vw;
}

@media (max-width: 768px) {
  .flecha-izq {
    left: 10px;
  }

  .flecha-der {
    right: 10px;
  }

  .imagen-expandida-wrapper {
    width: 100vw;
    height: 75vh;
  }
}

/* Controles de Zoom */
.zoom-controls {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 100;
}

.zoom-slider {
  -webkit-appearance: none;
  width: 200px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.zoom-slider:hover {
  opacity: 1;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

.zoom-percentage {
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 45px;
  text-align: right;
}

/* ============================================================
   GOOGLE MAPS AUTOCOMPLETE (DISEÑO PREMIUM OSCURO)
   ============================================================ */
.pac-container {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  font-family: var(--font-main);
  z-index: 10000 !important;
  color: #fff;
  margin-top: 5px;
}

.pac-item {
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccc;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.pac-item:hover,
.pac-item.pac-item-selected {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.pac-item-query {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 400;
  padding-right: 5px;
}

.pac-icon {
  filter: invert(1) opacity(0.7);
  margin-right: 10px;
}

.pac-matched {
  color: var(--accent-gold, #c5a059);
  font-weight: 600;
}

/* Ocultar el logo forzado de Google inferior si es posible (solo estético) */
.pac-logo::after {
  display: none;
}

/* ============================================================
   CHIPS DE BÚSQUEDA (MODO PREMIUM OSCURO)
   ============================================================ */
.chips-input {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  max-width: 100%;
}

.chips-input::-webkit-scrollbar {
  display: none;
  /* Ocultar scrollbar visual en chips */
}

.chips-input .chip {
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  color: #fff !important;
  padding: 4px 10px !important;
  border-radius: 15px !important;
  font-size: 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.chips-input .chip i {
  color: var(--accent-gold, #c5a059) !important;
}

.chips-input .chip .chip-x {
  color: var(--accent-gold, #c5a059) !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.chips-input .chip .chip-x:hover {
  filter: brightness(1.5);
}

/* ============================================================
   BOTÓN FLOTANTE TRADUCCIÓN (PREMIUM)
   ============================================================ */
.btn-traducir-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(20, 20, 20, 0.85);
  /* Fondo oscuro semitransparente */
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.4);
  /* Borde dorado tenue */
  padding: 10px 18px;
  border-radius: 30px;
  /* Forma de píldora */
  font-family: var(--font-main, 'Poppins', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.btn-traducir-flotante i {
  color: var(--accent-gold, #c5a059);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-traducir-flotante:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: var(--accent-gold, #c5a059);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-traducir-flotante:hover i {
  color: #fff;
  transform: rotate(360deg);
}

@media (max-width: 768px) {
  .btn-traducir-flotante {
    bottom: 20px;
    right: 20px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   AJUSTES RESPONSIVOS HOME PREMIUM (INDEX & INDEX-EN)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    padding: 0 5% !important;
    margin-bottom: 50px !important;
  }

  .about-container {
    gap: 40px;
  }

  .about-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  /* Ocultar header desktop completo */
  .header-container {
    display: none !important;
  }

  /* Mostrar y dar formato al header móvil */
  .mobile-header {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }

  .mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-logo {
    max-width: 75%;
    /* Evita que el logo empuje el botón de hamburguesa hacia afuera */
    display: flex;
    align-items: center;
  }

  .mobile-logo img {
    height: 16px !important;
    /* Más pequeño para celulares */
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
  }

  .hamburger-icon {
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 5px;
  }

  /* Panel del menú móvil oculto inicialmente */
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
  }

  /* Clase que el JavaScript le inyecta para abrirlo */
  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu a {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
  }

  .mobile-menu a:hover {
    color: var(--accent-gold);
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 850px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px 20px;
  }

  .hero-content-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 30px;
    justify-content: center !important;
  }

  .hero-search-bar {
    margin-left: 0 !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    background: rgba(15, 15, 15, 0.75) !important;
    /* Más oscuro para legibilidad móvil */
  }

  .search-item {
    flex: 1 1 50% !important;
    /* En tablet, 2 columnas para el buscador */
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 15px 20px !important;
    min-width: 0 !important;
  }

  .search-item:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .search-item:last-child {
    flex: 1 1 100% !important;
    border-left: none !important;
    border-bottom: none !important;
  }

  .about-container {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    width: 100%;
  }

  .sell-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 550px) {
  .property-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    text-align: left;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-search-bar {
    flex-direction: column !important;
    border-radius: 8px !important;
  }

  .search-item {
    flex: 1 1 100% !important;
    border-left: none !important;
    border-right: none !important;
  }

  .about-premium {
    padding: 70px 5% !important;
  }

  .sell-property-section {
    height: 400px;
  }

  .sell-title {
    font-size: 2rem;
  }

  .sell-description {
    font-size: 0.85rem;
  }
}