/* ==============================================================================
   MICASA360 - SISTEMA DE DISEÑO Y ESTILOS DEL MICROSITIO PÚBLICO
   Línea gráfica oficial MiCasa360: Apple Light + Electric Blue (#1d6bf3)
   Sin degradados morados.
   ============================================================================== */

:root {
    /* Paleta Oficial MiCasa360 */
    --brand-blue: #1d6bf3;
    --brand-blue-hover: #1555c4;
    --brand-blue-light: #eff6ff;
    --brand-blue-border: rgba(29, 107, 243, 0.25);

    --bg-main: #ffffff;
    --bg-darker: #f8f9fc;
    --bg-card: #ffffff;
    --border-card: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(29, 107, 243, 0.35);

    /* Textos Apple Charcoal */
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --text-light: #f5f5f7;

    /* WhatsApp Oficial */
    --whatsapp-color: #25D366;
    --whatsapp-dark: #1EBE5D;

    /* Tipografías Oficiales */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Sombreados y Radios */
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 16px 40px rgba(29, 107, 243, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--bg-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
}

.text-blue {
    color: var(--brand-blue);
    display: inline-block;
}

.text-gradient {
    color: var(--brand-blue);
    display: inline-block;
}

/* Botones Apple / MiCasa360 Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(29, 107, 243, 0.3);
}

.btn-primary:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 107, 243, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ==============================================================================
   CABECERA MICROSITIO (APPLE GLASSMORPHISM)
   ============================================================================== */
.microsite-header, .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    height: 74px;
    display: flex;
    align-items: center;
}

.microsite-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-container, .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link, .brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img, .logo-img {
    height: 38px;
    width: auto;
}

.brand-name, .brand-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.brand-name span, .brand-text span {
    color: var(--brand-blue);
}

.sub-badge {
    font-size: 0.72rem;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
}

.nav-links, .header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item, .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.nav-item:hover, .nav-link:hover {
    color: var(--brand-blue);
}

.nav-btn-highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-btn-highlight:hover {
    background: var(--brand-blue);
    color: #fff;
}

.btn-whatsapp-header {
    background: var(--whatsapp-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: var(--transition-smooth);
}

.btn-whatsapp-header:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-1px);
}

/* ==============================================================================
   1. HERO SECTION (MINIMALISTA)
   Solo Nombre de la Propiedad + 2 Botones ("Comenzar Tour 360°" y "Ver Galería Fotográfica")
   ============================================================================== */
.hero-property {
    position: relative;
    padding: 170px 0 100px 0;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.45) 0%, rgba(13, 20, 36, 0.88) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 32px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-actions-centered {
    justify-content: center;
}

.btn-hero-360 {
    background: var(--brand-blue);
    color: #ffffff;
    font-size: 1.05rem;
    padding: 16px 32px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(29, 107, 243, 0.45);
}

.btn-hero-360:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(29, 107, 243, 0.55);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 1.05rem;
    padding: 16px 30px;
    font-weight: 600;
    border-radius: 999px;
    transition: var(--transition-smooth);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* ==============================================================================
   2. RECORRIDO VIRTUAL 360° INTERACTIVO
   ============================================================================== */
.section-tour-360 {
    padding: 90px 0;
    background-color: var(--bg-darker);
    position: relative;
    z-index: 2;
}

.section-header-360 {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.section-heading {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subheading {
    font-size: 1.12rem;
    color: var(--text-secondary);
}

.viewer-360-wrapper {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-card);
}

.viewer-360-bar {
    background: #1d1d1f;
    color: #ffffff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.win-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.viewer-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.viewer-bar-title svg {
    color: var(--brand-blue);
}

.btn-toggle-fullscreen {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-toggle-fullscreen:hover {
    background: rgba(255, 255, 255, 0.25);
}

.viewer-iframe-container {
    position: relative;
    width: 100%;
    height: 640px;
    background: #0d1424;
}

.viewer-iframe-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.viewer-tips-bar {
    background: #fbfbfd;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.tip-item svg {
    color: var(--brand-blue);
    width: 18px;
    height: 18px;
}

/* ==============================================================================
   3. GALERÍA FOTOGRÁFICA (DIRECTAMENTE DESPUÉS DE TOUR 360)
   Título: "Galería Fotográfica" (sin HDR y sin descripción)
   ============================================================================== */
.section-gallery {
    padding: 85px 0;
    background-color: var(--bg-main);
}

.section-header-clean {
    margin-bottom: 36px;
}

.section-header-clean.text-center {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-darker);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.gallery-item-featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 36, 0.45);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    color: #ffffff;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.overlay-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-caption {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 19, 0.95);
    backdrop-filter: blur(15px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-btn-close, .lightbox-btn-prev, .lightbox-btn-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.lightbox-btn-close {
    top: 20px;
    right: 20px;
}

.lightbox-btn-prev {
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-btn-next {
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-btn-close:hover, .lightbox-btn-prev:hover, .lightbox-btn-next:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.lightbox-btn-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-btn-next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding-top: 14px;
}

/* ==============================================================================
   4. DATOS DEL INMUEBLE (BENTO GRID + DESCRIPCIÓN INTEGRADA + MAPA)
   ============================================================================== */
.section-property-data {
    padding: 85px 0;
    background-color: var(--bg-darker);
}

.specs-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 18px;
    margin-bottom: 30px;
}

.spec-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.spec-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-hover);
}

