/* =========================================
   1. VARIABLES & TOKENS (Diseño Stitch UX/UI)
   ========================================= */
:root {
    /* --primary: #136dec; */
    /* --primary: #21395b; */
     /* --primary: #0d4797; */
     /* --primary: #074eb2; */
     --primary: #0d5ed0;
    --primary-dark: #0e52b5;
    --bg-light: #f6f7f8;
    --surface-light: #ffffff;
    --text-main: #111418;
    --text-muted: #617289;
    --verified-green: #00c853;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: 'Inter', sans-serif;
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET Y TIPOGRAFÍA BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition-all); }
ul { list-style: none; }
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
/* .text-primary { color: var(--primary); } */
.text-primary {color: #136dec}
.text-primary2 {color: #3e8fff}
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Iconos de Google Material */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Utilidad de Contenedor Maestro */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* =========================================
   3. COMPONENTE: HEADER NATIVO
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--surface-light);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 640px) { .header-inner { height: 5rem; } }

/* Brand / Logo */
.header-brand-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
@media (min-width: 640px) {
    .header-brand-group { flex-direction: row; align-items: center; gap: 1rem; }
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
}
.brand-icon { font-size: 1.875rem; }
@media (min-width: 640px) { .brand-icon { font-size: 2.5rem; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-title { font-weight: 900; font-size: 1.125rem; color: var(--text-main); text-transform: uppercase; letter-spacing: -0.02em; }
.brand-subtitle { font-weight: 900; font-size: 1.125rem; color: var(--primary); text-transform: uppercase; letter-spacing: -0.02em; }
.brand-divider { display: none; height: 1.5rem; width: 1px; background: var(--gray-300); }
@media (min-width: 640px) { .brand-divider { display: block; } }
.brand-tag { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; margin-top: 0.25rem; margin-left: 1.5rem;}
@media (min-width: 640px) { .brand-tag { font-size: 0.75rem; margin-top: 0; margin-left: 0;} }

/* Menú de Navegación */
.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { font-size: 0.875rem; font-weight: 500; color: var(--text-main); }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 700; }

/* Botones del Header */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem;
    transition: var(--transition-all); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 2px rgba(19, 109, 236, 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-contact { display: none; height: 2.5rem; padding: 0 1.5rem; }
@media (min-width: 768px) { .btn-contact { display: flex; } }
.btn-menu-mobile { display: block; background: transparent; color: var(--text-main); padding: 0.5rem; border: none; cursor: pointer; }
@media (min-width: 768px) { .btn-menu-mobile { display: none; } }

.site-main { flex-grow: 1; }

/* Utilidad para Menú Móvil */
.main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface-light);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-200);
}

/* =========================================
   4. COMPONENTE: FOOTER NATIVO
   ========================================= */
.site-footer {
    background: var(--surface-light);
    border-top: 1px solid var(--gray-200);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-heading { font-weight: 700; color: var(--text-main); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a:hover { color: var(--primary); }
.footer-links a.active-city { color: var(--primary); font-weight: 700; }

.reclamaciones-box {
    display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem;
    border-radius: 0.25rem; border: 1px solid var(--gray-200); background: var(--gray-50);
    max-width: fit-content; margin-top: 0.5rem;
}
.reclamaciones-text { display: flex; flex-direction: column; }

.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 2rem; }

/* =========================================
   5. WIDGET FLOTANTE WHATSAPP
   ========================================= */
.widget-whatsapp {
    position: fixed; bottom: 1.5rem; right: 1rem; z-index: 50;
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
}
.widget-tooltip {
    background: var(--surface-light); padding: 0.75rem 1rem; border-radius: 0.5rem;
    box-shadow: var(--shadow-lg); font-size: 0.875rem; color: var(--text-main);
    border: 1px solid var(--gray-200); position: relative;
    animation: fadeInUp 0.5s ease-out forwards;
    width: 80%;
}
.widget-tooltip-arrow {
    position: absolute; bottom: -0.35rem; right: 1.5rem; width: 0.75rem; height: 0.75rem;
    background: var(--surface-light); border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200); transform: rotate(45deg);
}
.widget-btn {
    display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem;
    background: #25D366; color: white; border-radius: 50%; box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
}
.widget-btn:hover { background: #20bd5a; transform: scale(1.1); }
.widget-btn svg { width: 2rem; height: 2rem; }

@keyframes knock {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(0.9); }
    30% { transform: scale(1.1); }
    50% { transform: scale(1.1) rotate(3deg); }
    70% { transform: scale(1.1) rotate(-3deg); }
}
.animate-knock { animation: knock 2s infinite; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   6. HOME & HERO ELEMENTS
   ========================================= */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.5), transparent); z-index: 1; }
