

/* ELIMINAMOS EL LÍMITE DE CUALQUIER CONTENEDOR INTERMEDIO */
#index-page .container,
#index-page .container-fluid {
    max-width: 1400px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 95% !important;
}

/* ASEGURAMOS QUE LAS FILAS NO TENGAN MÁRGENES NEGATIVOS */
#index-page .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
}


/* ================================================= */
/* === ESTRUCTURA MAESTRA DE TARJETAS (HOME) === */
/* ================================================= */

/* 1. Limpieza de Contenedores */
#index-page #products .main-content-wrapper {
    max-width: 3000px !important;
    width: 100% !important;
    margin: 40px auto !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
    border-radius: 20px;
}


/* 3. La Tarjeta: UN SOLA REGLA */
#index-page #products .property-card {
    width: 100% !important;
    max-width: 380px !important;
    height: 100% !important;
    min-height: 380px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* Contenedor de la cuadrícula en Home */
#index-page #products .box-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Productos sin espacios laterales */
#index-page #products {
    padding: 0;
    width: 100%;
    max-width: 100%;
    background: var(--color-fondo);
    margin: 0;
}

/* ================================================= */
/* CARRUSEL - ESTILO UNIFICADO */
/* Duplicado eliminado - ver línea 1509 */
/* ================================================= */

/* --- HERO SECTION --- */
/* 1. CONTENEDOR MAESTRO */
.hero-search {
    background: linear-gradient(135deg, rgba(0, 191, 174, 0.95), rgba(22, 160, 133, 0.92));
    min-height: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-blanco);
    padding: 4rem 2rem 100px 2rem;
    position: relative;
    overflow: hidden;
}

/* Carrusel del Hero - Imagen de fondo */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* 2. TEXTO DE FONDO: Estilo Tesla/Apple (Marca de Agua) */
.slide-overlay {
    position: absolute !important;
    top: 45% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 0 !important;            /* Siempre detrás */
    text-align: center !important;
    width: 100% !important;
    pointer-events: none;
    user-select: none;
}

.slide-title {
    font-family: 'Inter', 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: 7rem !important;
    letter-spacing: 15px !important;
    color: rgba(255, 255, 255, 0.02) !important;
    position: absolute !important;
    top: 20px !important;               /* Pegada arriba, fuera del camino */
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    opacity: 0.02 !important;           /* Textura sutil */
    z-index: 0 !important;
    margin: 0 !important;
}

/* 2. TEXTO DE FONDO: Look Editorial (Tesla Style) */
/* 2. LA LETRA GIGANTE: Anclada al techo */
.hero-swiper .swiper-slide h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-size: 7rem !important;
    letter-spacing: 15px !important;
    color: rgba(255, 255, 255, 0.02) !important;
    position: absolute !important;
    top: 20px !important;               /* Pegada arriba, fuera del camino */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 0 !important;
    user-select: none;
    text-transform: uppercase;
    opacity: 0.02 !important;           /* Textura sutil */
    margin: 0 !important;
    white-space: nowrap;
}

/* 3. CONTENIDO DEL HERO: El árbitro central */
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* CAMBIO CLAVE: Centrado total */
    min-height: 350px !important;       /* Asegura que el contenedor tenga espacio */
    padding-top: 60px !important;       /* El "empuje" para bajar título y buscador */
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
    z-index: 10 !important;
}

/* Estilos para los controles del carrusel */
.hero-swiper .swiper-pagination {
  bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.7;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-primario);
  opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  display: none;
  color: white;
  background: rgba(0,0,0,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-top: -25px;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--color-primario);
}

/* Responsive */
@media (max-width: 768px) {
  .slide-title {
    font-size: 2rem;
  }

  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .hero-swiper .swiper-button-next::after,
  .hero-swiper .swiper-button-prev::after {
    font-size: 16px;
  }

  /* 3. ARREGLO PARA MÓVIL (F12 check) */
  .hero-content {
    padding-top: 100px !important; /* Más espacio en móvil para no tapar el título */
  }

  .search-form-container {
    margin-top: 30px !important;
  }
}

/* 4. EL TÍTULO: Que resalte más */
/* 3. TÍTULO Y SUBTÍTULO: Los protagonistas */
/* 3. TÍTULO Y BOTÓN BUSCAR */
.hero-title-animated {
    font-size: 3.8rem !important;
    letter-spacing: -1.5px !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 5px !important;
    z-index: 10 !important;
    position: relative;
}

/* 3. SUBTÍTULO: Mayor contraste */
/* 4. SUBTÍTULO: Aseguramos que se vea */
.hero-subtitle {
    margin-top: 20px !important;
    display: block !important;
    z-index: 10 !important;
    font-size: 1.8rem;
    opacity: 0.95;
    font-weight: 500 !important;
    max-width: 700px;
    text-align: center;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important; /* Sombra fuerte para legibilidad */
}

.elite-banner-container {
  margin-top: 0;
  margin-bottom: 60px;
}

.destacados {
  margin-bottom: 40px;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-texto);
}

/* 4. TÍTULO QUE RESALTA */
/* 1. ANIMACIÓN DE ENTRADA: Que el Hero "despierte" al cargar */
/* 3. TÍTULO Y SUBTÍTULO: En su zona segura */
.hero-text-content {
    margin-top: 0 !important;           /* Ya no necesita margen porque el padre lo centra */
    position: relative;
    z-index: 10 !important;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. EL BUSCADOR "GLASS" PERFECTO */
/* 4. EL BUSCADOR: Espaciado perfecto */
.search-form-container {
    background: rgba(255, 255, 255, 0.05) !important; /* Más sutil todavía */
    backdrop-filter: blur(20px) !important;          /* Máximo efecto cristal */
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;                 /* Píldora perfecta */
    box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
    
    /* CENTRADO MAESTRO */
    width: 100% !important;
    max-width: 950px !important;
    margin: 0px auto 0 auto !important;        /* Separación del subtítulo */
    display: flex !important;
    justify-content: center !important;
    z-index: 20 !important;
}

@media (min-width: 768px) {
    .search-form-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr auto !important;
        align-items: center !important;
        gap: 15px !important;
    }
}

.search-field {
  display: flex;
  align-items: center;
  background: var(--color-blanco);
  border-radius: .5rem;
  padding: 0.5rem;
}

.search-field i {
  font-size: 1.8rem;
  color: var(--color-gris);
  margin-right: 1rem;
}

.search-field input, .search-field select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 1.5rem 0;
  font-size: 1.6rem;
  color: var(--color-texto);
}

.btn-search-hero {
  background: var(--color-acento);
  color: var(--color-texto);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: none;
  border-radius: .5rem;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}

.btn-search-hero:hover {
  background: var(--color-acento-claro);
}