.spec-card-price {
    grid-column: span 2;
    background: #ffffff;
    border-left: 4px solid var(--brand-blue);
}

.spec-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.spec-card-info {
    display: flex;
    flex-direction: column;
}

.spec-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.spec-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.spec-value-price {
    font-size: 1.85rem;
    color: var(--brand-blue);
    font-weight: 800;
}

/* Descripción Integrada */
.property-integrated-description {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 30px;
}

.integrated-desc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.desc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integrated-desc-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.integrated-desc-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.property-description-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* Tags de Equipamiento */
.features-tags-container {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 30px;
}

.features-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-subtitle svg {
    color: var(--brand-blue);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-darker);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-tag svg {
    color: #27c93f;
    width: 15px;
    height: 15px;
}

/* Mapa de Ubicación */
.property-map-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
}

.map-box-header {
    margin-bottom: 18px;
}

.map-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-title svg {
    color: var(--brand-blue);
}

.map-address-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-address-text svg {
    color: var(--brand-blue);
}

.map-embed-container {
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--border-card);
}

.map-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-actions {
    display: flex;
    gap: 12px;
}

/* ==============================================================================
   5. VIÑETA FINAL DE CONTACTO DE LA CORREDORA (GRANDE, DESTACADA, SIN SLUG)
   ============================================================================== */
.section-broker-banner {
    padding: 70px 0 90px 0;
    background: var(--bg-main);
}

.broker-banner-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 48px;
    border: 1px solid var(--border-card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.broker-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--brand-blue);
}

.broker-banner-left {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex: 1;
}

.broker-logo-display {
    flex-shrink: 0;
}

.broker-banner-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 20px;
    padding: 6px;
    background: var(--bg-darker);
    border: 1px solid var(--border-card);
}

.broker-banner-initials {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: var(--brand-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(29, 107, 243, 0.25);
}

.broker-info-content {
    display: flex;
    flex-direction: column;
}

.broker-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-blue);
    margin-bottom: 6px;
}

.broker-agency-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.broker-agent-lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.broker-agent-lead strong {
    color: var(--text-primary);
}

.broker-agent-lead svg {
    color: var(--brand-blue);
    width: 18px;
    height: 18px;
}

.broker-banner-prompt {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
}

.broker-banner-right {
    flex-shrink: 0;
    min-width: 280px;
}

.broker-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-broker-wa {
    background: var(--whatsapp-color);
    color: #ffffff;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-broker-wa:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-broker-call, .btn-broker-mail {
    background: var(--bg-darker);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 13px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-broker-call:hover, .btn-broker-mail:hover {
    background: #ffffff;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-2px);
}

/* ==============================================================================
   6. BOTÓN DE CONTACTO FLOTANTE WHATSAPP
   ============================================================================== */
.floating-contact-pill {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 990;
    animation: floatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-wa-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 18px 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
}

.floating-wa-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(37, 211, 102, 0.45);
}

.wa-icon-glow {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.pulsing-beacon {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-color);
    animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.floating-wa-info {
    display: flex;
    flex-direction: column;
}

.wa-agent-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.wa-agent-action {
    font-size: 0.88rem;
    color: var(--text-primary);
}

/* ==============================================================================
   7. FOOTER BRANDING OFICIAL MICASA360
   ============================================================================== */
.property-footer, .site-footer {
    background: #0d1424;
    color: #ffffff;
    padding: 60px 0 30px 0;
}

.footer-inner, .footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-link, .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand-title span {
    color: var(--brand-blue);
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
    max-width: 520px;
}

.footer-description a {
    color: #ffffff;
}

.footer-promo-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-promo-box span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-bar, .footer-copy {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #27c93f;
}

/* ==============================================================================
   PÁGINA CATÁLOGO (INDEX)
   ============================================================================== */
.catalog-page {
    background-color: var(--bg-darker);
}

.catalog-hero {
    padding: 140px 0 60px 0;
}

.catalog-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.catalog-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

.catalog-section {
    padding-bottom: 100px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 28px;
}

.property-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-hover);
}

.property-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
}

.property-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-card-img-wrap img {
    transform: scale(1.06);
}

.property-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
}

.badge-op {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--brand-blue);
}

.badge-360 {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-photos-count {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.property-card-location svg {
    color: var(--brand-blue);
    width: 15px;
    height: 15px;
}

.property-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
}

.property-card-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.property-card-title a:hover {
    color: var(--brand-blue);
}

.property-card-prices {
    margin-bottom: 14px;
}

.price-uf {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-blue);
    font-family: var(--font-heading);
}

.property-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-darker);
    padding: 4px 10px;
    border-radius: 999px;
}

.property-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-compact-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-card-view {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==============================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ============================================================================== */
@media (max-width: 1024px) {
    .specs-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spec-card-price {
        grid-column: span 2;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .broker-banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 36px 30px;
    }
    .broker-banner-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-property {
        padding: 130px 0 70px 0;
        min-height: 60vh;
    }
    .viewer-iframe-container {
        height: 440px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .specs-bento-grid {
        grid-template-columns: 1fr;
    }
    .spec-card-price {
        grid-column: span 1;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .broker-banner-left {
        flex-direction: column;
        gap: 16px;
    }
    .broker-agency-title {
        font-size: 1.5rem;
    }
    .floating-contact-pill {
        bottom: 16px;
        right: 16px;
    }
    .floating-wa-info {
        display: none;
    }
    .floating-wa-btn {
        padding: 6px;
        border-radius: 50%;
    }
}