.hero-container { position: relative; z-index: 10; padding: 5rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 42rem;}
@media (min-width: 640px) { .hero-container { padding: 8rem 0; } }
@media (min-width: 1024px) { .hero-container { padding: 10rem 0; margin-left: 8rem;} }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 9999px; background: rgba(19,109,236,0.2); border: 1px solid rgba(19,109,236,0.3); backdrop-filter: blur(4px); width: fit-content; }
.hero-badge .icon { font-size: 0.875rem; color: var(--primary); }
.hero-badge .text { font-size: 0.75rem; font-weight: 700; color: white; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-title { font-size: 2.25rem; font-weight: 900; color: white; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-desc { font-size: 1.125rem; color: #e5e7eb; font-weight: 500; line-height: 1.6; max-width: 33rem; }
@media (min-width: 640px) { .hero-desc { font-size: 1.25rem; } }
.hero-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.btn-hero-primary { display: flex; align-items: center; justify-content: center; height: 3rem; padding: 0 2rem; border-radius: 0.5rem; background: var(--primary); color: white; font-weight: 700; box-shadow: 0 10px 15px -3px rgba(19,109,236,0.25); transition: var(--transition-all); border: none; }
.btn-hero-primary:hover { background: var(--primary-dark); }
.btn-hero-secondary { display: flex; align-items: center; justify-content: center; height: 3rem; padding: 0 2rem; border-radius: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; font-weight: 700; backdrop-filter: blur(4px); transition: var(--transition-all); }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); }

/* =========================================
   7. FEATURES & PROPERTY CARDS (CATÁLOGO)
   ========================================= */
.features-sec { background: var(--gray-50); padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature-icon-wrap { display: flex; align-items: center; justify-content: center; height: 4rem; width: 4rem; border-radius: 50%; background: rgba(19,109,236,0.1); color: var(--primary); margin-bottom: 1.5rem; }
.feature-icon-wrap .icon { font-size: 2.25rem; }
.feature-title { font-size: 1.125rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; }

.catalog-sec { background: var(--bg-light); padding: 1rem 0 4rem; }
@media (min-width: 640px) { .catalog-sec { padding: 6rem 0; } }
.catalog-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .catalog-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.catalog-title { font-size: 1.875rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.catalog-subtitle { font-size: 1.125rem; color: var(--text-muted); }
.catalog-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-weight: 700; }
.catalog-link:hover { text-decoration: underline; }

.property-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tarjetas de Propiedades */
.prop-card { background: var(--surface-light); border-radius: 0.75rem; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: var(--transition-all); }
.prop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prop-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop-card:hover .prop-img-wrap img { transform: scale(1.1); }

.prop-badge-verified { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--verified-green); color: white; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; display: flex; align-items: center; gap: 0.25rem; box-shadow: var(--shadow-sm); z-index: 2; }

.prop-body { padding: 1.25rem; }
.prop-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.prop-title { font-size: 1.25rem; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%; transition: color 0.3s; }
.prop-card:hover .prop-title { color: var(--primary); }
.prop-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.prop-location { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }

.prop-stats { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.prop-stat-item { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--text-muted); }
.prop-stat-item b { font-weight: 600; color: var(--text-main); }

.prop-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 1rem; height: 2.5rem; border-radius: 0.5rem; border: 1px solid var(--primary); color: var(--primary); font-weight: 700; font-size: 0.875rem; transition: var(--transition-all); }
.prop-btn:hover { background: var(--primary); color: white; }