/* Botón buscar con naranja vibrante */
/* 2. BOTÓN DE BUSCAR: Efecto de brillo al pasar el mouse */
.search-form-container button {
    border-radius: 50px !important;
    padding: 10px 30px !important;
    background: #ffaa33 !important; /* Un naranja vibrante para que salte al ojo */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.search-form-container button:hover {
    transform: scale(1.05) !important;
    background: #ffb84d !important; /* Un tono más claro al hover */
    box-shadow: 0 0 20px rgba(255, 170, 51, 0.4) !important;
}

/* 3. INPUTS DEL BUSCADOR: Que se iluminen al escribir */
.search-form-container input:focus, 
.search-form-container select:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-acento-claro);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.4rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- SECCIÓN DE CATEGORÍAS --- */
/* 4. AJUSTE DE CATEGORÍAS: Aseguramos que suban */
.categories-showcase {
  background: var(--color-blanco);
  padding: 8rem 2rem 8rem;        /* Reducido de 16rem a 8rem */
  margin-top: -20px !important;   /* Un pequeño empujón hacia arriba */
  position: relative;
  z-index: 10;
}

/* BARRA DE CATEGORÍAS HORIZONTAL - Centrada con aire */
.categories-section {
    background: #fff;
    padding: 30px 0 !important;
    margin-top: 0 !important;
    border-bottom: 1px solid #e0e0e0;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05) !important; /* Sutil sombra superior */
}

.categories-horizontal-bar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0 20px;
}

/* Tablet: 4 columnas */
@media (max-width: 992px) {
  .categories-horizontal-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile: 3 columnas */
@media (max-width: 768px) {
  .categories-horizontal-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 15px;
  }
}

/* Very small: 2 columnas */
@media (max-width: 480px) {
  .categories-horizontal-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

.category-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  line-height: 1.2;
}

.categories-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.category-card {
  background: var(--color-blanco);
  border-radius: 2rem;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--sombra-media);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
}

.category-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 20px 40px rgba(0, 191, 174, 0.15);
}

.category-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon i {
  font-size: 3rem;
  color: white;
}

.category-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-card p {
  font-size: 1.5rem;
  color: var(--color-gris);
  margin-bottom: 1.5rem;
}

.category-count {
  display: inline-block;
  padding: .8rem 1.6rem;
  background: rgba(0, 191, 174, 0.1);
  color: var(--color-primario);
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
}


/* ================================================= */
/* === CARRUSEL INFINITO - ESTILOS CRÍTICOS === */
/* Asegura que las tarjetas no se encojan y el contenedor no deje huecos */
/* ================================================= */

/* AJUSTE MAESTRO PARA CARRUSEL INFINITO */
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.carousel-track .property-card {
    flex: 0 0 auto;
    width: 350px;
    max-width: 350px;
    scroll-snap-align: start;
}

/* Ocultar barra de scroll */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ================================================= */
/* === SECTION-HEADER: Separador elegante de secciones === */
/* Línea fina con corona y título centrado */
/* ================================================= */
.section-header {
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    font-size: 18px;
    max-width: 30px !important;
    height: auto !important;
}

.header-icon i, 
.header-icon svg {
    font-size: 24px !important;
}

/* Corona SVG premium */
.crown-svg-premium {
    width: 60px !important;
    height: auto !important;
    max-width: 60px !important;
}

/* ========================================================= */
/* === TOP SELECCIÓN PREMIUM: CORONA CENTRADA CON LÍNEAS === */
/* ========================================================= */

/* 1. Contenedor Maestro: Centrado total y espacio elegante */
.top-seleccion-premium {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin: 60px 0 10px 0 !important;
    padding-bottom: 0 !important;
    padding-left: 40px !important; /* EMPUJA LA CORONA HACIA LA DERECHA */
    width: 100% !important;
    max-width: 1350px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. El Contenido Central (Corona + Texto) */
.top-seleccion-premium .header-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; /* Aire fino para que no se pegue al texto */
    flex-shrink: 0 !important;
}

/* 3. La Corona Dorada */
.top-seleccion-premium .crown-svg-premium {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
    color: #d4af37 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.top-seleccion-premium .crown-svg-premium svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* 4. El Título */
.top-seleccion-premium .header-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
}

/* 5. Las Líneas Divisorias Doradas */
.top-seleccion-premium .header-line {
    flex-grow: 1 !important;
    height: 2px !important;
    background-color: #d4af37 !important;
}

.top-seleccion-premium .line-left {
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.8)) !important;
}

.top-seleccion-premium .line-right {
    background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.8)) !important;
}

.header-title {
    font-size: 14px;
    font-weight: 700;
    color: #b8860b; /* Un dorado elegante, no chillón */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.heading {
  text-align: center;
  font-size: 3.5rem;
  color: var(--color-texto);
  margin-bottom: 5rem;
}

.heading span {
  background: var(--color-primario);
  color: #fff;
  display: inline-block;
  padding: .5rem 3rem;
  clip-path: polygon(100% 0, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}


/* Asegurar que las tarjetas ocupen todo el ancho */
.ads-row .box {
    width: 100% !important;
    max-width: none !important;
}

/* Título de sección dorado para Anuncios Destacados */
.section-header-golden {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto 5px auto;
    width: 95%;
    max-width: 1200px;
}

.header-title-golden {
    font-size: 20px;
    font-weight: 700;
    color: #D4AF37 !important; /* Dorado */
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    letter-spacing: 1px;
}

.header-line-golden {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.8));
}

.header-line-golden:last-child {
    background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.8));
}

.ads-row:last-child {
  margin-bottom: 0;
}

/* Additional home-specific styles from style.css */
.section-title { text-align: center; font-size: 3.2rem; font-weight: 700; margin-bottom: 5rem; }
.section-title span { color: var(--color-primario); }

/* Esta regla hace que el contenido principal se estire y empuje el footer hacia abajo */
main, section.hero-search, section.categories-showcase, section.products {
    flex-grow: 1;
}

/* --- TARJETAS DE PRODUCTO (.box) --- */
/* Los estilos principales están en el COMBO MAESTRO arriba */
.box {
    transition: all 0.4s;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Todas la misma altura */
}
.box:hover {
    transform: translateY(-1rem);
    box-shadow: var(--sombra-media);
}
.box .image-container {
    width: 100%;
    height: 240px; /* Mismo alto que el COMBO MAESTRO actualizado */
    position: relative;
    background-color: #f5f5f5;
    border-radius: 0 !important; /* Sin border-radius, el padre ya lo tiene */
    overflow: hidden !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box .swiper {
    width: 100%;
    height: 100%;
    border-radius: 0 !important; /* Sin border-radius */
    overflow: hidden !important;
}
.box .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}
.box .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important; /* Sin border-radius individual */
}

