/* ==========================================================================
   CONFIGURACIONES BASE, VARIABLES Y PALETA DE COLORES CORPORATIVOS
   ========================================================================== */
:root {
    /* Paleta Principal */
    --color-primary-navy: #504F4C; /* Dark Gray/Brown (Mantenido para texto) */
    --color-primary-navy-hover: #41403E; /* Darker version of #504F4C */
    --color-accent-gold: #F88F22; /* Main Orange */
    --color-accent-gold-hover: #D4751C; /* Darker Orange for hover */
    --color-gold-alt: #FBB931; /* Lighter Gold */
    
    /* Fondos y Neutros */
    --bg-main: #E5DAD0; /* Light Beige from previous palette */
    --bg-details: #FFE3B3; /* Lightest Beige */
    --bg-creme: #FFF2D9; /* Even lighter variation for cards */
    --bg-white: #FFF2D9; /* Using light variation instead of pure white */
    --bg-input: #FFF2D9;
    --bg-section-alt: #FADCA5;
    
    /* Textos */
    --text-dark: #3D3C3A;
    --text-main: #504F4C;
    --text-muted: #6E6C68;
    --text-light: #817F7B;
    --text-gray: #94928E;
    
    /* Bordes y Sombras */
    --border-gold-alpha: rgba(248, 143, 34, 0.25);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset básico: quita márgenes/paddings por defecto del navegador
   y hace que width/height incluyan el padding y el borde */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hace que los links con # (ej. "Ver propiedades") se desplacen con animación suave */
html {
    scroll-behavior: smooth;
}

/* Estilos base de TODA la página: fuente general, color de fondo y color de texto por defecto */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fondo alterno usado en las páginas de detalle de propiedad */
body.bg-details-page {
    background-color: var(--bg-details);
}

/* Evitar subrayados en tarjetas linkeadas */
.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   ANIMACIONES GLOBALES
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Scroll reveal animation */
/* Estado inicial (invisible/desplazado) de los elementos que aparecen al hacer scroll.
   scripts.js agrega la clase .visible cuando el elemento entra en pantalla (IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tarjetas de propiedad: visibles por defecto; .animate-in dispara la animación fadeInUp
   para las que ya están a la vista apenas carga la página */
.properties-grid .property-card-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    min-width: 0;
}

.properties-grid .property-card-link.animate-in {
    animation: fadeInUp 0.6s ease both;
}

/* ==========================================================================
   HEADER Y NAVBAR UNIFICADO
   ========================================================================== */
.main-header {
    width: 100%;
    background-color: var(--bg-white);
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Bloque del logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFB620;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 11px;
    color: var(--color-accent-gold);
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-top: -1px;
}

/* Menú de navegación principal */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-normal), background-color var(--transition-normal);
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--color-primary-navy);
    background-color: rgba(26, 35, 50, 0.04);
}

.nav-link.active {
    color: var(--color-primary-navy);
    background-color: rgba(26, 35, 50, 0.06);
    font-weight: 600;
}

/* Contenedor de redes sociales */
.social-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.social-icon:hover {
    color: var(--color-accent-gold);
    background-color: rgba(201, 169, 110, 0.1);
}

/* Botón hamburguesa (mobile) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO BANNER PRINCIPAL (PREMIUM)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 560px;
    /* Color sólido de respaldo mientras cargan las fotos del carrusel (ver
       .hero-bg-carousel abajo) — así no se ve blanco si tardan en llegar. */
    background-color: var(--color-primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

/* Carrusel de fondo del hero: varias fotos apiladas exactamente una sobre
   otra, cada una a pantalla completa; scripts.js alterna cuál tiene la clase
   "active" cada varios segundos y la transición de opacity hace el fundido.
   Para agregar/quitar fotos, solo edita los .hero-bg-slide en index.html —
   este CSS no necesita saber cuántas hay. */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.65) 100%);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 850px;
    color: #ffffff;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 110, 0.2);
    border: 1px solid rgba(201, 169, 110, 0.4);
    color: var(--color-gold-alt);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    line-height: 1.15;
}

.hero-highlight {
    color: var(--color-gold-alt);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 28px;
}

/* Stats del Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-gold-alt);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

/* Botones del Hero */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: var(--color-accent-gold);
    color: var(--bg-white);
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.3);
}

.hero-cta:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
}