.btn-view-all { display: inline-flex; align-items: center; justify-content: center; height: 3.5rem; padding: 0 2.5rem; border-radius: 0.5rem; background: var(--primary); color: white; font-size: 1.125rem; font-weight: 700; transition: var(--transition-all); box-shadow: var(--shadow-lg); margin-top: 3rem; }
.btn-view-all:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* =========================================
   8. CTA (Call To Action) SECTIONS
   ========================================= */
.cta-sec { padding: 5rem 0; background: var(--primary); text-align: center; }
.cta-title { font-size: 1.875rem; font-weight: 900; color: white; margin-bottom: 1.5rem; letter-spacing: -0.025em; }
@media (min-width: 640px) { .cta-title { font-size: 2.25rem; } }
.cta-desc { font-size: 1.125rem; color: rgba(255, 255, 255, 0.981); max-width: 42rem; margin: 0 auto 2rem; line-height: 1.5; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; height: 3rem; padding: 0 2rem; border-radius: 0.5rem; background: white; color: var(--primary); font-weight: 700; transition: var(--transition-all); border: none; cursor: pointer; }
.btn-cta:hover { background: var(--gray-50); transform: translateY(-2px); box-shadow: var(--shadow-lg); }


/* =========================================
   9. UTILIDADES PARA VISTAS INTERNAS
   ========================================= */
.page-header { background: var(--surface-light); border-bottom: 1px solid var(--gray-200); padding: 2.5rem 0; }
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumbs a:hover { color: var(--primary); }
.page-title { font-size: 2.25rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.025em; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .page-title { font-size: 2.5rem; } }
.page-desc { font-size: 1.125rem; color: var(--text-muted); max-width: 48rem; }

/* Filtros (Comprar) */
.filter-bar { margin-top: 1.5rem; padding: 1rem; background: var(--bg-light); border-radius: 0.75rem; border: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .filter-bar { flex-direction: row; align-items: flex-end; } }
.filter-group { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.form-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-left: 0.25rem; }
.form-control { width: 100%; appearance: none; background: var(--surface-light); border: 1px solid var(--gray-300); color: var(--text-main); border-radius: 0.5rem; padding: 0.625rem 1rem; font-size: 0.875rem; font-family: var(--font-sans); outline: none; transition: var(--transition-all); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(19, 109, 236, 0.2); }
.select-wrapper { position: relative; }
.select-wrapper .material-symbols-outlined { position: absolute; right: 0.75rem; top: 0.625rem; pointer-events: none; color: var(--text-muted); }

/* Paginación */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 4rem; }
.page-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; border: 1px solid var(--gray-200); color: var(--text-muted); font-weight: 700; font-size: 0.875rem; background: var(--surface-light); cursor: pointer; transition: var(--transition-all); }
.page-btn:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Layout Vender y Propiedad (2 Columnas) */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-top: 5rem; padding-bottom: 5rem;}
@media (min-width: 1024px) { .split-layout { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; } }
.content-box { background: var(--surface-light); padding: 2rem; border-radius: 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }
.step-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.step-icon { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface-light); border: 2px solid rgba(19,109,236,0.2); display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Layout Nosotros */
.hero-dark { position: relative; background: var(--text-main); overflow: hidden; padding: 6rem 0; }
.hero-dark-bg { position: absolute; inset: 0; opacity: 0.4; }
.hero-dark-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-dark-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--text-main), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 0.75rem; box-shadow: var(--shadow-lg); position: absolute; bottom: 2rem; left: 2rem; right: 2rem; border: 1px solid var(--gray-200); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 4rem 0; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }


/* =========================================
   10. LAYOUTS ESPECÍFICOS (VENDER, NOSOTROS, PROPIEDAD)
   ========================================= */