.box .content {
    width: 100%;
    padding: 15px;
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    box-sizing: border-box;
    flex-grow: 1 !important; /* Esto obliga a la tarjeta a estirarse para que todos los botones queden abajo */
    justify-content: space-between !important;
}
/* 1. Estilos del Precio: CLAVE para el diseño de Bienes Raíces. */
.box .content .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 8px;
    min-height: 60px !important; /* ESPACIO RESERVADO PARA EL AVATAR - aunque no haya foto */
}

.box .content .price-row .price {
    height: auto;
    font-size: 2rem;
    font-weight: 700;
    color: #008080;
    flex-shrink: 0;
    margin-bottom: 0;
    letter-spacing: -0.2px;
}

/* 2. Estilos del Título/Nombre del Producto (e.g., kia picanto) */
.box .content h3 {
    height: auto;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d2d2d;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
    flex-shrink: 0;
    letter-spacing: -0.2px;
}

/* 3. Estilos de Ubicación/Texto Secundario (e.g., Colón, tu oportunidad) */
.box .content .location {
    height: auto;
    font-size: 1.2rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 6px;
    margin-top: auto !important;
    flex-shrink: 0;
    font-weight: 400;
}

.box .content .location i {
    font-size: 1rem;
    color: #888;
}

/* 4. Estilos de Detalles Adicionales (Año, KM, M2, etc.) */
.box .content .property-details,
.box .content .vehicle-details,
.box .content .real-estate-details,
.box .content .electronics-details {
    height: auto !important;
    font-size: 1.3rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.6rem !important;
    color: #444 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    flex-shrink: 0;
    font-weight: 500 !important;
}

/* Mostrar solo 3 atributos principales */
.box .content .property-details span:nth-child(n+4),
.box .content .vehicle-details span:nth-child(n+4),
.box .content .real-estate-details span:nth-child(n+4),
.box .content .electronics-details span:nth-child(n+4) {
    display: none !important;
}

.box .content .property-details i,
.box .content .vehicle-details i,
.box .content .real-estate-details i,
.box .content .electronics-details i {
    font-size: 1.1rem;
    color: #666;
}

/* 5. OCULTAR DESCRIPCIÓN EN TARJETAS */
.box .content .description {
    display: none !important;
}

/* Estilos del Avatar alineado con precio */
.box .content .price-row .vendor-avatar {
    margin-top: 0 !important;
    flex-shrink: 0;
    margin-left: auto;
}

.box .content .description {
    margin-bottom: 5px !important;
}

/* 6. Estilos del Botón de Contacto: Ancho completo y color Turquesa */
.box .content .btn-contact {
    width: 100%;
    height: auto;
    padding: 1.2rem 2rem;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--color-primario); /* Turquesa */
    color: var(--color-blanco);
    margin-top: auto !important; /* SIEMPRE AL FONDO - como soldados alineados */
    align-self: stretch;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.box .content .btn-contact:hover {
    background: var(--color-secundario); /* Turquesa más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.35);
}

/* Estilos para botones del carrusel en tarjetas .box - Flechas pequeñas DENTRO de las imágenes */
.box .swiper-button-prev,
.box .swiper-button-next {
    position: absolute;
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 50%; /* Centrado verticalmente en la imagen */
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Posicionar flechas DENTRO de la imagen (no en los bordes) */
.box .swiper-button-prev {
    left: 15px;
}

.box .swiper-button-next {
    right: 15px;
}

.box .swiper-button-prev::after,
.box .swiper-button-next::after {
    font-size: 14px !important;
    font-weight: bold;
}

.box .swiper-button-prev:hover,
.box .swiper-button-next:hover {
    background-color: var(--color-primario) !important;
}

/* Ocultar flechas en móvil para evitar problemas de espacio */
@media (max-width: 768px) {
    .box .swiper-button-prev,
    .box .swiper-button-next {
        width: 40px;
        height: 40px;
        left: 10px;
    }
    
    .box .swiper-button-next {
        right: 10px;
        left: auto;
    }
}

/* --- AVATAR DEL VENDEDOR EN TARJETA --- */
/* CAMISA DE FUERZA 48px - Prohibido estirarse */

.vendor-avatar:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 191, 174, 0.3);
}

