/* =========================================
   1. ESTILOS GENERALES
   ========================================= */
:root {
    --primary-bg: #f5f5f5;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #fff;
    --accent: #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: var(--primary-bg); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* =========================================
   2. ESTILOS DEL NAVBAR (MODERNO Y PROFESIONAL - ACTUALIZADO)
   ========================================= */
header {
    background-color: #ffffff !important;
    width: 100% !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08) !important; 
}

.navbar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 5% !important;
    background-color: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Enlaces del menú central */
.menu {
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: row !important; 
    justify-content: center !important; 
    gap: 40px !important; 
    margin: 0 !important; 
    list-style: none !important;
}

.menu a {
    text-decoration: none !important;
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
}

.menu a:hover, .menu a.activo {
    color: #0d9488 !important; 
    transform: translateY(-2px) !important; 
}

/* Sección del asesor y botón (Derecha) */
.nav-derecha {
    flex: 1 !important; 
    display: flex !important; 
    flex-direction: row !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    gap: 25px !important; 
}

.info-asesor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.asesor-titulo {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important; 
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.asesor-contacto {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important; 
    display: flex;
    align-items: center;
    gap: 6px;
}

.icono-tel { color: #0d9488 !important; }

/* Botón de Contacto Premium */
.btn-contacto {
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%) !important; 
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 12px !important; 
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.25) !important; 
}

.btn-contacto:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4) !important;
}

/* --- ESTILOS PARA EL LOGO --- */
.logo-contenedor {
    display: flex !important;
    flex: 1 !important;
    justify-content: flex-start !important;
}

.logo-contenedor a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; 
    height: 45px;
    border-radius: 50%; 
    overflow: hidden; 
    border: 2px solid #0d9488; 
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
    background-color: #fff;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo-texto { 
    display: none; /* Según última instrucción, se oculta en móviles. Puedes ajustarlo para desktop si es necesario */
}

.btn-dark { background-color: var(--accent); color: var(--text-light); padding: 12px 24px; border-radius: 30px; display: inline-flex; align-items: center; gap: 10px; }
.btn-light { background-color: rgba(255,255,255,0.8); color: var(--text-dark); padding: 12px 24px; border-radius: 30px; border: 1px solid #ccc; }

/* Ocultar botones móviles en escritorio */
.btn-volver-movil, .menu-toggle { display: none !important; }

/* =========================================
   3. SECCIÓN PRINCIPAL (HERO)
   ========================================= */
.hero {
    position: relative; 
    padding: 150px 50px 80px; 
    min-height: 90vh;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    z-index: 1; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, var(--primary-bg) 40%, transparent 80%);
    z-index: -1; 
}

.hero-img-bg {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    object-fit: cover; 
    object-position: right center; 
    z-index: -2; 
}