.hero-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), transform var(--transition-normal);
}

.hero-cta-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* ==========================================================================
   BARRA DE BÚSQUEDA
   ========================================================================== */
.search-filter-section {
    max-width: 1100px;
    margin: -40px auto 50px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.filter-container {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0,0,0,0.04);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.filter-group label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-group label i {
    color: var(--color-accent-gold);
    font-size: 11px;
}

.filter-group select,
.filter-group .price-input,
.filter-group .keyword-input {
    border: 1px solid #e8e6e2;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    background: var(--bg-input);
    padding: 10px 12px;
    cursor: pointer;
    width: 100%;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    font-family: 'Poppins', sans-serif;
}

.filter-group select:focus,
.filter-group .price-input:focus,
.filter-group .keyword-input:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.filter-group .price-input::placeholder,
.filter-group .keyword-input::placeholder {
    color: #bbbbbb;
    font-weight: 400;
}

.filter-group-keyword {
    flex: 1 1 220px;
}

.filter-group .keyword-input {
    cursor: text;
}

.btn-search {
    background-color: var(--color-primary-navy);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-search:hover {
    background-color: var(--color-primary-navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 35, 50, 0.2);
}

.btn-search:active {
    transform: translateY(0);
}

/* ==========================================================================
   SECCIÓN TÍTULO DEL CATÁLOGO
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-gold-alt));
    margin: 12px auto 12px auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* ==========================================================================
   CUADRÍCULA CSS GRID DE CATÁLOGO (Cards de Propiedades)
   ========================================================================== */
.properties-section {
    max-width: 1300px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.property-card-link {
    min-width: 0;
}

.property-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0eee9;
    overflow: hidden;
}

.img-propiedad {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.property-card:hover .img-propiedad {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-primary-navy);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    z-index: 2;
    text-transform: uppercase;
}

.badge.rent {
    background-color: var(--color-accent-gold);
}

.badge.sold {
    background-color: #999999;
}

.property-info {
    padding: 10px 12px 12px;
}

.property-location {
    font-size: 10px;
    color: var(--color-accent-gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.property-location i {
    font-size: 9px;
}

.precio-propiedad {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.property-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    border-top: 1px solid #f0eee8;
    padding-top: 8px;
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
    align-items: center;
}

.property-specs span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.property-specs i {
    color: var(--color-gold-alt);
    font-size: 11px;
}

/* ==========================================================================
   BLOG (LISTADO DE ARTÍCULOS) — mismo lenguaje visual que .properties-grid
   ========================================================================== */
.blog-section {
    max-width: 1300px;
    margin: 50px auto 60px auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.blog-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0eee9;
    overflow: hidden;
}

.blog-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-cover-img {
    transform: scale(1.05);
}

.blog-info {
    padding: 14px 16px 16px;
}

.blog-date {
    font-size: 10px;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 6px 0 8px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón "Cargar más propiedades" debajo del catálogo — scripts.js lo crea
   y lo muestra/oculta solo (ver updateLoadMoreButton en scripts.js) */
.load-more-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32px auto 0;
    background-color: transparent;
    color: var(--color-primary-navy);
    border: 1px solid var(--color-primary-navy);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.load-more-btn:hover {
    background-color: var(--color-primary-navy);
    color: #ffffff;
}

/* ==========================================================================
   SECCIÓN CTA "¿NO ENCUENTRAS LO QUE BUSCAS?"
   ========================================================================== */
.cta-section {
    background-color: var(--color-primary-navy);
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 60%, rgba(201, 169, 110, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.cta-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background-color: var(--color-accent-gold);
    color: #ffffff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.cta-button:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 169, 110, 0.3);
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: bounceSlow 2s ease infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 62px;
    background: var(--color-primary-navy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    transform: translateX(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   BOTÓN VOLVER ARRIBA
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary-navy);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background-color var(--transition-normal);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-primary-navy-hover);
    transform: translateY(-2px);
}

.scroll-top-btn.show:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 20px 30px;
    border-top: 3px solid var(--color-gold-alt);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.footer-brand .footer-logo-sub {
    font-size: 12px;
    color: var(--color-gold-alt);
    font-weight: 700;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 400px;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: background var(--transition-normal), color var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-accent-gold);
    color: #ffffff;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 10px;
    transition: color var(--transition-normal);
}

.footer-col a:hover {
    color: var(--color-gold-alt);
}

.footer-col .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 12px;
}

.footer-col .footer-contact-item i {
    color: var(--color-gold-alt);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   PÁGINA DE DETALLES
   ========================================================================== */
.details-container {
    max-width: 1250px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}

.main-gallery-card {
    width: 100%;
    margin-bottom: 28px;
}

.gallery-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.carrusel-container {
    position: relative;
    width: 100%;
}

.carrusel-slides {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: #1a1a1a;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #ffffff;
    padding: 40px 28px 20px 28px;
    font-size: 13px;
    font-weight: 400;
    z-index: 5;
    opacity: 0.9;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

.carrusel-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.carrusel-btn.prev {
    left: 16px;
}

.carrusel-btn.next {
    right: 16px;
}

/* Indicadores de slides */
.slide-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.slide-indicator.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ==========================================================================
   GRID DE INFORMACIÓN
   ========================================================================== */
.details-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.info-white-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 28px;
    transition: box-shadow var(--transition-normal);
}

.info-white-card:hover {
    box-shadow: var(--shadow-soft);
}

.location-marker-text {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 500;
}
.location-marker-text i {
    color: var(--color-accent-gold);
    margin-right: 4px;
}
.property-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #111111;
    margin-bottom: 16px;
    line-height: 1.35;
    font-weight: 700;
}
.tag-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.badge-status-sale {
    background-color: var(--color-primary-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Modificadores de color, mismo criterio que .badge/.badge.rent/.badge.sold
   del catálogo — para que la ficha de detalle y la tarjeta se vean iguales */
.badge-status-sale.rent {
    background-color: var(--color-accent-gold);
}

.badge-status-sale.sold {
    background-color: #999999;
}
.detail-price-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.counters-grid-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    padding: 14px 8px;
    background-color: var(--bg-input);
    border-radius: 12px;
}

.counter-item strong {
    font-size: 20px;
    color: var(--color-primary-navy);
    font-weight: 700;
}

.counter-item span {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
    font-weight: 500;
}

.inner-block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary-navy);
    letter-spacing: 1px;
    margin-bottom: 18px;
    border-left: 3px solid var(--color-accent-gold);
    padding-left: 12px;
    text-transform: uppercase;
}

.bullet-details-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bullet-details-columns p {
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 4px 0;
}

.paragraphs-desc-text {
    font-size: 14px;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}
.sub-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-navy);
    margin: 18px 0 10px 0;
    border-top: 1px solid #f0eee8;
    padding-top: 16px;
}
.sub-block-title i {
    color: var(--color-accent-gold);
    margin-right: 6px;
}
.nested-specs-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}
.nested-specs-list li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}
.nested-specs-list li::before {
    content: "•";
    color: var(--color-accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.amenities-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.amenities-checklist-grid span,
.amenities-checklist-grid li {
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 4px 0;
}

/* ==========================================================================
   TARJETA DEL ASESOR (STICKY)
   ========================================================================== */
.advisor-sticky-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0,0,0,0.04);
}