.vendor-name-tooltip {
    position: absolute;
    bottom: -35px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1.2rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vendor-avatar:hover .vendor-name-tooltip {
    opacity: 1;
}

/* ============================================
   AVATAR - INVISIBLE PERO CON ESPACIO RESERVADO
   (Cuando no hay foto, el hueco se queda vacío)
   ============================================ */

/* Por defecto, el avatar es invisible pero ocupa espacio */
.vendor-avatar {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* SOLO cuando hay imagen, se muestra */
.vendor-avatar.has-image {
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- MEDIA QUERY PARA MÓVILES --- */
@media (max-width: 768px) {
    /* Estilos adicionales para móvil (grids en líneas 2914+) */
    .vendor-avatar {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }

    .box-container {
        padding: 0 0.5rem;
    }

    .hero-search {
        padding: 4rem 1rem 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .ads-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 1rem;
    }

    .box {
        width: 100%;
    }

    .box .content {
        padding: 0.8rem;
    }

    .vendor-avatar {
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }

    .box-container {
        padding: 0;
    }

    .hero-search {
        padding: 2rem 0.5rem 1rem;
        min-height: 60vh;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* --- ESTILOS PARA CARRUSEL DE PRODUCTOS --- */
.product-swiper {
    width: 100% !important;
    overflow: hidden !important;
    position: relative;
    padding: 0 !important;
}

.product-swiper .swiper-wrapper {
    display: flex !important;
    transition-timing-function: linear;
}

/* LÍNEA 1238 - ANCHO AUTO PARA CARRUSEL FINITO */
#index-page .product-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0 !important;
    margin-right: 25px !important;
    margin-left: 0 !important;
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column;
}

/* LÍNEA 1214: ACTUALIZACIÓN DE POTENCIA MÁXIMA */
#index-page .product-swiper .swiper-slide img,
#index-page .ad-card .image-container img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    min-width: 100% !important;
    display: block !important;
}

/* Overlay para permitir deslizamiento sobre iframes de video */
.swiper-slide-video {
    position: relative;
}

/* Áreas táctiles en los bordes para deslizar sobre videos */
.video-slide {
    position: relative;
}

.swiper-edge-left,
.swiper-edge-right {
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: grab;
}

.swiper-edge-left {
    left: 0;
}

.swiper-edge-right {
    right: 0;
}

.swiper-edge-left:active,
.swiper-edge-right:active {
    cursor: grabbing;
}

/* En desktop, reducir el ancho de las áreas táctiles */
@media (min-width: 769px) {
    .swiper-edge-left,
    .swiper-edge-right {
        width: 15%;
    }
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: white;
}

/* === CARRUSEL DE TARJETAS TOP/DESTACADO === */
.featured-carousel-wrapper {
  margin-bottom: 0;
  position: relative;
  overflow: visible !important; /* Permite que las sombras de tarjetas se vean */
  padding: 20px 70px; /* Espacio para flechas y sombras */
}

/* Flechas posicionadas dentro del wrapper */
.featured-prev,
.featured-next {
    background: linear-gradient(135deg, #00d084 0%, #00bf6f 100%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.featured-prev {
  left: 10px;
}

.featured-next {
  right: 10px;
}

.featured-prev:hover,
.featured-next:hover {
    background: linear-gradient(135deg, #00e090 0%, #00d080 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 208, 132, 0.6);
}

.featured-swiper {
  padding: 0 !important;
  overflow: visible !important; /* Permite que las sombras de tarjetas se vean */
  width: 100% !important;
  box-sizing: border-box;
  margin: 0; /* Sin margen, las flechas quedan afuera */
}

.featured-swiper .swiper-wrapper {
  width: auto !important;
  box-sizing: border-box;
}

.featured-swiper .swiper-button-next:after,
.featured-swiper .swiper-button-prev:after {
    font-size: 16px;
    color: rgba(0,0,0,0.4);
    font-weight: bold;
}

.featured-swiper .swiper-slide {
  height: auto;
  overflow: visible;
  display: flex;
  flex-shrink: 0;
}

.featured-prev:hover,
.featured-next:hover {
    background-color: #00bfae;
    box-shadow: 0 4px 12px rgba(0, 191, 174, 0.3);
    color: white;
    transform: scale(1.05);
}

/* Ocultar estado deshabilitado */
.featured-prev:disabled,
.featured-next:disabled {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
  visibility: hidden !important;
}

/* Las flechas de los carruseles internos (product-swiper) ahora son visibles */
/* .featured-swiper .product-swiper .swiper-button-prev,
.featured-swiper .product-swiper .swiper-button-next {
  display: none !important;
} */

/* Ocultar la flecha deshabilitada */
.featured-carousel-wrapper .swiper-button-disabled,
.featured-prev.swiper-button-disabled,
.featured-next.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
  visibility: hidden !important;
}

.featured-swiper .swiper-button-next:hover,
.featured-swiper .swiper-button-prev:hover {
    background-color: #00bfae;
    box-shadow: 0 4px 12px rgba(0, 191, 174, 0.3);
    transform: scale(1.05);
}

.featured-swiper .swiper-button-next:hover:after,
.featured-swiper .swiper-button-prev:hover:after {
    color: #ffffff;
}

.featured-pagination {
    bottom: -30px !important;
    display: block !important;
    position: relative !important;
    text-align: center;
    margin-top: 20px;
}

.featured-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-pagination .swiper-pagination-bullet:hover {
    background: #999;
    transform: scale(1.2);
}

.featured-pagination .swiper-pagination-bullet-active {
    background: #00bfae;
    transform: scale(1.3);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .featured-swiper {
        padding: 0 35px;
    }
    
    .featured-swiper .swiper-button-next,
    .featured-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .featured-swiper .swiper-button-next:after,
    .featured-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after {
    font-size: 15px;
    font-weight: bold;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background: var(--color-primario);
    /* Sin transform para que no se mueva */
}

.product-swiper .swiper-pagination {
    bottom: 10px;
}

.product-swiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 8px;
    height: 8px;
}

.product-swiper .swiper-pagination-bullet-active {
    background: var(--color-primario);
    opacity: 1;
    width: 10px;
    height: 10px;
}

/* === FLECHAS VISIBLES EN TARJETAS === */
/* Hacer las flechas siempre visibles en desktop */
@media (min-width: 769px) {
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        opacity: 1 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* También mostrar en hover para property-card */
    .property-card:hover .swiper-button-next,
    .property-card:hover .swiper-button-prev {
        opacity: 1;
    }
}

/* En móvil: ocultar botones y permitir solo navegación táctil (swipe) */
@media (max-width: 768px) {
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        display: none !important;
    }
}

/* ================================================= */
/* === ESTILOS PARA CARRUSELES DE FILAS === */
/* ================================================= */
/* CARRUSEL - ESTILO UNIFICADO */
/* ================================================= */


/* Versión con #index-page para mayor especificidad */
#index-page .carousel-row-wrapper {
    position: relative;
    width: 100%;
    left: auto;
    transform: none;
    margin: -20px 0 50px 0 !important;
    overflow: visible !important;
    padding: 0;
}


/* Responsive para tablet */
@media (max-width: 1024px) {
    .carousel-row-wrapper,
    #index-page .carousel-row-wrapper {
        width: 100%;
        left: auto;
        transform: none;
        padding: 0 20px;
    }
    
    .row-nav-prev,
    .row-nav-next {
        display: none;
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .carousel-row-wrapper,
    #index-page .carousel-row-wrapper {
        width: 100%;
        left: auto;
        transform: none;
        padding: 0 10px;
    }
}

/* Responsive para móvil pequeño */
@media (max-width: 480px) {
    .carousel-row-wrapper,
    #index-page .carousel-row-wrapper {
        padding: 0 10px;
    }
}

/* ================================================= */
/* PRODUCTOS - RESPONSIVE */
/* ================================================= */

/* Tablet */
@media (max-width: 1024px) {
    #index-page #products {
        padding: 0 20px;
    }
    
    #index-page #products .box-container {
        padding: 0 20px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    #index-page #products {
        padding: 0 10px;
    }
    
    #index-page #products .box-container {
        padding: 0 10px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    #index-page #products {
        padding: 0 10px;
    }
    
    #index-page #products .box-container {
        padding: 0 10px;
    }
}

/* ================================================= */
/* CARRUSEL - ESTILO UNIFICADO Y OPTIMIZADO */
/* ================================================= */

.row-carousel .swiper-wrapper {
    width: 100% !important;
    display: flex !important;
    gap: 15px !important;
    padding: 0 !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
}

/* Añadimos un margen interno al carrusel para que las tarjetas no choquen con las flechas */
.row-carousel .swiper {
    padding: 0 !important;
    overflow: visible !important;
}

/* 3. El slide con ancho fijo para que coincida con el grid */
.row-carousel .swiper-slide {
    width: 24% !important;
    flex-shrink: 0 !important;
    margin: 0 8px !important;
    padding: 0 !important;
    height: auto !important;
    display: flex !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    background: transparent !important;
}

/* Tablet: 2 columnas */
@media (max-width: 1024px) {
    .row-carousel .swiper-slide {
        width: 48% !important;
    }
}

/* Mobile: 1 columna */
@media (max-width: 768px) {
    .row-carousel .swiper-slide {
        width: 85% !important;
        margin: 0 8px !important;
    }
}