/* Vender: Sección de 3 características horizontales */
.features-row { padding: 4rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: var(--surface-light); }
.features-grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .features-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-item-row { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; }
.feature-item-row .material-symbols-outlined { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.feature-item-border { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
@media (min-width: 768px) { .feature-item-border { border-top: none; border-bottom: none; border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); } }

/* Vender: Split Feature */
.feature-split { display: grid; grid-template-columns: 1fr; gap: 4rem; padding-top: 5rem; padding-bottom: 5rem; align-items: center; background: var(--surface-light); }
@media (min-width: 1024px) { .feature-split { grid-template-columns: 1fr 1fr; } }

/* Nosotros: Process Steps */
.process-section { padding: 5rem 0; background: var(--surface-light); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.process-steps { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; margin-top: 3rem; }
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: var(--surface-light); padding: 1.5rem; border-radius: 0.5rem; text-align: center; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); z-index: 2; position: relative; }
.step-number { width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: bold; margin: 0 auto 1rem; }
.step-number.dark { background: var(--text-main); }

/* Propiedad: Layout Principal */
.prop-detail-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; }
@media (min-width: 1024px) { .prop-detail-layout { grid-template-columns: 2fr 1fr; } }

/* Propiedad: Galería */
.gallery-main { width: 100%; aspect-ratio: 16/9; border-radius: 1rem; overflow: hidden; position: relative; margin-bottom: 1rem; border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: 0.5rem; overflow: hidden; cursor: pointer; border: 1px solid var(--gray-200); transition: var(--transition-all); }
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Propiedad: Caja Legal */
.legal-box { border: 2px solid rgba(19, 109, 236, 0.2); border-radius: 0.75rem; overflow: hidden; margin-top: 2rem; background: var(--surface-light); box-shadow: var(--shadow-sm); }
.legal-box-header { background: rgba(19, 109, 236, 0.05); padding: 1rem; border-bottom: 1px solid rgba(19, 109, 236, 0.1); display: flex; align-items: center; gap: 0.75rem; }
.legal-box-body { padding: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .legal-box-body { grid-template-columns: repeat(2, 1fr); } }
.legal-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.legal-icon { color: var(--verified-green); background: rgba(0, 200, 83, 0.1); border-radius: 50%; padding: 0.125rem; display: flex; }

/* Propiedad: Sidebar & Stats */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
.sticky-sidebar { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.agent-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.agent-img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid white; box-shadow: var(--shadow-sm); }

.share-buttons { display: flex; gap: 0.5rem; }
.btn-share { flex: 1; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 0.25rem; color: white; font-weight: bold; font-size: 0.75rem; border: none; cursor: pointer; transition: var(--transition-all); }
.btn-fb { background: #2563eb; } .btn-fb:hover { background: #1d4ed8; }
.btn-tw { background: #0ea5e9; } .btn-tw:hover { background: #0284c7; }
.btn-copy { background: var(--gray-200); color: var(--text-main); } .btn-copy:hover { background: var(--gray-300); }

.safe-buy-box { background: rgba(19, 109, 236, 0.05); border: 1px solid rgba(19, 109, 236, 0.2); border-radius: 0.75rem; padding: 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start; }

/* Utilidad para animar el spinner del formulario */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* =========================================
   11. LIGHTBOX MODAL (PROPIEDAD GALERÍA)
   ========================================= */
.lightbox-modal { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.lightbox-content { max-width: 90%; max-height: 90vh; position: relative; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 0.5rem; object-fit: contain; box-shadow: var(--shadow-xl); animation: fadeInUp 0.3s ease-out; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: white; font-size: 3rem; font-weight: 300; cursor: pointer; background: transparent; border: none; line-height: 1; z-index: 10000; transition: color 0.3s; }
.lightbox-close:hover { color: var(--primary); }
.lightbox-nav { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-all); backdrop-filter: blur(4px); z-index: 10000; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.gallery-main, .gallery-thumb { cursor: pointer; }
.btn-wa { background: #25D366; } .btn-wa:hover { background: #20bd5a; }

/* Google Maps sea Responsive */
iframe { max-width: 100%; }