.advisor-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0eee8;
}

.advisor-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-gold);
    padding: 2px;
}

.advisor-meta-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.advisor-meta-text p {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.advisor-meta-text p i {
    color: var(--color-accent-gold);
}

.advisor-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field-input, .form-field-textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid #e8e6e2;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-field-input:focus, .form-field-textarea:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-field-input::placeholder,
.form-field-textarea::placeholder {
    color: #bbbbbb;
}

.phone-prefix-wrapper {
    display: flex;
    gap: 0;
    background: none;
    border-radius: 10px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e8e6e2;
}

.prefix-dropdown {
    border: none;
    background: var(--bg-input);
    font-size: 12px;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    padding: 12px 8px;
    font-family: 'Poppins', sans-serif;
    border-right: 1px solid #e8e6e2;
}

.dynamic-tel {
    background-color: var(--bg-input) !important;
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.dynamic-tel:focus {
    box-shadow: none !important;
}

.submit-form-button-navy {
    width: 100%;
    background-color: var(--color-primary-navy);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    font-family: 'Poppins', sans-serif;
}

.submit-form-button-navy:hover {
    background-color: var(--color-primary-navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 35, 50, 0.2);
}

.submit-form-button-navy:active {
    transform: translateY(0);
}

.submit-form-button-navy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.whatsapp-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--color-primary-navy);
    background-color: transparent;
    color: var(--color-primary-navy);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.whatsapp-btn-outline:hover {
    background-color: var(--color-primary-navy);
    color: #ffffff;
}

.print-property-link-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.print-property-link-btn:hover {
    background-color: var(--bg-input);
    color: var(--text-dark);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.carrusel-slides .slide img {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 92%;
    height: auto;
    max-height: 85vh;
    animation-name: zoom;
    animation-duration: 0.35s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

@keyframes zoom {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.lightbox-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 22px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 2001;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

/* Contador de imágenes en lightbox */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    z-index: 2001;
}

/* ==========================================================================
   TOAST / NOTIFICACIÓN
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary-navy);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    z-index: 3000;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease, fadeIn 0.4s ease;
    transform-origin: bottom right;
    max-width: 360px;
}

.toast-notification i {
    color: var(--color-accent-gold);
    font-size: 18px;
}

/* ==========================================================================
   DISEÑO RESPONSIVO
   ========================================================================== */
/* Tablets grandes / laptops pequeñas: catálogo pasa de 3 a 2 columnas */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .filter-container {
        padding: 18px 22px;
    }
    
    .search-filter-section {
        margin-top: -30px;
        margin-bottom: 40px;
    }
}

/* Tablets: aparece el menú hamburguesa y el nav se convierte en panel lateral deslizable */
@media (max-width: 992px) {
    .main-header {
        padding: 0 20px;
        height: 64px;
    }

    .logo-img {
        height: 46px;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.08);
        transition: right var(--transition-normal);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 15px;
        padding: 12px 16px;
        width: 100%;
    }

    .social-links {
        margin-left: auto;
        margin-right: 8px;
    }

    .filter-container {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .details-layout-grid {
        grid-template-columns: 1fr;
    }

    .advisor-sticky-card {
        position: relative;
        top: 0;
        margin-top: 20px;
    }

    .carrusel-slides {
        height: 380px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-filter-section {
        margin-top: 10px;
    }
}

/* Celulares grandes / tablets pequeñas: reduce tamaños de hero y footer a una columna */
@media (max-width: 768px) {
    .hero-section {
        height: 480px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-filter-section {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .carrusel-slides {
        height: 320px;
    }
    .carrusel-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Celulares estándar: ajustes finos de header, catálogo en 1 columna, formularios, etc. */
@media (max-width: 600px) {
    .main-header {
        padding: 0 14px;
        height: 70px;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .logo-sub {
        font-size: 8px;
        letter-spacing: 2px;
    }
    
    .social-links {
        gap: 2px;
        margin-right: 4px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .hamburger-btn {
        padding: 6px;
    }
    
    .hamburger-btn span {
        width: 20px;
        margin: 4px 0;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 320px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 14px 16px;
    }

    /* Hero */
    .hero-section {
        height: auto;
        min-height: 380px;
        padding: 24px 16px;
    }
    
    .hero-content {
        padding: 0;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-highlight::after {
        height: 2px;
        bottom: 1px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 8px;
        padding: 4px 12px;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }
    
    .hero-stats {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .hero-stat-number {
        font-size: 22px;
    }
    
    .hero-stat-label {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .hero-cta, .hero-cta-outline {
        font-size: 13px;
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }

    /* Search filter */
    .search-filter-section {
        padding: 0 14px;
        margin-top: 10px;
        margin-bottom: 24px;
    }
    
    .filter-container {
        padding: 16px;
        gap: 10px;
        border-radius: 12px;
    }
    
    .filter-group label {
        font-size: 9px;
    }
    
    .filter-group select,
    .filter-group .price-input {
        font-size: 12px;
        padding: 10px;
    }
    
    .btn-search {
        font-size: 12px;
        padding: 12px;
    }

    /* Section title */
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-desc {
        font-size: 13px;
    }
    
    .title-underline {
        width: 44px;
        margin: 8px auto;
    }

    /* Properties grid */
    .properties-section {
        padding: 0 14px;
        margin-bottom: 40px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-container {
        aspect-ratio: 16 / 9;
    }
    
    .badge {
        font-size: 9px;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }
    
    .property-info {
        padding: 14px 16px 16px;
    }
    
    .precio-propiedad {
        font-size: 18px;
    }
    
    .property-desc {
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .property-specs {
        font-size: 11px;
        gap: 4px;
        flex-wrap: wrap;
        padding-top: 12px;
    }
    
    .property-specs i {
        font-size: 11px;
    }

    /* CTA section */
    .cta-section {
        padding: 50px 16px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-text {
        font-size: 13px;
        margin-bottom: 22px;
    }
    
    .cta-button {
        font-size: 13px;
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .main-footer {
        padding: 36px 16px 24px;
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .footer-brand .footer-logo {
        font-size: 18px;
    }
    
    .footer-brand p {
        font-size: 12px;
    }

    /* Detail page */
    .details-container {
        padding: 0 14px;
        margin: 16px auto 40px;
    }
    
    .carrusel-slides {
        height: 240px;
    }

    .carrusel-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .carrusel-btn.prev {
        left: 8px;
    }

    .carrusel-btn.next {
        right: 8px;
    }

    .property-detail-title {
        font-size: 20px;
    }

    .detail-price-text {
        font-size: 22px;
    }

    .info-white-card {
        padding: 20px;
    }

    .counters-grid-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .counter-item {
        padding: 10px 6px;
    }
    
    .counter-item strong {
        font-size: 18px;
    }

    .bullet-details-columns, 
    .amenities-checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .inner-block-title {
        font-size: 12px;
    }

    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 14px;
        right: 16px;
        font-size: 28px;
        width: 38px;
        height: 38px;
    }
    
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
    
    .scroll-top-btn {
        bottom: 74px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .toast-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        font-size: 13px;
        padding: 14px 18px;
    }
}

/* ==========================================================================
   EXTRA SMALL PHONES (< 400px)
   ========================================================================== */
/* Celulares muy pequeños: últimos ajustes de tamaño de letra */
@media (max-width: 400px) {
    .logo-area {
        gap: 8px;
    }
    
    .logo-img {
        height: 42px;
    }

    .logo-text h1 {
        font-size: 11px;
        letter-spacing: 0;
    }
    
    .logo-sub {
        font-size: 7px;
        letter-spacing: 1.5px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-section {
        min-height: 340px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .hero-stat-number {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .precio-propiedad {
        font-size: 16px;
    }
    
    .property-specs {
        font-size: 10px;
        gap: 2px;
    }
}

/* ==========================================================================
   RESPONSIVE NAV OVERLAY
   ========================================================================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

.nav-overlay.show {
    display: block;
}

/* ==========================================================================
   OCULTAR FORMULARIO EN VENDIDAS (sin romper layout)
   ========================================================================== */
.sold-property .advisor-sticky-card {
    display: none;
}

/* Aviso que reemplaza la tarjeta del asesor cuando la propiedad ya se
   vendió — mismo tratamiento visual que .advisor-sticky-card, pero con su
   propia clase para que NO la oculte la regla de arriba. */
.sold-notice-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
}

.sold-notice-card i.fa-circle-check {
    font-size: 32px;
    color: #999999;
    margin-bottom: 14px;
    display: block;
}

.sold-notice-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.sold-notice-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .main-header,
    .main-footer,
    .social-links,
    .advisor-sticky-card,
    .carrusel-btn,
    .print-property-link-btn,
    .slide-indicators,
    .whatsapp-float,
    .scroll-top-btn {
        display: none !important;
    }
    body {
        background-color: #ffffff;
        color: #000000;
    }
    .details-layout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   OCULTAR TARJETAS EN FILTRADO
   ========================================================================== */
.property-card-link.hidden {
    display: none;
}

/* ==========================================================================
   PÁGINAS LEGALES (Aviso de Privacidad, Derechos del Consumidor)
   ========================================================================== */
.legal-container {
    max-width: 820px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.legal-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 6px;
}

.legal-container .legal-subtitle {
    display: block;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.legal-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-navy);
    border-left: 3px solid var(--color-accent-gold);
    padding-left: 12px;
    margin: 34px 0 14px;
}

.legal-container p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.legal-container ul,
.legal-container ol {
    margin: 0 0 18px 22px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-dark);
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container li strong {
    color: var(--text-main);
}

@media (max-width: 600px) {
    .legal-container {
        margin: 30px auto 60px;
        padding: 0 16px;
    }
    .legal-container h1 {
        font-size: 24px;
    }
}