/* 4. RESET TOTAL DEL CONTENEDOR - La tarjeta dentro del slide */
.row-carousel .ad-card,
.row-carousel .property-card,
.row-carousel .box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border: none !important;
    display: flex;
    flex-direction: column;
}

/* 5. FORZAMOS AL CONTENEDOR DE LA IMAGEN A IGNORAR SWIPER */
.row-carousel .ad-card .card-image, 
.row-carousel .ad-card .image-wrapper,
.row-carousel .ad-card .image-container,
.row-carousel .ad-card [class*="image"] {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
}

/* 6. LA IMAGEN ROMPE CUALQUIER CANDADO */
.row-carousel .ad-card img {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important; /* Por si tiene un max-width escondido */
    transform: none !important; /* Por si Swiper la está centrando */
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
}

/* 7. EL TEXTO: Re-ajustamos para que no quede pegado a los bordes */
.row-carousel .ad-card .content,
.row-carousel .ad-card .card-body,
.row-carousel .ad-card .card-content {
    padding: 15px !important;
    width: calc(100% - 30px) !important;
}

/* Flechas rectangulares para navegación de filas - Estilo Encuentra24 */
.row-nav-prev,
.row-nav-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px;
}

.row-nav-prev {
    left: 0 !important;             /* Pegada al borde izquierdo */
    border-radius: 0 12px 12px 0 !important; /* Curva solo hacia adentro */
}

.row-nav-prev:hover,
.row-nav-next:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    color: #00bfae;
}

.row-nav-prev i,
.row-nav-next i {
    font-size: 18px;
    font-weight: 900;
}

/* --- AJUSTE DE ALTURA Y COLOR TURQUESA FINAL --- */

.row-nav-prev,
.row-nav-next {
    height: 120px !important;       /* Altura reducida para que no sea tan largo */
    width: 45px !important;
    top: 40% !important;            /* Centrado a la altura de la imagen */
    transform: none !important;     /* Sin centrado vertical */
    margin-top: 0 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd;
    transition: all 0.3s ease !important; /* Para que el cambio de color sea suave */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 100;
    color: #333 !important;
}

/* EFECTO HOVER: Cuando pasas el mouse se pone turquesa */
.row-nav-prev:hover,
.row-nav-next:hover {
    background-color: #00ced1 !important; /* Turquesa */
    border-color: #00ced1 !important;
    color: #ffffff !important;
}

/* Mantener el pegado a los bordes */
.row-nav-prev {
    left: 0 !important;
    border-radius: 0 10px 10px 0 !important;
}

.row-nav-next {
    right: 0 !important;
    border-radius: 10px 0 0 10px !important;
}

.row-nav-prev i,
.row-nav-next i {
    font-size: 18px;
    font-weight: 900;
}

/* ================================================= */
/* CARRUSEL - MEDIA QUERIES YA UNIFICADOS ARRIBA (líneas 1523-1552) */
/* ================================================= */

/* ================================================= */
/* === FLECHAS DEL CARRUSEL EN DETALLE PRODUCTO === */
/* ================================================= */

/* Contenedor del carrusel principal */
.product-gallery-swiper {
    position: relative;
    overflow: visible !important;
}

/* Flechas del carrusel de detalle */
.product-gallery-swiper .swiper-button-next,
.product-gallery-swiper .swiper-button-prev {
    z-index: 100 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #333 !important;
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Posicionar flechas fuera de la imagen */
.product-gallery-swiper .swiper-button-prev {
    left: -22px !important;
}

.product-gallery-swiper .swiper-button-next {
    right: -22px !important;
}

/* Iconos de las flechas */
.product-gallery-swiper .swiper-button-next::after,
.product-gallery-swiper .swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Hover en flechas */
.product-gallery-swiper .swiper-button-next:hover,
.product-gallery-swiper .swiper-button-prev:hover {
    background: #2da687 !important;
    color: white !important;
    transform: scale(1.1);
}

/* Responsive: ajustar flechas en móvil */
@media (max-width: 768px) {
    .product-gallery-swiper .swiper-button-next,
    .product-gallery-swiper .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }
    
    .product-gallery-swiper .swiper-button-prev {
        left: 10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .product-gallery-swiper .swiper-button-next {
        right: 10px !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .product-gallery-swiper .swiper-button-next::after,
    .product-gallery-swiper .swiper-button-prev::after {
        font-size: 16px !important;
    }
}

/* ================================================= */
/* === BANNER DE ELITE "TOP SELECCIÓN" === */
/* Banner horizontal único que rompe la cuadrícula */
/* ================================================= */


/* Responsive para el contenedor principal */
@media (max-width: 768px) {
    .main-content-wrapper {
        padding: 20px 20px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        padding: 15px 15px;
    }
}

/* Contenedor del Banner Elite - Ocupa todo el ancho */
.elite-banner-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin-top: -30px;
    margin-bottom: 100px;
}

/* === SLIDER CONTAINER PARA MÚLTIPLES BANNERS === */
.elite-slider-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3),
              0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Slides con transición de fundido */
.elite-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Transición sedosa de 800ms */
    display: flex;
    pointer-events: none;
}

.elite-banner-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* Flechas de navegación minimalistas */
.elite-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.4rem;
}

.elite-slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(0, 193, 171, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.elite-slider-nav.prev {
    left: 40px !important;
}

.elite-slider-nav.next {
    right: 40px !important;
}

/* Indicadores de progreso estilo Instagram */
.elite-progress-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.elite-progress-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elite-progress-bar:hover {
    background: rgba(255, 255, 255, 0.4);
}

.elite-progress-bar .progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c1ab, #4ade80);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.elite-progress-bar.active .progress-fill {
    animation: progressFill 5s linear forwards;
}

.elite-progress-bar.completed .progress-fill {
    width: 100%;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Actualizar animación para 6 segundos */
.elite-progress-bar.active .progress-fill {
    animation: progressFill 6s linear forwards;
}

/* Pausar animación al hacer hover */
.elite-slider-wrapper:hover .elite-progress-bar.active .progress-fill {
    animation-play-state: paused;
}

/* === SOPORTE DE VIDEO PARA BANNER DE ELITE === */
.elite-banner-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Video de fondo estilo cine */
.elite-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Contenedor de imagen o video */
.elite-banner-image,
.elite-banner-video-container {
    position: relative;
    width: 50% !important;
    height: 100% !important;
    min-height: 350px;
    overflow: hidden;
}

/* Overlay para videos con botón flotante */
.elite-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 5;
}

.elite-video-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-self: flex-start;
}

.elite-video-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* === TAG PATROCINADO === */
.sponsored-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sponsored-tag i {
    font-size: 1rem;
    color: #fbbf24;
}

/* Tag alternativo para contenido orgánico */
.organic-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 193, 171, 0.2);
    backdrop-filter: blur(5px);
    color: #00c1ab;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(0, 193, 171, 0.3);
}