.hero h2 { font-size: 1.2rem; font-weight: normal; color: #555; }
.hero h1 { font-size: 5rem; line-height: 1; margin: 20px 0; max-width: 600px; }
.hero p { max-width: 400px; margin-bottom: 30px; color: #555; }
.hero-buttons { display: flex; gap: 15px; }

/* =========================================
   4. CARACTERÍSTICAS
   ========================================= */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 50px; margin-top: -60px; position: relative; z-index: 2; }
.feature-card { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-icon { width: 50px; height: 50px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.2rem; }

/* Dorado para iconos */
.feature-icon i { color: #035e3a; }
/* Dorado y fuente para títulos */
.feature-card h3 { color: #035e3a; font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; }

/* =========================================
   5. PROYECTOS (CARRUSEL ESTILO NETFLIX)
   ========================================= */
.projects { padding: 50px; }
.projects-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }

/* Contenedor Grid (Netflix style) */
.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar { display: none; }

/* Tarjetas */
.projects-grid > a, 
.projects-grid > .project-card {
    /* 38vw para ver 2 y media en móviles (según última instrucción) */
    flex: 0 0 38vw; 
    max-width: 220px; 
    scroll-snap-align: start; 
    text-decoration: none;
}

.project-card { 
    background: #fff; 
    border-radius: 20px; 
    overflow: hidden; 
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-img-container { position: relative; width: 100%; height: 300px; }
.project-img-container img { 
    width: 100%; height: 100%; object-fit: cover; display: block; 
    transition: transform 0.4s ease; 
}
.project-card:hover .project-img-container img { transform: scale(1.05); }

.project-badge { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.9); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; color: #000; }
.project-info { padding: 20px; }
.project-specs { display: flex; gap: 15px; font-size: 0.85rem; color: #555; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; }


/* =========================================
   6. SECCIÓN OSCURA (ESTADÍSTICAS)
   ========================================= */
.stats-section {display: flex;background: #fff;color: #035e3a;margin: 50px;border-radius: 30px;overflow: hidden;}
.stats-content { padding: 60px; flex: 1; }
.stats-content h2 { font-size: 2.5rem; margin-bottom: 50px; max-width: 400px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.stats-img-container { flex: 1; min-height: 100%; }
.stats-img-container img { width: 100%; height: 100%; object-fit: cover; }


/* =========================================
   7. FOOTER PRINCIPAL (ESTILO MODERNO VERDE - ACTUALIZADO)
   ========================================= */
.footer-principal {
    background-color: #064e3b; 
    color: #ffffff;
    padding: 60px 30px 30px 30px;
    margin-top: 40px;
    width: 100%;
    border-top-left-radius: 40px; 
    border-top-right-radius: 40px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.footer-contenedor {
    display: flex; 
    flex-direction: column; 
    gap: 45px; 
    max-width: 1200px; 
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-contenedor { flex-direction: row; justify-content: space-between; text-align: left; align-items: flex-start;}
    .footer-columna { flex: 1; margin: 0 15px; align-items: flex-start;}
    .footer-marca { flex-direction: row; justify-content: flex-start; }
    .lista-contacto li { align-items: center; flex-direction: row !important; }
}

.footer-columna { align-items: center; }

/* Marca Moderna */
.footer-marca { display: flex; flex-direction: column; justify-content: center; gap: 10px; margin-bottom: 15px; }
.icono-marca-footer { 
    background-color: #10b981; color: #ffffff; padding: 12px; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); 
}
.titulo-marca-footer { font-size: 1.5rem; font-weight: bold; letter-spacing: 0.5px; }
.texto-gris { color: #d1d5db; line-height: 1.7; font-size: 0.95rem; }
.titulo-columna-footer { font-size: 1.2rem; margin-bottom: 20px; font-weight: 600; color: #34d399; }

/* Contacto */
.lista-contacto { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.lista-contacto li { 
    display: flex; flex-direction: column; align-items: center; gap: 8px; 
    background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.lista-contacto li:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.icono-esmeralda { color: #34d399; flex-shrink: 0;}
.info-contacto-item { display: flex; flex-direction: column; }
.texto-blanco-hover { color: #ffffff; text-decoration: none; font-weight: bold; font-size: 1.05rem; margin-top: 2px; transition: color 0.3s ease; }
.texto-blanco-hover:hover { color: #34d399; }

/* Botón Mapa */
.flex-centro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;}
.badge-mapa { background: #10b981; color: #ffffff; font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: bold; text-transform: uppercase; }

/* Redes Sociales y Horarios */
.contenedor-redes { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.icono-red-social { 
    display: flex; align-items: center; justify-content: center; 
    flex: 0 0 42px !important; width: 42px !important; height: 42px !important; /* Arreglo tamaño fijo */
    background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 14px; transition: all 0.3s ease; 
}
.icono-red-social img { width: 20px !important; height: 20px !important; max-width: 20px !important; object-fit: contain; }
.icono-red-social:hover { transform: translateY(-5px) scale(1.05); background-color: #ffffff; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.footer-horarios { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 15px; }
.footer-horarios p { margin-bottom: 5px; color: #ffffff; font-size: 0.95rem; }
.footer-horarios .texto-gris { margin-bottom: 10px; color: #34d399; font-weight: bold; }


/* =========================================
   8. DISEÑO: DETALLE DE PROPIEDAD (2 COLUMNAS) Y CARRUSEL
   ========================================= */

main.contenedor-principal {
    max-width: 1300px !important;
    margin: 40px auto !important; 
    padding: 0 20px !important;
    display: block !important;
}

.layout-detalle {
    display: grid !important;
    grid-template-columns: 1fr 420px !important; 
    gap: 40px !important;
    align-items: start !important;
    margin-top: 20px;
}

/* Columna Izquierda */
.carrusel-contenedor {
    position: relative !important; 
    width: 100% !important;
    height: 550px !important; 
    border-radius: 16px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
}

.carrusel-pista {
    display: flex !important;
    height: 100% !important;
    transition: transform 0.4s ease-in-out !important;
}

.carrusel-pista img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.carrusel-contenedor .badge { position: absolute !important; top: 20px !important; z-index: 10 !important; padding: 6px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px;}
.carrusel-contenedor .badge-blanco { left: 20px !important; background: white; color: #0f172a;}
.carrusel-contenedor .badge-esmeralda { right: 20px !important; background: #10b981; color: white;}

.caja-info-blanca { background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.etiqueta-lote { background: #dcfce7; color: #15803d; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 15px; }
.titulo-detalle { font-size: 2.2rem; font-family: 'Inter', sans-serif; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.ubicacion-detalle { display: flex; align-items: center; gap: 20px; color: #64748b; font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; }
.btn-mapa-detalle { color: #10b981; text-decoration: none; }
.precio-detalle { font-size: 3rem; font-weight: 800; color: #0d9488; margin: 20px 0 40px 0; }
.cuadricula-iconos-detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.item-icono { background: #f8fafc; border-radius: 12px; padding: 25px; text-align: center; display: flex; flex-direction: column; align-items: center; border: 1px solid #f1f5f9; }
.item-icono strong { font-size: 1.5rem; color: #0f172a; margin-top: 10px; }
.seccion-texto-detalle h2 { font-size: 1.4rem; color: #0f172a; margin-bottom: 20px; }
.lista-caracteristicas-detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; list-style: none; padding: 0; }
.lista-caracteristicas-detalle li { background: #f8fafc; padding: 12px 15px; border-radius: 8px; color: #475569; font-size: 0.95rem; font-weight: 500; }

/* Botones Flecha Carrusel */
.carrusel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.9);
    color: #0d9488; border: none; font-size: 1.2rem; width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    border-radius: 50%; z-index: 10; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.carrusel-btn:hover { background-color: #ffffff; transform: translateY(-50%) scale(1.1); }
.btn-prev { left: 15px; }
.btn-next { right: 15px; }


/* Columna Derecha: Formulario Flotante */
.formulario-lateral { position: sticky !important; top: 100px !important; }
.caja-formulario-blanca { background: #ffffff; border-radius: 16px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.caja-formulario-blanca h2 { margin-top: 0; font-size: 1.6rem; }
.caja-formulario-blanca p { color: #64748b; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }
.formulario-contacto-detalle { display: flex; flex-direction: column; gap: 15px; }
.formulario-contacto-detalle label { font-size: 0.85rem; font-weight: 700; color: #0f172a; margin-bottom: -5px; }
.formulario-contacto-detalle input, .formulario-contacto-detalle textarea { width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; transition: 0.3s; }
.formulario-contacto-detalle input:focus, .formulario-contacto-detalle textarea:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1); }
.btn-enviar-detalle { background: #0d9488; color: white; border: none; padding: 16px; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.3s; margin-top: 10px; }
.btn-enviar-detalle:hover { background: #0f766e; }


/* =========================================
   9. MODO OSCURO PREMIUM PARA EL CATÁLOGO (propiedades.html) Y DISEÑO 4 COLUMNAS
   ========================================= */
:root {
    --bg-fondo: #161817; 
    --bg-tarjeta: #1c1f1e; 
    --bg-input: #2a2d2c;
    --verde-brillante: #10b981;
    --dorado-titulo: #dcb37b; 
    --texto-principal: #035e3a;
    --texto-secundario: #94a3b8;
    --borde-sutil: rgba(255, 255, 255, 0.08);
}

.seccion-catalogo {
    background-color: rgb(59 90 80 / 15%) !important;
    color: rgb(0, 83, 56) !important;
    max-width: 1400px !important; /* Ancho para 4 columnas */
    margin: 30px auto !important;
    padding: 0 20px !important;
}

.cabecera-catalogo { width: 100% !important; margin-bottom: 25px !important; padding-bottom: 15px !important; border-bottom: 1px solid var(--borde-sutil) !important; }
.cabecera-catalogo h2 { color: var(--dorado-titulo) !important; font-family: 'Playfair Display', serif; font-size: 2.5rem; }
.cabecera-catalogo p { color: var(--texto-secundario) !important; }

/* Layout Catálogo (Filtros Izq, Proyectos Der) */
.layout-catalogo { display: flex !important; gap: 30px !important; align-items: flex-start !important; }

/* Panel Lateral de Filtros */
.panel-filtros {
    width: 260px !important; flex-shrink: 0 !important; position: sticky !important; top: 20px !important;
    background-color: var(--bg-tarjeta) !important; border: 1px solid var(--borde-sutil) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; border-radius: 12px !important; padding: 20px !important;
}
.titulo-filtros { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #e2e8f0; }
.grupo-filtro { margin-bottom: 20px; }
.titulo-filtros h3, .grupo-filtro label { color: var(--texto-principal) !important; display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.grupo-filtro input[type="text"], .grupo-filtro select { width: 100%; padding: 12px; font-size: 0.95rem; outline: none; transition: border-color 0.3s; background-color: var(--bg-input) !important; border: 1px solid var(--borde-sutil) !important; color: var(--texto-principal) !important; border-radius: 8px;}
.grupo-filtro input[type="text"]:focus, .grupo-filtro select:focus { border-color: var(--verde-brillante) !important; }
.opcion-radio { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.valores-precio { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 10px; }
.valores-precio span { color: var(--texto-secundario) !important; }

/* Rango Precio Slider */
.slider-precio { -webkit-appearance: none; width: 100%; height: 8px; border-radius: 5px; background: #e2e8f0; outline: none; transition: background 0.3s ease-in-out; margin: 15px 0; }
.slider-precio::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #0d9488; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 0 10px rgba(13, 148, 136, 0.4); }
.slider-precio::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 15px rgba(13, 148, 136, 0.6); }

.btn-limpiar { width: 100%; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: all 0.3s ease; margin-top: 15px; background-color: var(--bg-input) !important; color: var(--texto-principal) !important; border: 1px solid var(--borde-sutil) !important; }
.btn-limpiar:hover { background-color: #3f4442 !important; }

/* Rejilla Catálogo 4 Columnas */
.rejilla-proyectos {
    flex-grow: 1 !important; display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; /* Magia para 4 col */
    gap: 20px !important; align-items: start !important; transition: all 0.4s ease;
}

/* Tarjetas Catálogo */
.tarjeta-proyecto {
    background-color: var(--bg-tarjeta) !important; border: 1px solid var(--borde-sutil) !important;
    border-radius: 12px !important; overflow: hidden !important; display: flex !important; flex-direction: column !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important; height: 100% !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 1; transform: scale(1); transform-origin: center;
}
.tarjeta-proyecto:hover { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15) !important; transform: translateY(-8px); }
.tarjeta-oculta { opacity: 0; transform: scale(0.8); pointer-events: none; position: absolute; visibility: hidden; }

.imagen-contenedor { width: 100% !important; height: 180px !important; position: relative !important; }
.imagen-contenedor img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.info-proyecto { padding: 15px !important; display: flex !important; flex-direction: column !important; flex-grow: 1 !important; }
.precio-proyecto { color: var(--dorado-titulo) !important; font-size: 1.3rem !important; margin-bottom: 5px !important; }
.info-proyecto h4 { color: var(--texto-principal) !important; font-size: 1.1rem !important; margin-bottom: 12px !important; font-family: 'Playfair Display', serif !important; }
.detalles-extra { color: var(--texto-secundario) !important; font-size: 0.85rem !important; margin-bottom: 5px !important; display: flex !important; align-items: center !important; gap: 6px !important; }
.btn-tarjeta { margin-top: auto !important; width: 100% !important; background: linear-gradient(90deg, #10b981, #059669) !important; color: white !important; padding: 10px !important; border: none !important; border-radius: 6px !important; font-weight: 600 !important; cursor: pointer !important; }


/* =========================================
   10. DISEÑO RESPONSIVO (MÓVILES HASTA 960px)
   ========================================= */

@media (max-width: 960px) {
    
    /* REORDENAMIENTO DE SECCIONES PARA MÓVILES */
    body { display: flex; flex-direction: column; padding-top: 70px !important; }
    header { order: 1; }
    .hero { order: 2; padding: 60px 20px; min-height: auto; }
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .hero::before { background: linear-gradient(to right, var(--primary-bg) 60%, transparent 100%); }
    .projects { order: 3; padding: 20px 0 20px 20px;}
    .features { order: 4; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 20px 10px; margin-top: 10px;}
    .stats-section { order: 5; flex-direction: column; margin: 20px;}
    .contact-section { order: 6; grid-template-columns: 1fr; margin: 20px; padding: 30px;}
    .footer-principal { order: 7; padding: 50px 20px 20px 20px; }

    /* NAVBAR MINIMALISTA */
    .navbar {
        position: fixed !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 70px !important; padding: 0 15px !important;
        background-color: #ffffff !important; display: flex !important;
        justify-content: space-between !important; align-items: center !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; z-index: 9999 !important; box-sizing: border-box !important;
    }

    .menu, .nav-derecha a { display: none !important; }
    
    /* Botones Móviles (Hamburguesa y Volver) */
    .menu-toggle { display: flex !important; order: 1 !important; width: 45px !important; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;}
    .menu-toggle span { width: 25px; height: 3px; background-color: #0d9488 !important; border-radius: 2px; }
    
    .btn-volver-movil { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; color: #0d9488 !important; }

    /* Info Asesor Centro */
    .nav-derecha { display: flex !important; flex: 1 !important; justify-content: center !important; order: 2 !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; }
    .info-asesor { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 2px !important; }
    .asesor-titulo { font-size: 0.65rem !important; text-align: center !important; }
    .asesor-contacto { font-size: 0.95rem !important; }

    /* Logo Derecha Minimalista */
    .logo-contenedor { display: flex !important; justify-content: flex-end !important; order: 3 !important; width: 45px !important; flex: none !important;}
    .logo-enlace { justify-content: flex-end !important; gap: 0 !important; }
    .logo-texto { display: none !important; }
    .logo-img { width: 45px !important; height: 45px !important; padding: 4px !important; margin: 0 !important; }

    /* CARACTERÍSTICAS MÓVIL */
    .feature-card { padding: 10px 5px; text-align: center; border-radius: 10px; }
    .feature-icon { width: 30px; height: 30px; font-size: 0.9rem; margin: 0 auto 10px auto; }
    .feature-card h3 { font-size: 0.65rem; line-height: 1.2; }

    /* PROYECTOS CARRUSEL MÓVIL */
    .projects-header { padding-right: 20px; flex-direction: row; align-items: center; justify-content: space-between; }
    
    .projects-grid > a, .projects-grid > .project-card { flex: 0 0 38vw; max-width: 220px; border-radius: 10px;}
    .project-card .project-img-container { height: 160px; }
    .project-info { padding: 10px; }
    .project-info h3 { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .project-info p { font-size: 0.7rem; margin-bottom: 5px; }
    .project-specs { font-size: 0.55rem; gap: 5px; flex-direction: column; padding-top: 8px; margin-top: 5px; }
    .project-badge { font-size: 0.6rem; padding: 3px 8px; top: 10px; right: 10px; }

    /* ESTADÍSTICAS MÓVIL */
    .stats-content { padding: 30px 20px; text-align: center; }
    .stats-content h2 { font-size: 1.8rem; margin-bottom: 25px; line-height: 1.2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 15px; }
    .stats-grid div { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .stats-grid h3 { font-size: 1.5rem; margin-bottom: 5px; }
    .stats-grid p { font-size: 0.75rem; line-height: 1.2; }
    .stats-img-container { min-height: 250px; }

    /* DETALLE PROPIEDAD MÓVIL */
    .carrusel-contenedor { height: 50vh !important; aspect-ratio: auto !important; width: 100%; border-radius: 12px; margin-bottom: 20px; }
    .layout-detalle { grid-template-columns: 1fr !important; gap: 20px; }
    .formulario-lateral { position: static !important; }
    .lista-caracteristicas-detalle { grid-template-columns: 1fr; }

    /* CATÁLOGO MÓVIL */
    .layout-catalogo { flex-direction: column !important; }
    .panel-filtros { width: 100% !important; position: relative !important; top: 0 !important; }

}
@media (min-width: 961px) {
    /* ... (deja el código del navbar que ya tienes aquí) ... */

    /* 1. CORRECCIÓN DE LA SECCIÓN DE CARACTERÍSTICAS */
    .features {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important; /* 4 columnas iguales */
        gap: 30px !important;
        padding: 0 50px !important;
        margin-top: -60px !important; /* Mantiene la superposición sobre el Hero */
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .feature-card {
        padding: 35px 20px !important; /* Altura más proporcionada */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* 2. CORRECCIÓN DE LA REJILLA DE PROYECTOS (DESACTIVA EL CARRUSEL EN PC) */
    .projects {
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 80px 50px 50px 50px !important;
    }

    .projects-grid {
        display: grid !important; /* Cambia flex por grid */
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas */
        gap: 40px !important;
        overflow-x: visible !important; /* Quita el scroll horizontal */
        flex-wrap: wrap !important;
    }

    /* Resetea el ancho forzado que tenían las tarjetas en móviles */
    .projects-grid > a, 
    .projects-grid > .project-card {
        flex: auto !important; /* Anula el flex: 0 0 38vw */
        max-width: none !important; /* Quita el límite de ancho */
        width: 100% !important; /* Ocupa el 100% de su columna */
    }

    .project-card .project-img-container {
        height: 250px !important; /* Altura fija para uniformidad en PC */
    }
    
    .project-info {
        padding: 25px !important;
    }

    .project-info h3 {
        font-size: 1.3rem !important; /* Títulos más grandes */
        white-space: normal !important; /* Permite salto de línea en PC */
    }

    .project-specs {
        font-size: 0.9rem !important;
        flex-direction: row !important; /* Vuelve a poner especificaciones lado a lado */
        justify-content: space-between !important;
    }
    
    /* 3. AJUSTE DE LA SECCIÓN OSCURA DE ESTADÍSTICAS */
    .stats-section {
        max-width: 1400px !important;
        margin: 50px auto !important; /* Centra la sección en monitores grandes */
    }
}

/* --------------------------------------------------- */
/* REGLAS PARA PANTALLAS GRANDES (PC / Laptops)        */
/* --------------------------------------------------- */
@media (min-width: 769px) {
    /* Mostramos el carrusel */
    .solo-pc {
        display: block; /* o flex, según necesites */
    }
    
    /* Ocultamos la tarjeta de móvil */
    .solo-movil {
        display: none !important;
    }
}

/* --------------------------------------------------- */
/* REGLAS PARA PANTALLAS PEQUEÑAS (Celulares)          */
/* --------------------------------------------------- */
@media (max-width: 768px) {
    /* Ocultamos el carrusel de PC */
    .solo-pc {
        display: none !important;
    }
    
    /* Mostramos tu tarjeta original */
    .solo-movil {
        display: block; 
    }
}

/* Contenedor principal: oculta lo que se desborda */
.carrusel-contenedor {
    position: relative;
    width: 100%;
    overflow: hidden; /* Fundamental para que solo se vea una imagen */
    border-radius: 12px; /* Ajusta según el diseño de tus bordes */
}

/* La pista que contiene las imágenes y se va a mover */
.carrusel-pista {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out; /* Animación suave de deslizamiento */
}

/* Cada imagen individual */
.carrusel-pista img {
    min-width: 100%; /* Obliga a la imagen a ocupar el 100% del contenedor */
    flex-shrink: 0; /* Evita que las imágenes se encojan para caber todas juntas */
    height: 400px; /* Ajusta la altura deseada para escritorio */
    object-fit: cover; /* Evita que las imágenes se deformen */
}

/* Botones flotantes (ajuste básico si no los tienes posicionados) */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* ... el resto de tus estilos de botones (color, padding, etc.) ... */
}
.btn-prev { left: 10px; }
.btn-next { right: 10px; }

/* Configuración SOLO para pantallas grandes (Escritorio) */
@media (min-width: 769px) {
    .info-propiedad-detalle .carrusel-contenedor {
        height: 40vh; /* Ocupa el 40% del alto de la pantalla del PC */
    }
    
    .info-propiedad-detalle .carrusel-pista img {
        height: 40vh; 
        object-fit: cover; 
    }
}