/* Indicador de video reproduciéndose */
.video-playing-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.video-playing-indicator i {
    color: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ELIMINAMOS CUALQUIER CAPA QUE ENSUCIE */
.elite-banner::after, 
.elite-banner::before {
    display: none !important;
}

/* 1. EL BANNER: Azul profundo del pie de página */
.elite-banner {
  background: #0a192f;
  width: 100%;
  min-height: 450px;
  display: flex;
  border: none;
  flex-direction: row; /* imagen izquierda, texto derecha */
}

.banner-text {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Alias for existing structure */
.elite-banner-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Banner para móvil */
.mobile-banner {
  display: none; /* base */
}

@media (max-width: 600px) {
  .elite-banner-container {
    width: 100%;
    left: 0;
    transform: none;
    margin: 0 auto 20px;
  }

  .elite-slider-wrapper {
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .elite-banner {
    background: #0a192f;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column; /* imagen arriba, texto abajo */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
  }

  .elite-banner img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .elite-banner .banner-text,
  .elite-banner .elite-banner-content {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem;
  }
}

/* 2. EFECTO DE FUNDIDO PARA LA IMAGEN */
.elite-banner-image {
    width: 55% !important;
    position: relative !important;
}

.elite-banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(to right, transparent, #0a192f) !important;
    z-index: 2;
}

.elite-banner-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 3. CONTENIDO: Contraste Máximo */
.elite-banner-content {
    width: 45% !important;
    padding: 60px 10% 60px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #0a192f !important;
}

.elite-banner-price {
    color: #00c1ab !important;
    font-size: 4.5rem !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    letter-spacing: -1px !important;
}

.elite-banner-title {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    line-height: 2.2 !important;
}

.elite-banner-image, .elite-banner-content {
    width: 50% !important;
}

/* Ajuste para que el texto respire */
.elite-banner-content {
    padding: 40px !important;
    justify-content: center !important;
}

.elite-banner:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 0 2px rgba(212, 175, 55, 0.5),
        0 0 30px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Sección de imagen - 50% del ancho para proporción equilibrada */
.elite-banner-image {
    position: relative;
    width: 50% !important;
    height: 100% !important;
    min-height: 350px;
    overflow: hidden;
}

.elite-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.elite-banner:hover .elite-banner-image img {
    transform: scale(1.05);
}

/* Degradado sobre la imagen */
.elite-banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(10, 25, 47, 0.8));
    pointer-events: none;
}

/* Sección de contenido - 50% del ancho para proporción equilibrada */
.elite-banner-content {
    width: 50% !important;
    padding: 50px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Estira el contenido de arriba a abajo */
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Badge VERIFICADO/TOP dorado - OCULTO */
.elite-badge-gold {
    display: none !important;
}

/* Precio destacado - ENORME e impactante */
.elite-banner-price {
    font-size: 5.5rem !important;
    font-weight: 800;
    color: #00c1ab;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0, 193, 171, 0.4);
    line-height: 1.1;
}s

/* Título del anuncio - DESTACADO */
.elite-banner-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ubicación */
.elite-banner-location {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.elite-banner-location i {
    color: #00c1ab;
}

/* Atributos del producto - Grid de 2 columnas elegante */
.elite-banner-attributes {
    display: none;
    grid-template-columns: 1fr 1fr; /* Dos columnas de datos técnicos */
    gap: 15px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.85);
}

.elite-attribute {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.elite-attribute:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 193, 171, 0.3);
}

.elite-attribute i {
    color: #00c1ab;
    font-size: 1.3rem;
}

/* Avatar del vendedor */
.elite-banner-seller {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.elite-seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-primario);
    overflow: hidden;
}

.elite-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar elite: invisible por defecto pero con espacio reservado */
.elite-seller-avatar {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* SOLO cuando hay imagen, se muestra */
.elite-seller-avatar.has-image {
    visibility: visible !important;
    opacity: 1 !important;
}

.elite-seller-info {
    display: flex;
    flex-direction: column;
}

.elite-seller-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

.elite-seller-rating {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.elite-seller-rating i {
    color: #fbbf24;
}

/* Botón de contacto - GRANDE y prominente */
.elite-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #00c1ab 0%, #0d9488 100%);
    color: #ffffff;
    padding: 1.5rem 3rem;
    border-radius: 1.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 193, 171, 0.5);
    align-self: center;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.elite-banner-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 193, 171, 0.6);
    background: linear-gradient(135deg, #0d9488 0%, #00c1ab 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.elite-banner-btn i {
    font-size: 1.6rem;
}

/* Etiqueta "Top Selección" encima del banner */
.elite-banner-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    margin-left: 1.5rem; /* Separar la corona del borde izquierdo */
    padding-left: 1rem;
}

.elite-label-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.elite-label-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.5), transparent);
}

/* Responsive para Banner Elite */
@media (max-width: 992px) {
    .elite-banner {
        min-height: 320px;
        max-height: 400px;
    }
    
    .elite-banner-image {
        width: 50% !important;
    }
    
    .elite-banner-content {
        width: 50% !important;
        padding: 30px !important;
    }
    
    .elite-banner-price {
        font-size: 2.8rem !important;
    }
    
    .elite-banner-title {
        font-size: 2rem;
    }
    
    .elite-banner-attributes {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Efecto de brillo animado en el borde */
.elite-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: eliteShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes eliteShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

/* Badge de urgencia para banner elite */
.elite-badge-urgent {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Badge de vendido */
.elite-badge-sold {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.elite-badge-sold i {
    color: #4ade80;
}

/* ========================================================= */
/* LIMPIEZA DE ESTRUCTURA: ELIMINAR ESPACIOS INTERNOS */
/* ========================================================= */

/* 1. Limpiamos el carrusel de CUALQUIER espacio interno */
.row-carousel, 
.row-carousel .swiper, 
.row-carousel .swiper-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    gap: 15px !important;
}

/* 2. Forzamos a que el SLIDE ocupe todo su espacio sin márgenes */
.row-carousel .swiper-slide {
    padding: 0 !important;
    margin: 0 5px !important; /* Margen reducido */
    display: flex !important;
    justify-content: center !important;
}

/* 3. La Tarjeta: Aseguramos que no tenga 'muros' internos */
.row-carousel .ad-card {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 20px !important;
    overflow: visible !important;
}

/* 4. La Imagen: El toque final para que toque los bordes */
.row-carousel .ad-card .image-container,
.row-carousel .ad-card .product-swiper,
.row-carousel .ad-card img {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. El margen del texto */
.row-carousel .ad-card .content {
    padding: 15px 20px 20px 20px !important;
}

/* ===================================================== */
/* SLIDES DUPLICADOS EN CARRUSEL - EVITAR ESPACIOS VACÍOS */
/* ===================================================== */
.row-carousel .swiper-slide-duplicated {
    /* Asegurar que los slides duplicados sean visibles y ocupen espacio */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ocultar slides duplicados de lectores de pantalla */
.row-carousel .swiper-slide-duplicated[aria-hidden="true"] {
    display: block !important;
}

/* ===================================================== */
/* LIMPIEZA DEL CONTENEDOR DEL CARRUSEL */
/* ===================================================== */

/* ATACAMOS AL PADRE (Contenedor externo) */
.row-carousel {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important; /* Esencial para que no se vea el scroll lateral */
}

/* ATACAMOS AL RIEL (Donde corren las tarjetas) */
.row-carousel .swiper-wrapper {
    display: flex !important;
    gap: 13px !important;
    padding: 0 !important;
}

/* ===================================================== */
/* AMPLIACIÓN DE TARJETAS - Contenedor y Grid */
/* ===================================================== */


/* Additional home-specific styles from style.css */
#index-page .ad-card, 
#index-page .property-card,
#index-page .box {
    width: 100% !important;
    min-width: 100% !important;
    height: 520px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* 4. LA FOTO DE REVISTA */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    height: 280px !important;
    width: 100% !important;
}

/* ===================================================== */
/* TOQUE DE MIDAS - Mejora del contenido de tarjetas */
/* ===================================================== */

/* 1. EL CONTENEDOR DE TEXTO: Espaciado de lujo */
#index-page .ad-card .content,
#index-page .property-card .content {
    padding: 20px 25px 20px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* 2. EL PRECIO: Que salte a la vista */
#index-page .ad-card .price,
#index-page .property-card .price {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin-bottom: 5px !important;
}

/* 3. TRANSFORMACIÓN DEL BOTÓN CONTACTAR */
#index-page .ad-card .contact-link,
#index-page .ad-card a[href*="contact"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #00c1ab !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    letter-spacing: 1px !important;
}

#index-page .ad-card .contact-link:hover {
    background: #00a896 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 193, 171, 0.3) !important;
}

/* ===================================================== */
/* OPERACIÓN EXTERMINIO DE FANTASMAS - Selectores Triple Fuerza */
/* ===================================================== */

/* 1. Forzamos el contenedor de texto a tener aire */
#index-page .recently-added-grid .ad-card .content,
#index-page #products .ads-row .ad-card .content {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* 2. El botón turquesa "Elite" - TRANSFORMACIÓN TOTAL */
#index-page .ad-card .content a.contact-link,
#index-page .ad-card .content a[href*="contact"],
#index-page .recently-added-grid .ad-card a {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #00c1ab !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 14px 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

/* 3. Efecto de éxito al pasar el mouse */
#index-page .ad-card .content a:hover {
    background-color: #00a896 !important;
    box-shadow: 0 8px 20px rgba(0, 193, 171, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ===================================================== */
/* LLAVE MAESTRA - Selectores Ultra-Específicos */
/* ===================================================== */

/* LÍNEA 2844: ELIMINAMOS EL PADDING DE LA TARJETA (PARA LA FOTO) */
#index-page .ad-card,
#index-page .property-card {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e0e6ed !important;
}

/* 2. EL BOTÓN "CONTACTAR": Transformación Real */
#index-page .property-card .property-details a.btn-contact,
#index-page .ad-card .property-details a.btn-contact,
#index-page a[href*="contact"].btn-contact {
    display: flex !important;
    visibility: visible !important;
    background-color: #2da687;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 2rem 1.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-top: auto;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 193, 171, 0.3);
}

#index-page .property-card .property-details a.btn-contact:hover,
#index-page .ad-card .property-details a.btn-contact:hover,
#index-page a[href*="contact"].btn-contact:hover {
    background-color: #1a8a6a;
}

/* 3. EL PRECIO */
#index-page .property-details .price {
    font-size: 2rem !important;
    color: #0a192f !important;
    font-weight: 850 !important;
}

/* ===================================================== */
/* IMAGEN INFINITA - Ajuste de fotos en tarjetas */
/* ===================================================== */

/* 1. RESETEAMOS EL CONTENEDOR DE LA FOTO */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 280px !important;
    overflow: hidden !important;
    display: block !important;
}

/* 2. LA IMAGEN: Expansión absoluta */
#index-page .ad-card .image-container img,
#index-page .property-card .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
    transform: none !important;
}

/* 3. AJUSTE DE LA TARJETA */
#index-page .ad-card,
#index-page .property-card {
    padding: 0 !important;
}

/* ===================================================== */
/* UNIFICACIÓN FORZADA POR SELECTOR DE RUTA COMPLETA */
/* ===================================================== */

/* 1. Tarjetas de ARRIBA (Top Selección) */
#index-page .top-seleccion .ad-card,
#index-page .top-seleccion .property-card {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
}

/* 2. Tarjetas de ABAJO (Recién Agregado) */
#index-page .recently-added-grid .ad-card,
#index-page .recently-added-grid .property-card {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
}


/* ===================================================== */

/* Desktop: 3 columnas */
#index-page .ads-row.row-3-cols,
#index-page .row-2-cols,
#index-page .row-4-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px !important;
  width: 95%;
  margin: 10px auto 20px auto !important;
  max-width: 2400px;
}

/* Tablet: 2 columnas */
@media (max-width: 992px) {
  #index-page .ads-row.row-3-cols,
  #index-page .row-2-cols,
  #index-page .row-4-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
  }
}

/* Móvil: 1 columna */
@media (max-width: 768px) {
  #index-page .ads-row.row-3-cols,
  #index-page .row-2-cols,
  #index-page .row-4-cols {
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 0 10px;
    max-width: 100%;
  }

  #index-page .ads-row.row-3-cols .property-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
  }
  
  /* Imagen de tarjeta en móvil - tamaño perfecto */
  #index-page .property-card .property-image,
  #index-page .property-card .image-container {
    height: 200px !important;
    width: 100%;
  }
  
  /* Imagen del carrusel en móvil */
  #index-page .property-card .property-image img,
  #index-page .property-card .property-image .swiper-slide img,
  #index-page .property-card .image-container img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}

/* 2. MATAMOS EL PADDING DE LAS COLUMNAS */
#index-page .ads-row .col-md-4,
#index-page .ads-row .col-lg-4,
#index-page .ads-row [class*="col-"] {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. IMAGEN AL 100% SIN MARGENES */
#index-page .ads-row .ad-card .image-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#index-page .ads-row .ad-card .image-container img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ===================================================== */
/* ESTRUCTURA DE BLOQUES REAL */
/* ===================================================== */

/* 1. ASEGURAMOS QUE CADA SECCIÓN SEA UN BLOQUE INDEPENDIENTE */
#index-page .featured-products-container,
#index-page .recently-added-container,
#index-page #products .ads-row-wrapper {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    margin-bottom: 50px !important;
}

/* 3. ARREGLO DE IMAGEN (EL BORDE BLANCO) */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 280px !important;
    overflow: hidden !important;
}

#index-page .ad-card .image-container img,
#index-page .property-card .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
}

/* ===================================================== */
/* ARREGLO FINAL DE FILAS - home.css al final */
/* ===================================================== */

/* 1. SEPARACIÓN DE BLOQUES PRINCIPALES */
#index-page .featured-products-container,
#index-page .recently-added-container,
#index-page #products .ads-row-wrapper {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    margin-bottom: 60px !important;
    float: none !important;
}

/* 2. NIVELACIÓN DE LAS TARJETAS (FILAS DE 3) - ELIMINADA - Duplicada de línea 2706 */

/* 3. IMAGEN TOTAL (Adiós bordes blancos) */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 280px !important;
}

#index-page .ad-card .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ===================================================== */
/* PLAN DE CHOQUE FINAL - Anulación Total de Fantasmas */
/* ===================================================== */

/* 1. ANULACIÓN TOTAL DE LOS "FANTASMAS" INTERNOS DE HOME.CSS */
#index-page .ad-card .image-container,
#index-page .property-card .image-container,
#index-page .product-swiper .swiper-slide {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
}

/* 2. FORZAMOS QUE LA IMAGEN IGNORE LAS LÍNEAS 1215-1217 */
#index-page .ad-card .image-container img,
#index-page .property-card .image-container img,
#index-page .product-swiper .swiper-slide img {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0 0 !important;
}

/* ===================================================== */
/* PRUEBA DE FUEGO - Verificar selectores */
/* ===================================================== */

/* PRUEBA DE CONTROL TOTAL */
#index-page .ad-card,
#index-page .property-card {
    border: 5px solid red !important;
    background-color: yellow !important;
}

/* FORZAMOS EL ANCHO DE LA IMAGEN DESDE LA RAÍZ */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    min-width: 100% !important;
    width: 100% !important;
    background-color: blue !important;
}

/* ===================================================== */
/* AJUSTE FINAL - Eliminar espacio blanco */
/* ===================================================== */

/* FUERZA BRUTA ESTRUCTURAL */
#index-page .ad-card,
#index-page .property-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ESTO ES LO QUE ESTIRA LA IMAGEN SI O SI */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    width: 100% !important;
    height: 280px !important;
    min-width: 100% !important;
    flex: 0 0 280px !important;
}

#index-page .ad-card .image-container img,
#index-page .property-card .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ===================================================== */
/* SOLUCIÓN QUIRÚRGICA - Romper el candado */
/* ===================================================== */


/* 2. AJUSTE DE LA TARJETA PARA QUE NO SE DESBORDE */
#index-page .ad-card,
#index-page .property-card {
    width: 100% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 3. REPASO DE LA IMAGEN */
#index-page .ad-card .image-container,
#index-page .property-card .image-container {
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
}

#index-page .ad-card .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ======================================================= */
/* SOLO PARA MÓVILES (No afecta a la versión de PC)        */
/* ======================================================= */
@media (max-width: 768px) {
    /* Contenedor de filas de tarjetas */
    .carousel-row-wrapper {
        padding: 0 15px !important;
    }
    
    /* Paginación para carruseles en móvil */
    .row-carousel-pagination {
        position: relative;
        margin-top: 15px;
        text-align: center;
    }
    
    .row-carousel-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #ccc;
        opacity: 1;
        margin: 0 4px;
    }
    
    .row-carousel-pagination .swiper-pagination-bullet-active {
        background: var(--color-primario, #00bfae);
    }
    
    /* Ocultar flechas de navegación en móvil */
    .row-nav-prev, 
    .row-nav-next,
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        display: none !important;
    }
    
    /* Featured swiper en móvil */
    .featured-swiper {
        padding: 0 35px;
    }
    
    .featured-swiper .swiper-button-next,
    .featured-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .featured-swiper .swiper-button-next:after,
    .featured-swiper .swiper-button-prev:after {
        font-size: 14px;
    }
    
    /* Títulos de sección */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .ads-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 1rem;
    }
    
    .carousel-row-wrapper {
        padding: 0 10px;
    }
}

/* Ajuste Relámpago: Buscador Compacto */
@media (max-width: 768px) {
    .logo-container img {
        height: 35px !important;
    }

    /* Ocultamos links innecesarios para el inversionista en móvil */
    .nav-links {
        display: none !important; 
    }

    /* 2. LA "ESFERA" TRASLÚCIDA (EL BUSCADOR) */
    .hero-content {
        padding-top: 80px !important;
    }

    .search-wrapper {
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
        padding: 15px !important;
        width: 90% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }

    /* 3. INPUT Y BOTÓN DENTRO DE LA ESFERA */
    .search-input-group, .search-button {
        width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
    }

    .search-input {
        font-size: 16px !important;
        padding-left: 40px !important;
    }
    
    /* Otros ajustes para móviles */
    .box-container, .carousel-row-wrapper {
        padding: 0 15px !important;
        overflow: hidden !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
        padding-left: 10px;
    }
}

/* =========================================================
   BADGES DE PLANES (CORONAS: Bronce, Plata, Oro, Diamante)
   ========================================================= */

/* Estilo base para todas las coronas en las tarjetas */
.plan-badge-icon {
    font-size: 1.2rem !important;
    margin-right: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Badge base para los planes */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Básico - Bronce */
.badge-basico {
    background: linear-gradient(135deg, #cd7f32, #8b5a2b);
    color: #fff;
}

/* Badge Premium - Plata */
.badge-premium {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #333;
}

/* Badge Top - Oro */
.badge-top {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #333;
}

/* Badge Elite - Diamante */
.badge-elite {
    background: linear-gradient(135deg, #b9f2ff, #4682b4);
    color: #fff;
}

/* 1. PLAN BÁSICO: Corona de Bronce */
.crown-bronze {
    color: #cd7f32 !important;
}

/* 2. PLAN PREMIUM: Corona de Plata */
.crown-silver {
    color: #847b7b !important;
}

/* 3. PLAN TOP/DESTACADO: Corona de Oro */
.crown-gold {
    color: #ffb906 !important;
}

/* 4. PLAN ELITE/MÁXIMO: Corona de Diamante */
.crown-diamond {
    color: #b9f2ff !important;
    text-shadow: 1px 1px 0px #4682b4, -1px -1px 0px #ffffff !important;
    filter: drop-shadow(0 0 6px rgba(185, 242, 255, 0.8)) !important;
}

/* Contenedor para la corona sobre la imagen (sin fondo) */
.card-crown-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste del icono de la corona */
.card-crown-badge i {
    font-size: 2.2rem !important;
    margin: 0 !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}
