/* ── RESET OVERFLOW MÓVIL ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
  --dark: #0b1120;
  --dark2: #1e293b;
  --white: #ffffff;
  --gray: #64748b;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --green: #10b981;
  --green-hover: #059669;
  --card-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  --font-main: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --gradient-btn: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  --gradient-green: linear-gradient(135deg, var(--green) 0%, var(--green-hover) 100%);
  --primary: #1e3a5f;
  --bg: #f8fafc;
  --accent: #10b981; /* Added missing accent variable */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
}
* { margin:0; padding:0; box-sizing:border-box; }

/* ========================================
   FIX OVERFLOW MÓVIL — DETALLE PROPIEDAD
   ======================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

#page-detalle {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

#page-detalle * {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Excepción para elementos que necesitan 
   ancho mayor (como el carousel-track) */
#page-detalle .carousel-track {
    max-width: unset !important;
    display: flex !important;
}

/* ========================================
   PASO 3 — FIX GALERÍA PRINCIPAL
   ======================================== */

.galeria-wrapper-new {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.galeria-principal-new {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .galeria-principal-new {
        height: 260px !important;
        width: 100% !important;
        border-radius: 10px !important;
    }
    
    #main-carousel {
        width: 100% !important;
        overflow: hidden !important;
    }
}

.carousel-track {
    display: flex !important;
    height: 100% !important;
    transition: transform 0.3s ease !important;
    will-change: transform !important;
}

.carousel-track > * {
    min-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* ========================================
   PASO 4 — FIX CARACTERÍSTICAS EN COLUMNA
   ======================================== */

#det-carac {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    #det-carac {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    #det-carac {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

.carac-card-new {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 14px 8px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    min-height: 80px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.carac-card-new svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #22C55E !important;
    margin-bottom: 6px !important;
}

.carac-card-new .val {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    display: block !important;
}

.carac-card-new .lbl {
    font-size: 0.65rem !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

/* ========================================
   PASO 5 — FIX DESCRIPCIÓN Y MAPA CORTADOS
   ======================================== */

@media (max-width: 768px) {
    /* Descripción */
    #det-desc,
    .det-descripcion-section,
    [id*="desc"],
    [class*="descripcion"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
        white-space: normal !important;
        padding-right: 0 !important;
    }
    
    /* Mapa */
    #map-detalle,
    .mapa-wrapper,
    [id*="map"],
    [class*="mapa"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }
    
    /* Sección ubicación */
    .det-ubicacion-section,
    [class*="ubicacion"] {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    /* Layout principal */
    .detalle-layout-grid {
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Columna izquierda */
    .detalle-col-left,
    .detalle-main,
    [class*="col-left"],
    [class*="main-col"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
}

body { font-family:var(--font-body); color:var(--dark); background:var(--white); }

/* NAV */
nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  background:rgba(255,255,255,0.85); backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,0.4); box-shadow:0 1px 0 rgba(0,0,0,0.05);
  height:68px; display:flex; align-items:center;
  padding:0 32px; justify-content:space-between;
}
.logo { display:flex; align-items:center; gap:10px; cursor:pointer; text-decoration:none; }
.logo-icon { width:36px; height:36px; background:var(--dark); border-radius:8px; display:flex; align-items:center; justify-content:center; font-family:var(--font-main); font-weight:800; color:white; font-size:16px; }
.logo-text { font-family:var(--font-main); font-size:12px; font-weight:700; color:var(--dark); line-height:1.3; text-transform:uppercase; letter-spacing:.02em; }
.logo-text-wrap { display:flex; flex-direction:column; align-items:flex-start; }
.logo-mav { font-size:0.58rem; font-weight:500; color:#94a3b8; letter-spacing:0.05em; line-height:1; margin-top:2px; }
/* Removido para que se vea en celular: @media (max-width: 768px) { .logo-mav { display:none; } } */
.nav-links { display:flex; align-items:center; gap:32px; list-style:none; }
.nav-links a { text-decoration:none; font-size:14px; font-weight:500; color:var(--dark); transition:color .2s; cursor:pointer; }
.nav-links a:hover { color:var(--gray); }
.nav-links .fav-link { display:flex; align-items:center; gap:5px; }
.nav-links .fav-link .heart { color:#ef4444; }
.nav-links a.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 4px; }
.mobile-links a.active { background: rgba(30, 58, 95, 0.05); color: var(--primary) !important; border-left: 4px solid var(--primary); padding-left: 12px !important; border-bottom: 1px solid #f1f5f9; }
.btn-publish { background:var(--gradient-btn); color:white; border:none; padding:10px 20px; border-radius:8px; font-family:var(--font-body); font-size:14px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:6px; transition:all .3s ease; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn-publish:hover { background:var(--dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* MOBILE MENU */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:5px; z-index:1100; }
.hamburger span { display:block; width:24px; height:2px; background:var(--dark); border-radius:2px; transition:all 0.3s; }
.mobile-nav-overlay { position:fixed; inset:0; background:rgba(15,23,42,0.6); z-index:1000; opacity:0; pointer-events:none; transition:opacity 0.3s; backdrop-filter:blur(6px); }
.mobile-nav-overlay.active { opacity:1; pointer-events:auto; }
.mobile-nav-content { position:absolute; right:0; top:0; bottom:0; width:85%; max-width:320px; background:white; padding:24px; transform:translateX(100%); transition:transform 0.4s cubic-bezier(0.3,1,0.3,1); box-shadow:-10px 0 40px rgba(0,0,0,0.1); display:flex; flex-direction:column; }
.mobile-nav-overlay.active .mobile-nav-content { transform:translateX(0); }
.mobile-nav-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:40px; }
.mobile-nav-header img { height:36px; }
.close-mobile { background:none; border:none; font-size:24px; color:var(--dark); cursor:pointer; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:#f1f5f9; }
.mobile-links { list-style:none; display:flex; flex-direction:column; gap:20px; }
.mobile-links li { width: 100%; }
.mobile-links a { display:block; padding:10px 0; color:var(--dark); text-decoration:none; font-size:16px; font-weight:600; cursor:pointer; transition:color 0.2s; border-bottom:1px solid #f1f5f9; }
.mobile-links a:hover { color:var(--green); }
.btn-pub-mobile { display:block; width:100%; padding:16px; background:var(--gradient-btn); color:white; border:none; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer; margin-top:24px; }

@media (max-width: 968px) {
  nav { padding: 0 20px; }
  .nav-links, .btn-publish { display: none; }
  .hamburger { display: flex; }
  .hero { height: auto; min-height: 100vh; padding: 140px 0 80px; }
  .footer-col { align-items: center !important; text-align: center !important; width: 100%; }
  .footer-col p, .footer-col h5, .footer-col div { text-align: center !important; }
  .footer-col > div[style*="display:flex"], .footer-col div > div[style*="display:flex"] { justify-content: center !important; flex-wrap: wrap; text-align: center !important; }
  .social-links { justify-content: center !important; width: 100%; }
  .blog-item-mini div { text-align: left !important; }
}

/* FOOTER BLOG & SOCIAL LINKS FIXES */
.social-links a { color: #94a3b8; transition: color 0.2s; }
.social-links a:hover { color: white; }
.footer-blog { margin-top: 32px; padding-top: 24px; border-top: 1px solid #1e293b; width: 100%; }
.footer-blog h4 { font-size: 14px; color: white; margin-bottom: 20px; font-family: var(--font-main); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; }
.footer-blog-list { display: flex; flex-direction: column; gap: 16px; }
.blog-item-mini { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.2s; width: 100%; }
.blog-item-mini:hover { transform: translateX(4px); }
.blog-item-mini img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.blog-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; text-align: left; }
.blog-info h5 { font-size: 13px; color: #e2e8f0; margin: 0; line-height: 1.4; white-space: normal; overflow-wrap: break-word; word-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; font-weight: 500;}
.blog-info span { font-size: 11px; color: #94a3b8; }
@media (max-width: 968px) {
  .footer-blog h4 { text-align: center; }
  .blog-info { text-align: left; } /* Keep text aligned left inside the card even on mobile */
}

/* PAGES */
.page { display:none; }
.page.active { display:block; }

/* HERO */
.hero { position:relative; height:100vh; min-height:600px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(11,17,32,0.2) 0%, rgba(11,17,32,0.6) 100%), url('../img/fondo-medellin.jpg?v=3') center 40%/cover no-repeat; background-color:#1e293b; animation:slowZoom 20s ease-in-out infinite alternate; }
@keyframes slowZoom { from{transform:scale(1.05)} to{transform:scale(1)} }
.hero-content { position:relative; z-index:2; text-align:center; padding:0 20px; width:100%; max-width:900px; animation:fadeUp .8s ease forwards; }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.hero-title { font-family:var(--font-main); font-size:clamp(32px,6vw,64px); font-weight:800; color:white; line-height:1.1; margin-bottom:20px; letter-spacing:-.02em; }
.hero-sub { font-size:17px; color:rgba(255,255,255,.82); line-height:1.6; margin-bottom:36px; }

/* SEDES EN HERO */
.hero-sede-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 10;
}
.hero-sede-left  { left: 32px; }
.hero-sede-right { right: 32px; }
.hero-sede-icon  { font-size: 1.3rem; margin-bottom: 6px; }
.hero-sede-nombre { font-family: var(--font-main); font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.hero-sede-dir  { font-size: 0.78rem; color: #475569; line-height: 1.5; margin-bottom: 8px; }
.hero-sede-tel  { font-size: 0.78rem; color: #475569; margin-bottom: 12px; }
.hero-sede-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.hero-sede-link:hover { opacity: 0.7; }
@media (max-width: 1024px) { .hero-sede-card { display: none !important; } }

/* Título hero reducido (~25%) para armonizar con tarjetas */
.hero-title { font-family:var(--font-main); font-size:clamp(24px,4vw,48px); font-weight:800; color:white; line-height:1.1; margin-bottom:20px; letter-spacing:-.02em; }


.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    display: flex;
    flex-direction: column;
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.search-input-row:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.05);
}

.search-input-row input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
}

.search-input-row input::placeholder { color: #94a3b8; font-weight: 400; }
.search-input-row svg { color: var(--primary); flex-shrink: 0; }

.search-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 140px;
}

.filter-item:hover {
    background: white;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.filter-content { display: flex; flex-direction: column; gap: 2px; }
.filter-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.1em;
}

.filter-val {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.btn-buscar {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 95, 0.3);
    margin-left: 8px;
    height: 52px;
}

.btn-buscar:hover {
    background: var(--dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 95, 0.4);
}

.popular-searches {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pop-label { font-size: 13px; color: #64748b; font-weight: 600; margin-right: 4px; }
.pop-tag {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 30px;
    background: #f1f5f9;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pop-tag:hover {
    background: white;
    border-color: #cbd5e1;
    color: var(--primary);
    transform: translateY(-1px);
}

/* SECTIONS */
section { padding:60px 0; }
.container { max-width:1200px; margin:0 auto; padding:0 32px; }

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
    }
}
.section-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:32px; }
.section-title { font-family:var(--font-main); font-size:28px; font-weight:700; letter-spacing:-.02em; }
.section-sub { font-size:14px; color:var(--gray); margin-top:4px; }
.link-all { display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--dark); text-decoration:none; transition:gap .2s; }
.link-all:hover { gap:10px; }

/* Grid de propiedades */
.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 24px;
}

@media (max-width: 1024px) {
  .propiedades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 20px;
  }
}

@media (max-width: 600px) {
  .propiedades-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

/* ===== PREMIUM PROPERTY CARDS REDESIGN ===== */
.propiedad-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.propiedad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: #e2e8f0;
}

.propiedad-card-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.propiedad-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.propiedad-card:hover .propiedad-card-imagen img {
    transform: scale(1.08);
}

.propiedad-badges-top {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.propiedad-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-venta { background: rgba(30, 41, 59, 0.9); }
.badge-arriendo { background: rgba(16, 185, 129, 0.9); }
.propiedad-badge.featured { background: rgba(245, 158, 11, 0.9); }

.propiedad-badges-bottom {
    position: absolute;
    bottom: 12px;
    left: 16px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.propiedad-badge-type, .propiedad-badge-zone {
    background: rgba(15, 23, 42, 0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-favorito {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 3;
}

.btn-favorito:hover { transform: scale(1.1); background: white; }

.propiedad-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.propiedad-titulo {
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.45;
    height: 52px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: none;
}

.propiedad-ubicacion {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

.propiedad-features {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.propiedad-feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.propiedad-feature-item svg {
    color: var(--accent);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.precio-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
}

.precio-valor {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.btn-arrow {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.propiedad-card:hover .btn-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(4px) scale(1.05);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

@media (max-width: 600px) {
  .propiedad-titulo { font-size: 16px; height: 48px; }
  .precio-valor { font-size: 18px; }
  .propiedad-card-imagen { aspect-ratio: 16/9; }
}
.propiedad-badge-zone { 
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(30, 58, 95, 0.85); 
  backdrop-filter: blur(4px);
  color: white;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-favorito {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s;
}

.btn-favorito:hover {
  transform: scale(1.1);
}

/* STATS BANNER */
.stats-banner { background:var(--dark); padding:50px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.stat-item { text-align:center; padding:20px; border-right:1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right:none; }
.stat-number { font-family:var(--font-main); font-size:36px; font-weight:800; color:white; display:block; margin-bottom:6px; }
.stat-desc { font-size:13px; color:rgba(255,255,255,.55); }
/* Fix: 2x2 grid en móvil para que el "30+" no se corte */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.1);
  }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .stat-number { font-size: 28px; }
}

/* FILTERS BAR */
.filters-bar { background:white; border-bottom:1px solid var(--border); padding:14px 0; position:sticky; top:68px; z-index:400; }
.tabs-bar { display:flex; justify-content:center; margin-bottom:14px; }
.tab { padding:10px 30px; font-size:14px; font-weight:600; cursor:pointer; border-bottom:2px solid transparent; color:var(--gray); transition:all .2s; background:none; border-top:none; border-left:none; border-right:none; font-family:var(--font-body); }
.tab.active { color:var(--dark); border-bottom-color:var(--dark); }
.filters-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.filter-select { display:flex; align-items:center; gap:8px; padding:9px 14px; border:1px solid var(--border); border-radius:10px; font-family:var(--font-body); font-size:13px; font-weight:500; cursor:pointer; background:white; color:var(--dark); transition:border-color .15s; }
.filter-select:hover { border-color:#9ca3af; }
.filter-select.active-filter { border-color:var(--dark); background:var(--dark); color:white; }
.btn-mas-filtros { display:flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid var(--border); border-radius:10px; font-family:var(--font-body); font-size:13px; font-weight:600; cursor:pointer; background:white; color:var(--dark); margin-left:auto; transition:all .15s; }
.btn-mas-filtros:hover { background:var(--dark); color:white; }
.badge-count { background:#ef4444; color:white; font-size:10px; font-weight:700; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.active-filters { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.active-label { font-size:13px; color:var(--gray); font-weight:500; }
.filter-chip { display:flex; align-items:center; gap:6px; padding:4px 10px; background:var(--dark); color:white; border-radius:20px; font-size:12px; font-weight:600; cursor:pointer; }
.filter-chip .x { font-size:14px; line-height:1; }
.clear-all { font-size:13px; color:#ef4444; font-weight:600; cursor:pointer; background:none; border:none; font-family:var(--font-body); }

/* RESULTS HEADER */
.results-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.results-count { font-size:14px; color:var(--gray); }
.results-count strong { color:var(--dark); font-weight:700; }
.sort-row { display:flex; align-items:center; gap:10px; }
.sort-select { padding:8px 14px; border:1px solid var(--border); border-radius:8px; font-family:var(--font-body); font-size:13px; font-weight:500; background:white; color:var(--dark); cursor:pointer; }
.view-toggles { display:flex; gap:4px; }
.view-btn { width:34px; height:34px; border:1px solid var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; background:white; color:var(--gray); transition:all .15s; }
.view-btn.active { background:var(--dark); border-color:var(--dark); color:white; }

/* PAGINATION */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:40px; flex-wrap:wrap; }
.page-dots { color:var(--gray); padding:0 4px; font-weight:700; display:flex; align-items:end; padding-bottom:4px; }
.page-btn { width:36px; height:36px; border:1px solid var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; background:white; color:var(--dark); font-size:14px; font-weight:500; font-family:var(--font-body); transition:all .15s; }
.page-btn:hover { background:var(--light-bg); }
.page-btn.active { background:var(--dark); color:white; border-color:var(--dark); }
.page-btn:disabled { opacity:.4; cursor:not-allowed; }

/* MAP VIEW */
#map { height:560px; border-radius:16px; overflow:hidden; border:1px solid var(--border); }
.map-container { position:relative; }
.map-sidebar { position:absolute; top:0; right:0; width:340px; height:560px; background:white; border-radius:0 16px 16px 0; border-left:1px solid var(--border); overflow-y:auto; z-index:10; }
.map-card { display:flex; gap:12px; padding:14px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .15s; }
.map-card:hover { background:var(--light-bg); }
.map-card img { width:80px; height:70px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.map-card-info .mc-title { font-size:13px; font-weight:600; margin-bottom:3px; }
.map-card-info .mc-loc { font-size:12px; color:var(--gray); margin-bottom:5px; }
.map-card-info .mc-price { font-family:var(--font-main); font-size:14px; font-weight:700; }
.map-card-info .mc-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:10px; font-weight:700; margin-bottom:4px; }

/* LEAFLET CUSTOM MARKER */
.map-marker { background:var(--dark); color:white; padding:5px 10px; border-radius:20px; font-family:var(--font-main); font-size:12px; font-weight:700; white-space:nowrap; box-shadow:0 4px 12px rgba(0,0,0,.3); cursor:pointer; border:2px solid white; transition:transform .15s; }
.map-marker:hover { transform:scale(1.05); }
.map-marker.arriendo { background:#16a34a; }

/* DETAIL PAGE REDESIGN */
/* SINGLE DETAIL HEADER & BADGES DEFINITION (REMOVED DUPLICATES) */
.detail-header { padding: 40px 0 20px; border-bottom: 1px solid #f1f5f9; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb .current { color: var(--dark); font-weight: 700; }

.detail-badges { display: flex; gap: 10px; margin-bottom: 20px; }
.badge-premium { padding: 6px 14px; border-radius: 30px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; border: none; }
.badge-premium.venta { background: var(--dark); color: white; }
.badge-premium.arriendo { background: #16a34a; color: white; }
.badge-premium.type { background: #f1f5f9; color: #475569; }

.detail-title { font-family: var(--font-main); font-size: 44px; font-weight: 800; color: var(--dark); letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; }
.detail-location { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 15px; font-weight: 500; }
.detail-location svg { color: #ef4444; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    padding: 32px 0 80px;
}

@media (max-width: 1023px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0 40px;
    }
}

/* SIDEBAR REDESIGN */
.sidebar-card { background: white; border: 1px solid #f1f5f9; border-radius: 24px; padding: 32px; position: sticky; top: 100px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.price-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #f1f5f9; }
.price-label { font-size: 13px; font-weight: 600; color: var(--gray); display: block; margin-bottom: 8px; }
.detail-price { font-family: var(--font-main); font-size: 42px; font-weight: 800; color: var(--dark); letter-spacing: -0.03em; }

.agent-section { margin-bottom: 32px; }
.agent-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.agent-info { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.agent-avatar-new { width: 48px; height: 48px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 20px; }
.agent-details { display: flex; flex-direction: column; }
.agent-name { font-size: 16px; font-weight: 700; color: var(--dark); }
.agent-email { font-size: 13px; color: var(--gray); }
.wa-link { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.wa-link:hover { opacity: 0.8; }

.btn-cita-large { 
  width: 100%; padding: 18px; background: var(--green); color: white; border: none; border-radius: 16px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(22,163,74,0.2); margin-bottom: 40px;
}
.btn-cita-large:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.3); }

.lead-form-sidebar h4 { font-family: var(--font-main); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.sf-field { margin-bottom: 16px; }
.sf-field label { font-size: 13px; font-weight: 700; color: var(--dark); display: block; margin-bottom: 8px; }
.sf-field input { 
  width: 100%; padding: 14px 18px; border: 1.5px solid #f1f5f9; border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none; transition: border 0.2s; background: #fafbfc;
}
.sf-field input:focus { border-color: var(--dark); background: white; }
.btn-send-lead { 
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; background: var(--dark) !important; color: white !important;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(15,23,42,0.1);
  -webkit-appearance: none; appearance: none;
}
.btn-send-lead:hover { background: #000; transform: translateY(-2px); }

/* MODAL REDESIGN */
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s; }
.modal.open { display: flex; opacity: 1; }
.modal-content { 
  background: white; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; border-radius: 28px; 
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3); transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.open .modal-content { transform: translateY(0); }

.modal-header-green { 
  background: var(--green); padding: 20px 24px; color: white; position: relative;
  display: flex; align-items: center; gap: 16px;
}
.modal-header-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.modal-info h2 { font-family: var(--font-main); font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.modal-info p { font-size: 13px; opacity: 0.9; margin: 4px 0 0; }
.close-modal-btn { 
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; 
  background: rgba(255,255,255,0.2); color: white; border: none; border-radius: 50%; 
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.close-modal-btn:hover { background: rgba(255,255,255,0.3); }

.modal-body { padding: 20px 24px; }
.modal-intro { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 16px; margin-top: 0; }
.modal-intro strong { color: var(--green); }

.cita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

.form-group-icon { margin-bottom: 12px; }
.form-group-icon label { display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap svg { position: absolute; left: 14px; color: #94a3b8; width: 16px; height: 16px; pointer-events: none; }
.input-icon-wrap input, .input-icon-wrap select, .input-icon-wrap textarea { 
  width: 100%; padding: 10px 14px 10px 40px; border: 1.5px solid #f1f5f9; border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; outline: none; transition: all 0.2s; background: #fafbfc;
  color: var(--dark);
}
.input-icon-wrap input:focus, .input-icon-wrap select:focus, .input-icon-wrap textarea:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(22,163,74,0.05); }
.input-icon-wrap textarea { padding-left: 14px; min-height: 80px; resize: none; }

/* Premium Select styles */
.input-select-premium {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  min-height: 44px; /* Mobile touch target */
}

.chevron-select {
  position: absolute;
  right: 14px;
  color: #94a3b8;
  pointer-events: none;
}

@media (max-width: 768px) {
  .input-select-premium {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
}

.modal-footer { margin-top: 20px; text-align: center; }
.btn-submit-wa { 
  width: 100%; padding: 14px; background: var(--green); color: white; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s;
}
.btn-submit-wa:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.25); }
.modal-trust { margin-top: 16px; color: #94a3b8; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* MAP SECTION REDESIGN */
.mapa-section { margin-top: 48px; }
.mapa-section h3 { font-family: var(--font-main); font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.location-box { background: white; border: 1px solid #f1f5f9; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.location-header { padding: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; }
.loc-info { display: flex; align-items: center; gap: 12px; }
.loc-icon { width: 40px; height: 40px; background: #fff1f2; color: #ef4444; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.loc-text b { display: block; font-size: 14px; color: var(--dark); }
.loc-text span { font-size: 12px; color: var(--gray); }
.map-canvas-new { height: 300px; background: #f8fafc url('https://www.google.com/maps/vt/pb=!1m5!1m4!1i12!2i1024!3i1024!4i256!2m3!1e0!2sm!3i382161116!3m8!2ses!3sUS!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!4e0!5m1!1e0!23i4111425') center/cover; position: relative; }
.map-marker-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.pin-label { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); background: white; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid #f1f5f9; }
.location-footer { padding: 16px 24px; background: #fafbfc; border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 13px; }

/* CAROUSEL */
.carousel { position:relative; border-radius:16px; overflow:hidden; height:420px; background:#f0f0f0; }
.carousel-track { display:flex; height:100%; transition:transform .4s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width:100%; height:100%; }
.carousel-slide img { width:100%; height:100%; object-fit:cover; }
.carousel-nav { position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; background:white; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 12px rgba(0,0,0,.2); border:none; z-index:5; transition:transform .15s, box-shadow .15s; }
.carousel-nav:hover { transform:translateY(-50%) scale(1.08); box-shadow:0 4px 16px rgba(0,0,0,.25); }
.carousel-prev { left:14px; }
.carousel-next { right:14px; }
.carousel-counter { position:absolute; top:16px; right:16px; background:rgba(0,0,0,.6); color:white; padding:5px 12px; border-radius:20px; font-size:13px; font-weight:600; backdrop-filter:blur(4px); z-index:5; }
.carousel-thumbs { display:flex; gap:8px; margin-top:12px; overflow-x:auto; padding-bottom:4px; }
.carousel-thumb { width:72px; height:52px; border-radius:8px; overflow:hidden; cursor:pointer; opacity:.6; transition:opacity .2s; flex-shrink:0; border:2px solid transparent; }
.carousel-thumb.active { opacity:1; border-color:var(--dark); }
.carousel-thumb img { width:100%; height:100%; object-fit:cover; }

/* NUEVA GALERÍA MINIATURAS COMPACTA */
.galeria-miniaturas {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--dark) transparent;
    -webkit-overflow-scrolling: touch;
}

.galeria-miniaturas::-webkit-scrollbar { height: 4px; }
.galeria-miniaturas::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.galeria-miniaturas::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.galeria-miniatura {
    min-width: 90px;
    width: 90px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.galeria-miniatura:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #e2e8f0;
}

.galeria-miniatura.active {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.15);
}

.galeria-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SIDEBAR */
.sidebar-card { background:white; border:1px solid var(--border); border-radius:16px; padding:24px; position:sticky; top:90px; }
.price-label-sm { font-size:12px; color:var(--gray); margin-bottom:4px; }
.detail-price { font-family:var(--font-main); font-size:30px; font-weight:800; margin-bottom:24px; }
.agent-row { display:flex; align-items:center; gap:10px; margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.agent-avatar { width:40px; height:40px; background:var(--light-bg); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; }
.agent-name { font-size:14px; font-weight:600; }
.agent-email { font-size:12px; color:var(--gray); }
.btn-whatsapp { display:flex; align-items:center; gap:8px; color:var(--green); font-size:14px; font-weight:600; cursor:pointer; background:none; border:none; font-family:var(--font-body); margin-bottom:14px; }
.btn-cita { width:100%; padding:14px; background:var(--gradient-green); color:white; border:none; border-radius:10px; font-family:var(--font-body); font-size:15px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:all .3s ease; box-shadow: 0 4px 14px rgba(16,185,129,0.2); margin-bottom:24px; }
.btn-cita:hover { background:var(--green-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.3); }
.contact-form h4 { font-family:var(--font-main); font-size:15px; font-weight:600; margin-bottom:14px; }
.form-field { margin-bottom:12px; }
.form-field label { font-size:12px; font-weight:600; display:block; margin-bottom:4px; }
.form-field .req { color:#ef4444; }
.form-field input, .form-field textarea { width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-family:var(--font-body); font-size:13px; outline:none; transition:border-color .15s; resize:none; }
.form-field input:focus, .form-field textarea:focus { border-color:var(--dark); }

/* CARACTERÍSTICAS */
.caracteristicas { padding:24px; border:1px solid var(--border); border-radius:16px; margin-bottom:24px; }
.carac-title { display:flex; align-items:center; gap:8px; font-family:var(--font-main); font-size:17px; font-weight:700; margin-bottom:20px; }
.carac-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.carac-item { background:var(--light-bg); border-radius:12px; padding:14px; text-align:center; }
.carac-value { font-family:var(--font-main); font-size:20px; font-weight:700; display:block; margin-bottom:2px; }
.carac-label { font-size:11px; color:var(--gray); font-weight:500; }
.descripcion { padding:24px; border:1px solid var(--border); border-radius:16px; margin-bottom:24px; }
.desc-title { font-family:var(--font-main); font-size:17px; font-weight:700; margin-bottom:14px; }
.desc-text { font-size:14px; color:#374151; line-height:1.7; }

/* AMENIDADES */
.amenidades { padding:24px; border:1px solid var(--border); border-radius:16px; margin-bottom:24px; }
.amenidades-grid { display:flex; flex-wrap:wrap; gap:10px; }
.amenidad { display:flex; align-items:center; gap:8px; padding:8px 14px; background:var(--light-bg); border-radius:8px; font-size:13px; font-weight:500; }

/* MAPA DETALLE */
.mapa-detalle { border:1px solid var(--border); border-radius:16px; overflow:hidden; margin-bottom:24px; }
.mapa-detalle h3 { padding:16px 20px 0; font-family:var(--font-main); font-size:17px; font-weight:700; margin-bottom:12px; }
#map-detalle { height:260px; }

/* PANEL */
.overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:600; display:none; opacity:0; transition:opacity .3s; }
.overlay.open { display:block; opacity:1; }
.filters-panel { position:fixed; top:0; right:-420px; width:420px; height:100vh; background:white; z-index:700; overflow-y:auto; transition:right .3s ease; padding:24px; box-shadow:-8px 0 40px rgba(0,0,0,.15); }
.filters-panel.open { right:0; }
.panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.panel-title { font-family:var(--font-main); font-size:18px; font-weight:700; }
.close-btn { width:32px; height:32px; background:var(--light-bg); border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; }
.panel-section { margin-bottom:24px; }
.panel-section-title { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; margin-bottom:12px; }
.toggle-btns { display:flex; gap:8px; flex-wrap:wrap; }
.toggle-btn { padding:7px 14px; border:1px solid var(--border); border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; background:white; color:var(--dark); font-family:var(--font-body); transition:all .15s; }
.toggle-btn.active { background:var(--dark); color:white; border-color:var(--dark); }
.range-inputs { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.range-inputs input { padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-family:var(--font-body); font-size:13px; outline:none; width:100%; }
.range-inputs input:focus { border-color:var(--dark); }
.range-tags { display:flex; gap:8px; flex-wrap:wrap; }
.range-tag { padding:5px 10px; border:1px solid var(--border); border-radius:6px; font-size:12px; font-weight:500; cursor:pointer; background:white; color:var(--dark); font-family:var(--font-body); transition:all .15s; }
.range-tag:hover { background:var(--dark); color:white; }
.esp-grid { display:flex; flex-wrap:wrap; gap:8px; }
.esp-chip { display:flex; align-items:center; gap:6px; padding:7px 14px; border:1px solid var(--border); border-radius:20px; font-size:13px; font-weight:500; cursor:pointer; background:white; color:var(--dark); font-family:var(--font-body); transition:all .15s; }
.esp-chip.active { background:var(--dark); color:white; border-color:var(--dark); }
.radio-list { display:flex; flex-direction:column; gap:8px; }
.radio-item { display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid var(--border); border-radius:8px; cursor:pointer; transition:all .15s; background:white; font-size:13px; }
.radio-item.active-r { background:var(--dark); border-color:var(--dark); color:white; }
.radio-dot { width:16px; height:16px; border-radius:50%; border:2px solid var(--border); flex-shrink:0; }
.radio-item.active-r .radio-dot { border-color:white; background:white; position:relative; }
.radio-item.active-r .radio-dot::after { content:''; width:6px; height:6px; background:var(--dark); border-radius:50%; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:block; }
.panel-footer { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:24px; padding-top:20px; border-top:1px solid var(--border); position:sticky; bottom:0; background:white; padding-bottom:10px; }
.btn-clear-panel { padding:12px; border:1px solid var(--border); border-radius:10px; font-family:var(--font-body); font-size:14px; font-weight:600; cursor:pointer; background:white; }
.btn-apply { padding:12px; border:none; border-radius:10px; font-family:var(--font-body); font-size:14px; font-weight:600; cursor:pointer; background:var(--dark); color:white; }

/* ============ FEATURE 1: BOTÓN FLOTANTE & INTERÉS ============ */

/* Indicador de Interés (Detail Page) */
.detail-interest-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 12px 0 20px;
  background: rgba(241, 245, 249, 0.5);
  padding: 8px 16px;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid #e2e8f0;
}

.detail-interest-indicator::before {
  content: '👁';
  font-size: 16px;
}

/* Contenedor Botón Flotante */
.floating-cta-container {
  position: fixed;
  bottom: 85px; /* Incrementado para evitar el botón de WhatsApp */
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 999;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  padding: 0 20px;
  display: none; /* Controlado por JS */
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 540px) {
    .floating-cta-container {
        max-width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
        transform: none;
    }
}

.floating-cta-container.visible {
  display: flex;
  justify-content: center;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.btn-floating-cta {
  background: #22C55E; /* Verde solicitado */
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
  width: 100%;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-floating-cta:hover {
  background: #16a34a;
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.5);
}

.btn-floating-cta:active {
  transform: scale(0.98);
}

/* Adaptación Escritorio */
@media (min-width: 1024px) {
  .floating-cta-container {
    left: auto;
    right: 40px;
    transform: translateY(100px);
    width: auto;
    max-width: none;
    padding: 0;
  }
  
  .floating-cta-container.visible {
    transform: translateY(0);
  }
  
  .btn-floating-cta {
    width: auto;
    padding: 18px 40px;
    font-size: 16px;
  }
}

/* Animación para el indicador */
.detail-interest-indicator.animate {
  animation: interestPulse 2s infinite alternate;
}

@keyframes interestPulse {
  from { border-color: #e2e8f0; }
  to { border-color: #22C55E; box-shadow: 0 0 10px rgba(34, 197, 94, 0.1); }
}

/* NO RESULTS */
.no-results { text-align:center; padding:60px 20px; }
.no-results h3 { font-family:var(--font-main); font-size:22px; font-weight:700; margin-bottom:8px; }
.no-results p { color:var(--gray); font-size:14px; }

/* ============ PREMIUM FOOTER ============ */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand .logo-text {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 30px;
}

.ft-enlaces-net {
  display: flex;
  gap: 16px;
}

.ft-ico-ext {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
}

.ft-ico-ext:hover {
  background: var(--accent);
  transform: translateY(-3px) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  border-color: transparent;
}

/* FOOTER PREMIUM RESTORATION */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 48px;
  padding: 48px 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.ft-enlaces-net {
  display: flex;
  gap: 16px;
}

.ft-ico-ext {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
  text-decoration: none;
}

.ft-ico-ext:hover {
  background: #22C55E;
  transform: translateY(-3px);
}

.footer-badge-pill {
  display: inline-flex;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  width: fit-content;
  margin-top: 24px;
}

.footer-h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* BLOG INMOBILIARIO STYLES */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.blog-item:hover {
  transform: translateX(4px);
}

.blog-item-imagen {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
  background: #1e293b;
}

.blog-item-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-item-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.blog-item:hover .blog-item-titulo {
  color: #22C55E;
}

.blog-item-categoria {
  font-size: 0.72rem;
  color: #7B9AB2;
  font-weight: 400;
}

/* BOLETÍN STYLES */
.newsletter-form {
  margin-bottom: 32px;
}

.newsletter-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.newsletter-input-group {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.newsletter-input-group:focus-within {
  border-color: #22C55E;
}

.newsletter-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-btn {
  background: #1e3a5f;
  color: white;
  border: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-btn:hover {
  background: #22C55E;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sede-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sede-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.sede-detail {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.sede-detail svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
}

.sede-detail a {
  color: #22C55E;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* WA FAB */
.wa-fab { 
  position:fixed; bottom:24px; right:24px; z-index:300; width:50px; height:50px; 
  background:#25d366; border-radius:50%; display:flex; align-items:center; justify-content:center; 
  cursor:pointer; box-shadow:0 4px 20px rgba(37,211,102,.4); text-decoration:none; transition:all .3s; 
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-sizing: content-box;
}
.wa-fab:hover { transform:scale(1.08); }
/* Fix: Sube el FAB cuando el panel de detalle está activo para no tapar "Agendar Visita" */
@media (max-width: 1024px) {
  .wa-fab { bottom: 90px; }
}

/* ANIMATIONS */
/* CAROUSEL BASE */
.carousel-container {
  width: 100%;
  position: relative;
  margin-bottom: 24px;
}
.carousel {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.2s;
  color: var(--dark);
}
.carousel-nav:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* SECCIÓN THUMBS DUPLICADA ELIMINADA PARA ACTIVAR CARRUSEL */

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* MAPA DETALLE INTERACTIVO */
.mapa-section {
  margin-top: 40px;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.location-box {
  margin-top: 20px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}
.location-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
}
.loc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.loc-icon {
  width: 40px;
  height: 40px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-text b { display: block; font-size: 15px; color: var(--dark); }
.loc-text span { font-size: 13px; color: var(--gray); }

.map-canvas-new {
  width: 100%;
  height: 400px;
  position: relative;
  background: #f1f5f9;
}
#map-detalle {
  width: 100%;
  height: 100%;
}
/* Ocultar el pin temporal si Google Maps carga correctamente */
.gm-style .map-marker-pin, 
.gm-style .pin-label {
  display: none;
}

.location-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  background: #fafbfc;
}

/* FOOTER SOCIAL */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
  text-decoration: none;
}
.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* OVERLAY & MODALS */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.modal-content {
  background: white;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal.active .modal-content {
  transform: scale(1) translateY(0);
}
.input-icon-wrap input.field-error,
.input-icon-wrap select.field-error {
  border-color: #ef4444 !important;
  background: #fff5f5 !important;
}
.field-error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.btn-submit-wa:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

/* SKELETON & LOADING */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-card { border: 1px solid #f1f5f9; overflow: hidden; pointer-events: none; }
.skeleton-img { width: 100%; height: 200px; border-radius: 0; }
.skeleton-title { height: 18px; width: 85%; margin-bottom: 12px; }
.skeleton-text { height: 14px; width: 60%; margin-bottom: 8px; }
.skeleton-stat { height: 14px; width: 40px; border-radius: 4px; }
.skeleton-price { height: 24px; width: 120px; }
.skeleton-btn { height: 36px; width: 36px; border-radius: 8px; }

/* NO RESULTS */
.no-results { padding: 80px 20px; text-align: center; background: white; border-radius: 20px; border: 1px dashed #e2e8f0; margin-top: 20px; }
.no-results-icon { font-size: 48px; margin-bottom: 20px; filter: grayscale(1); opacity: 0.5; }
.no-results h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; font-weight: 700; }
.no-results p { color: var(--gray); margin-bottom: 24px; font-size: 15px; }
.btn-primary-sm { background: var(--green); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* CATEGORY CHIPS */
.cat-chips { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.cat-chip { padding:8px 18px; border:1px solid var(--border); border-radius:20px; font-size:13px; font-weight:500; cursor:pointer; background:white; color:var(--dark); font-family:var(--font-body); transition:all .15s; }
.cat-chip.active,.cat-chip:hover { background:var(--dark); color:white; border-color:var(--dark); }

/* PREMIUM SEARCH COMPONENT */
.buscador-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
  padding: 28px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.buscador-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--dark);
  background: transparent;
  font-family: var(--font-main);
  font-weight: 500;
}

.buscador-input::placeholder { color: #94a3b8; }

.filtros-fila {
  display: flex;
  align-items: center;
  gap: 0;
}

.filtro-item {
  flex: 1;
  padding: 8px 24px;
  border-right: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.filtro-item:hover { background: #f8fafc; }
.filtro-item:last-of-type { border-right: none; }

.filtro-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-valor {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* PREMIUM DROPDOWN MENUS */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  z-index: 2000;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.dropdown-menu.show {
  display: block;
  opacity: 0;
  transform: translateY(-8px);
  animation: dropdownFadePremium 0.2s ease forwards;
}

@keyframes dropdownFadePremium {
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7B9AB2;
  padding: 14px 16px 6px 16px;
  background: #fbfcfd;
  pointer-events: none;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.dropdown-option {
  padding: 10px 16px 10px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  border-radius: 6px;
  margin: 2px 8px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-option:hover {
  background: #F5F7FA;
  color: #000;
}

.dropdown-option.selected {
  background: #0f172a;
  color: #fff;
}

.dropdown-option.selected::after {
  content: '✓';
  font-size: 0.85rem;
  font-weight: 900;
  margin-left: 8px;
}

.dropdown-option.opcion-neutra {
  padding-left: 16px;
  color: #64748b;
  font-style: italic;
}

.dropdown-menu::-webkit-scrollbar { width: 5px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

@media (max-width: 768px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    bottom: auto;
    left: -10px;
    right: auto;
    width: 250px;
    min-width: 0;
    max-height: 50vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2500;
  }
}

.btn-buscar {
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-left: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-buscar:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.chips-populares {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.chip-label { font-size: 0.85rem; color: #64748b; font-weight: 600; }

.chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
}

.chip:hover {
  border-color: #0f172a;
  color: #0f172a;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .buscador-container { padding: 20px; margin: 0 16px; width: calc(100% - 32px); }
  /* Fix: filtros en grilla 2x2 en lugar de columna vertical */
  .filtros-fila {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    flex-direction: unset;
  }
  .filtro-item {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 12px;
    width: 100%;
  }
  /* Quitar borde derecho en items de la columna derecha */
  .filtro-item:nth-child(even) { border-right: none; }
  /* Quitar borde inferior en los dos últimos */
  .filtro-item:nth-last-child(-n+2):not(.btn-buscar) { border-bottom: none; }
  /* Botón buscar ocupa las 2 columnas */
  .btn-buscar {
    grid-column: 1 / -1;
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
  /* Fix: chips con fade a la derecha */
  .chips-populares {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none;
    position: relative;
  }
  .chips-populares::-webkit-scrollbar { display: none; }
}
@media (max-width: 768px) {
  .detail-title { font-size: clamp(22px, 5vw, 36px); }
  .detail-price { font-size: clamp(24px, 6vw, 42px); }
  .detail-header { padding: 24px 0 16px; }

  .popular-searches::-webkit-scrollbar { display: none; }
  .pop-label { flex-shrink: 0; font-size: 12px; margin-right: 4px; }
  .pop-tag { flex-shrink: 0; padding: 6px 12px !important; font-size: 12px !important; }
  
  /* Modal Responsiveness */
  .cita-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-content { 
    max-height: 90vh; 
    overflow-y: auto; 
    margin: 20px;
    width: calc(100% - 40px);
  }
  .modal-header-green { padding: 16px 20px; }
  .modal-info h2 { font-size: 18px; }
  .modal-body { padding: 16px 20px; }
  
  .input-icon-wrap input, .input-icon-wrap select, .input-icon-wrap textarea { padding: 12px 14px 12px 38px; }
  #cita-hora-display { padding: 12px 14px 12px 38px !important; }

  /* Hamburger & Tap Targets */
  .hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fav-btn { width: 44px; height: 44px; }

  /* Filters panel full-width on mobile */
  .filters-panel { width: 100%; right: -100%; }
  .filters-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

/* Mobile Nav Footer */
.mobile-nav-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid #f1f5f9; }
.mobile-nav-footer p { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.mobile-nav-footer a { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }

/* CONTACT PAGE (Based on New Design) */
.contact-page-layout { display:grid; grid-template-columns: 1.8fr 1fr; gap:32px; padding:40px 0 80px; align-items:start; }
.contact-card { background:#fff; border-radius:24px; padding:40px; box-shadow:0 10px 30px rgba(0,0,0,0.04); border:1px solid #f1f5f9; }
.contact-title { font-size:32px; font-weight:800; color:var(--dark); margin-bottom:8px; letter-spacing:-0.03em; }
.contact-subtitle { color:var(--gray); font-size:15px; margin-bottom:40px; }

.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.contact-full { grid-column: span 2; }
.c-field { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.c-label { font-size:13px; font-weight:700; color:var(--dark); }
.c-input-wrapper { position:relative; display:flex; align-items:center; }
.c-input-wrapper svg { position:absolute; left:16px; color:#94a3b8; }
.c-input-wrapper input, .c-input-wrapper select, .c-input-wrapper textarea {
  width:100%; padding:14px 16px 14px 46px; border:1.5px solid #e2e8f0; border-radius:12px;
  font-family:var(--font-body); font-size:15px; outline:none; transition:all 0.2s; background:#fcfcfc;
}
.c-input-wrapper textarea { padding-left:16px; min-height:120px; resize:vertical; }
.c-input-wrapper input:focus, .c-input-wrapper select:focus, .c-input-wrapper textarea:focus {
  border-color:var(--dark); background:white; box-shadow:0 0 0 4px rgba(15,23,42,0.05);
}

.contact-sidebar { display:flex; flex-direction:column; gap:24px; }
.sede-card { background:white; border-radius:20px; padding:24px; box-shadow:0 10px 20px rgba(0,0,0,0.03); border:1px solid #f1f5f9; }
.sede-header { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.sede-icon { width:40px; height:40px; background:#f1f5f9; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--dark); }
.sede-title { font-size:18px; font-weight:700; color:var(--dark); }

/* ===== MULTI-STEP PUBLISH FORM ===== */
.pub-header { text-align:center; padding:60px 20px 40px; background:white; border-bottom:1px solid var(--border); }
.pub-tag { font-size:12px; font-weight:700; letter-spacing:0.12em; color:var(--green); text-transform:uppercase; margin-bottom:12px; }
.pub-title { font-family:var(--font-main); font-size:clamp(28px,4vw,48px); font-weight:800; color:var(--dark); letter-spacing:-0.02em; line-height:1.15; margin-bottom:16px; }
.pub-sub { color:#6b7280; font-size:16px; }

.pub-stepper-wrap { background:white; padding:32px 20px 20px; border-bottom:1px solid var(--border); }
.pub-stepper { display:flex; align-items:flex-start; justify-content:center; gap:0; max-width:700px; margin:0 auto 20px; }
.pub-step { display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; position:relative; cursor:default; }
.pub-step span { font-size:12px; font-weight:600; color:#9ca3af; text-align:center; transition:color .3s; }
.step-icon { width:48px; height:48px; border-radius:50%; background:#f3f4f6; border:2px solid #e5e7eb; display:flex; align-items:center; justify-content:center; color:#9ca3af; transition:all .3s; }
.pub-step.active .step-icon { background:var(--dark); border-color:var(--dark); color:white; box-shadow:0 4px 14px rgba(15,23,42,.25); }
.pub-step.completed .step-icon { background:var(--green); border-color:var(--green); color:white; }
.pub-step.active span, .pub-step.completed span { color:var(--dark); }
.step-line { flex:1; height:2px; background:#e5e7eb; margin-top:24px; transition:background .4s; }
.step-line.done { background:var(--green); }
.step-progress-bar { height:4px; background:#e5e7eb; border-radius:99px; max-width:700px; margin:0 auto 12px; overflow:hidden; }
#step-progress-fill { height:100%; background:var(--green); border-radius:99px; transition:width .5s cubic-bezier(.4,0,.2,1); }
.step-label { text-align:center; font-size:13px; color:#6b7280; }

.pub-form-body { max-width:840px; margin:0 auto; padding:40px 20px 60px; }
.pub-panel { display:none; animation:fadeUpIn .4s ease-out; }
.pub-panel.active { display:block; }
.pub-section-card { background:white; border-radius:20px; padding:32px; box-shadow:0 4px 24px rgba(0,0,0,0.05); border:1px solid var(--border); margin-bottom:24px; }
.pub-field-title { font-size:15px; font-weight:700; color:var(--dark); margin-bottom:16px; }
.pub-error-msg { display:block; color:#ef4444; font-size:12px; margin-top:6px; min-height:16px; }

/* Tipo cards */
.tipo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.tipo-card { border:2px solid #e5e7eb; border-radius:14px; padding:20px 12px; display:flex; flex-direction:column; align-items:center; gap:10px; font-size:13px; font-weight:600; color:#374151; cursor:pointer; transition:all .2s; text-align:center; }
.tipo-card:hover { border-color:#94a3b8; background:#f8fafc; }
.tipo-card.selected { border-color:var(--dark); background:#f0f4ff; color:var(--dark); box-shadow:0 0 0 3px rgba(15,23,42,.08); }

/* Negocio cards */
.negocio-grid { display:flex; gap:14px; }
.negocio-card { flex:1; border:2px solid #e5e7eb; border-radius:14px; padding:18px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:14px; font-weight:700; color:#374151; cursor:pointer; transition:all .2s; }
.negocio-card:hover { border-color:#94a3b8; background:#f8fafc; }
.negocio-card.selected { border-color:var(--green); background:#f0fdf4; color:#16a34a; }

/* Form fields */
.pub-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.pub-field { display:flex; flex-direction:column; gap:6px; }
.pub-field label { font-size:13px; font-weight:600; color:#374151; }
.pub-input-wrap { position:relative; display:flex; align-items:center; }
.pub-input-wrap input, .pub-input-wrap textarea, .pub-input-wrap select { width:100%; padding:12px 16px; border:1.5px solid #e5e7eb; border-radius:10px; font-size:14px; font-family:var(--font-body); color:var(--dark); outline:none; transition:border .2s; resize:vertical; }
.pub-input-wrap input:focus, .pub-input-wrap textarea:focus { border-color:var(--dark); }
.input-prefix { position:absolute; left:14px; color:#6b7280; font-size:15px; font-weight:600; pointer-events:none; }
.input-prefix + input { padding-left:28px; }

/* Dropzone */
.dropzone { border:2px dashed #d1d5db; border-radius:16px; padding:40px 20px; text-align:center; cursor:pointer; transition:all .2s; }
.dropzone:hover, .dropzone.drag-over { border-color:var(--dark); background:#f8fafc; }
.dropzone p { color:#6b7280; font-size:14px; margin-top:12px; }
.dropzone-link { color:var(--dark); font-weight:700; text-decoration:underline; cursor:pointer; }
.foto-preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; margin-top:20px; }
.foto-preview-item { position:relative; border-radius:10px; overflow:hidden; aspect-ratio:1; }
.foto-preview-item img { width:100%; height:100%; object-fit:cover; }
.foto-preview-item .remove-foto { position:absolute; top:4px; right:4px; width:22px; height:22px; background:rgba(0,0,0,.6); color:white; border:none; border-radius:50%; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; }

/* Confirm box */
.pub-confirm-box { display:flex; align-items:flex-start; gap:12px; margin-top:20px; padding:16px; background:#f8fafc; border-radius:10px; border:1px solid var(--border); }
.pub-confirm-box input[type="checkbox"] { margin-top:3px; accent-color:var(--dark); width:16px; height:16px; flex-shrink:0; }
.pub-confirm-box label { font-size:13px; color:#374151; line-height:1.6; }

/* Nav buttons */
.pub-nav-btns { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.pub-btn-next { display:flex; align-items:center; gap:8px; background:var(--dark); color:white; border:none; padding:14px 32px; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer; transition:all .2s; margin-left:auto; }
.pub-btn-next:hover { background:#1e3a5f; transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2); }
.pub-btn-prev { display:flex; align-items:center; gap:8px; background:white; color:var(--dark); border:1.5px solid var(--border); padding:14px 24px; border-radius:12px; font-size:15px; font-weight:700; cursor:pointer; transition:all .2s; }
.pub-btn-prev:hover { background:#f1f5f9; }

/* ===== BANNER MODAL ===== */
.banner-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .4s; }
.banner-modal-overlay.visible { opacity:1; pointer-events:all; }
.banner-modal-box { position:relative; width:100%; max-width:700px; border-radius:20px; overflow:hidden; background:black; box-shadow:0 30px 80px rgba(0,0,0,.5); animation:scaleIn .4s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes scaleIn { from { transform:scale(.85); opacity:0; } to { transform:scale(1); opacity:1; } }
.banner-modal-box.closing { animation:scaleOut .3s ease forwards; }
@keyframes scaleOut { to { transform:scale(.9); opacity:0; } }

.banner-close-btn { position:absolute; top:14px; right:14px; z-index:10; width:36px; height:36px; background:rgba(0,0,0,.5); border:none; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; color:white; backdrop-filter:blur(6px); transition:background .2s; }
.banner-close-btn:hover { background:rgba(0,0,0,.8); }

.banner-carousel { position:relative; width:100%; }
.banner-slide { display:none; }
.banner-slide.active { display:block; }
.banner-slide img { width:100%; max-height:500px; object-fit:cover; display:block; }

.banner-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.4); color:white; border:none; cursor:pointer; font-size:36px; line-height:1; padding:8px 14px; border-radius:8px; z-index:5; transition:background .2s; backdrop-filter:blur(4px); }
.banner-nav:hover { background:rgba(0,0,0,.7); }
.banner-prev { left:10px; }
.banner-next { right:10px; }

.banner-dots { position:absolute; bottom:54px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:5; }
.banner-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.5); cursor:pointer; transition:all .3s; }
.banner-dot.active { background:white; transform:scale(1.3); }

.banner-skip-row { background:#1a1a2e; padding:10px 20px; display:flex; align-items:center; justify-content:center; }
.banner-skip-label { display:flex; align-items:center; gap:8px; color:#94a3b8; font-size:13px; cursor:pointer; }
.banner-skip-label input { accent-color:var(--green); }

/* ===== PSE SECCIÓN ===== */
.pse-section { background:linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); padding:80px 0; }
.pse-header { display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:16px; color:white; }
.pse-header h2 { font-family:var(--font-main); font-size:clamp(24px,3vw,36px); font-weight:800; letter-spacing:-0.02em; }
.pse-header h2 span { color:#60a5fa; }
.pse-header svg { color:#60a5fa; }
.pse-sub { text-align:center; color:#94a3b8; margin-bottom:48px; font-size:15px; }

.pse-cards { display:grid; grid-template-columns:1fr 1fr; gap:28px; max-width:780px; margin:0 auto; }

.pse-card { border-radius:20px; overflow:hidden; position:relative; border:1px solid rgba(255,255,255,.1); box-shadow:0 20px 60px rgba(0,0,0,.4); transition:transform .3s; }
.pse-card:hover { transform:translateY(-6px); }
.pse-card-badge { padding:10px 20px; font-size:12px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; }
.pse-floresta > .pse-card-badge { background:#1e3a5f; color:#93c5fd; }
.pse-bello > .pse-card-badge { background:#1d4ed8; color:#bfdbfe; }
.pse-card-content { background:white; padding:28px; }
.pse-logo-row { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.pse-icon-wrap { width:84px; height:84px; display:flex; align-items:center; justify-content:center; border-radius:12px; overflow:hidden; flex-shrink:0; }
.pse-sede-name { font-size:18px; font-weight:700; color:var(--dark); }
.pse-sede-addr { font-size:12px; color:#6b7280; margin-top:2px; }
.pse-features { list-style:none; margin:0 0 24px; display:flex; flex-direction:column; gap:8px; }
.pse-features li { display:flex; align-items:center; gap:8px; font-size:13px; color:#374151; }

.pse-btn { display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 20px; border-radius:12px; font-size:14px; font-weight:700; text-decoration:none; width:100%; transition:all .2s; border:none; cursor:pointer; }
.pse-btn-floresta { background:#1e3a5f; color:white; }
.pse-btn-floresta:hover { background:#162c4a; transform:translateY(-2px); box-shadow:0 6px 20px rgba(30,58,95,.4); }
.pse-btn-bello { background:#1d4ed8; color:white; }
.pse-btn-bello:hover { background:#1a40b8; transform:translateY(-2px); box-shadow:0 6px 20px rgba(29,78,216,.4); }

.pse-mini-logo { width:74px; height:74px; object-fit:contain; display:block; }

.pse-info { display:flex; align-items:center; justify-content:center; color:#475569; font-size:13px; margin-top:36px; }

@media(max-width:768px) {
  .tipo-grid { grid-template-columns:repeat(2,1fr); }
  .pub-grid-2 { grid-template-columns:1fr; }
  .pub-grid-2 .pub-field[style*="grid-column:span 2"] { grid-column:span 1; }
  .pse-cards { grid-template-columns:1fr; }
  .negocio-grid { flex-direction:column; }
}



.sede-info-item { display:flex; gap:12px; margin-bottom:12px; font-size:13.5px; color:#475569; line-height:1.5; }
.sede-info-item svg { margin-top:3px; flex-shrink:0; color:#94a3b8; }
.sede-map-thumb { width:100%; height:140px; border-radius:12px; margin-top:16px; overflow:hidden; position:relative; border:1px solid #e2e8f0; }
.sede-map-thumb img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.sede-map-thumb:hover img { transform:scale(1.1); }
.map-overlay-btn { position:absolute; bottom:12px; left:12px; background:rgba(255,255,255,0.9); padding:6px 12px; border-radius:6px; font-size:11px; font-weight:700; color:var(--dark); text-decoration:none; backdrop-filter:blur(4px); box-shadow:0 2px 8px rgba(0,0,0,0.1); }

@media (max-width: 968px) {
  .contact-page-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-full { grid-column: span 1; }
}


/* GLOBAL FORM STYLES */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group textarea {
    height: 80px;
    padding: 10px 12px;
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* SERVICES SECTION */
.services-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.services-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 48px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: var(--bg);
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
}

/* Newsletter V2 - Footer Enhancement */
.newsletter-wrap-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.newsletter-wrap-v2 .newsletter-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.newsletter-wrap-v2 .newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter-wrap-v2 .newsletter-input:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.newsletter-wrap-v2 .newsletter-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.newsletter-wrap-v2 .newsletter-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}
.newsletter-wrap-v2 .newsletter-btn:active {
  transform: translateY(0);
}

.modal-body {
    padding: 30px;
}/* @MEDIA PRINT (Ficha Técnica PDF) */
@media print {
  nav, footer, .search-box, .btn-whatsapp, .fav-btn, button, .carousel-nav, .carousel-thumbs, .wa-fab, .virtual-tour-section, .similar-props-section { display: none !important; }
  body { background: white !important; color: var(--dark); margin: 0; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { display: none !important; }
  #page-detalle.active { display: block !important; padding: 0 !important; }
  .detail-header { padding-top: 20px !important; border-bottom: 2px solid var(--dark); margin-bottom: 30px; }
  .detail-layout { display: grid !important; grid-template-columns: 1fr 300px !important; gap: 30px; }
  .carousel { height: 350px !important; margin-bottom: 20px; border-radius: 0; }
  .sidebar-card { border: 1px solid var(--border); box-shadow: none !important; position: static !important; }
  .container { max-width: 100% !important; padding: 0 40px !important; }
  .mortgage-calc { display: none !important; }
  .carac-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .amenidades-grid { gap: 5px !important; }
  .amenidad { border: 1px solid #eee; background: none !important; border-radius: 4px; padding: 4px 8px; font-size: 11px; }
  #map-detalle { height: 200px !important; }
  .detail-title { font-size: 24px !important; }
  h1, h2, h3 { color: var(--dark) !important; }
}

/* REDESIGN: DETAIL PAGE V2 */
.detail-main { display: flex; flex-direction: column; gap: 32px; }
.carousel-container { position: relative; }
.carousel-container .carousel { border-radius: 24px; height: 480px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.carousel-nav { width: 44px; height: 44px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); }

.caracteristicas-section h3, .descripcion-section h3, .mapa-section h3 { 
    font-family: var(--font-main); font-size: 20px; font-weight: 700; color: var(--dark); margin: 0;
}
.section-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.section-title-row svg { color: var(--gray); }

.carac-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.carac-card-new { 
    background: white; border: 1px solid #f1f5f9; border-radius: 20px; padding: 24px 15px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); min-width: 0; overflow: hidden;
}
.carac-card-new:hover { background: white; transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: #e2e8f0; }
.carac-card-new svg { color: var(--dark); margin-bottom: 2px; }
.carac-card-new .val { font-family: var(--font-main); font-size: 20px; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.carac-card-new .lbl { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }

.descripcion-section .desc-text { font-size: 15px; color: #475569; line-height: 1.8; margin-top: 12px; }

.detail-map-box { height: 350px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin-top: 15px; }

.price-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f1f5f9; }
.price-section .price-label { font-size: 12px; font-weight: 600; color: var(--gray); display: block; margin-bottom: 6px; }
.price-section .detail-price { font-size: 36px; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }

.agent-section { margin-bottom: 24px; }
.agent-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.agent-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.agent-avatar-new { width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--gray); }
.agent-details { display: flex; flex-direction: column; }
.agent-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.agent-email { font-size: 12px; color: var(--gray); }

.wa-link { display: flex; align-items: center; gap: 8px; color: #16a34a; font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.wa-link:hover { opacity: 0.8; }

.btn-cita-large { 
    width: 100%; padding: 16px; background: #16a34a; color: white; border: none; border-radius: 12px;
    font-family: var(--font-body); font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items:center; justify-content: center; gap:10px; transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(22,163,74,0.2); margin-bottom: 32px;
}
.btn-cita-large:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,163,74,0.3); }

.lead-form-sidebar h4 { font-family: var(--font-main); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sf-field { margin-bottom: 14px; }
.sf-field label { font-size: 12px; font-weight: 700; color: var(--dark); display: block; margin-bottom: 6px; }
.sf-field input { 
    width: 100%; padding: 12px 16px; border: 1.5px solid #eef2f6; border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none; transition: border 0.2s; background: #fcfdfe;
}
.sf-field input:focus { border-color: var(--dark); }
.btn-send-lead { 
    width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer; background: white; transition: all 0.2s;
}
.btn-send-lead:hover { background: var(--light-bg); border-color: var(--dark); }

@media (max-width: 968px) {
    .detail-layout { grid-template-columns: 1fr; }
    .carousel-container .carousel { height: 350px; }
}

/* ===== ALIADOS MARQUEE ===== */
.aliados-section {
  padding: 80px 0 40px;
  background: var(--white);
  overflow: hidden;
}
.bg-light { background: #f8fafc; }

.aliados-title {
  text-align: center;
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 50px;
  letter-spacing: 0.05em;
  color: var(--dark);
}
.aliados-marquee {
  width: 100%;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 100px;
  position: relative;
  padding: 20px 0;
}
.aliados-track {
  display: flex;
  flex-shrink: 0;
  gap: 100px;
  min-width: 100%;
  align-items: center;
  justify-content: space-around;
  animation: marquee-scroll 40s linear infinite;
}
.aliados-marquee:hover .aliados-track {
  animation-play-state: paused;
}
.aliado-item {
  width: 169px;
  height: 61px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
}
.aliado-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(20%);
}
.aliado-item img:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%);
}
.aliado-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.35s ease;
  line-height: 1;
}
.aliado-item:hover .aliado-name {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100px)); }
}

@media (max-width: 768px) {
  .aliados-section { padding: 50px 0 30px; }
  .aliados-title { font-size: 20px; margin-bottom: 30px; }
  .aliados-track { gap: 50px; animation-duration: 25s; }
  .aliado-item { width: 133px; height: 48px; }
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 50px)); }
  }
}

@media (max-width: 480px) {
  .aliados-track { gap: 36px; animation-duration: 20s; }
  .aliado-item { width: 110px; height: 40px; }
  .aliados-marquee { gap: 36px; padding: 12px 0; }
  /* En móvil, los nombres siempre visibles (no hay hover) */
  .aliado-name { opacity: 1; transform: translateY(0); font-size: 10px; }
  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 36px)); }
  }
}

/* Touch devices: show names always visible */
@media (hover: none) {
  .aliado-name { opacity: 1; transform: translateY(0); }
  .aliado-item img { filter: grayscale(0%); opacity: 1; }
}

/* BLOG FOOTER MINI */
.footer-blog { margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-blog h4 { margin-bottom: 20px !important; color:white !important; opacity: 1 !important;}
.blog-item-mini { display: flex; gap: 14px; text-decoration: none; margin-bottom: 16px; transition: all 0.3s; }
.blog-item-mini:hover { transform: translateX(8px); }
.blog-item-mini img { width: 70px; height: 50px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.3); flex-shrink: 0; }
.blog-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.blog-info h5 { font-size: 13px; font-weight: 600; color: #f1f5f9; margin: 0 0 4px 0; line-height: 1.3; font-family: var(--font-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-info span { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* NOSOTROS PREMIUM STYLES */
.nosotros-hero { z-index: 5; }
.nosotros-intro { border-radius: 40px 40px 0 0; position: relative; z-index:10; margin-top: -40px; }
.n-timeline div { transition: all 0.5s ease; }
.n-timeline div:hover h4 { color: var(--green) !important; }
.n-team-wrap { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.n-team-wrap:hover { transform: translateY(-5px); }
.n-team-wrap img { transition: transform 0.8s ease; }
.n-team-wrap:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .n-grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }
  .nosotros-hero { height: 50vh !important; }
  .n-team-wrap div { padding: 30px !important; }
}

/* ===== MOBILE ELEMENTS (HIDDEN BY DEFAULT) ===== */
.hamburger, .mobile-nav-overlay { display: none; }

/* ===== MOBILE OPTIMIZATION OVERRIDES ===== */
@media (max-width: 768px) {
  /* Nav & Hamburger */
  .nav-links, .btn-publish { display: none !important; }
  nav { height: 70px; padding: 0 20px; }
  .logo img { height: 38px; }
  .logo-text { font-size: 11px; }

  .hamburger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1100;
  }
  .hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

  /* Mobile Menu Overlay */
  .mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2000;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .mobile-nav-overlay.active { transform: translateX(0); }
  .mobile-nav-content { height: 100%; display: flex; flex-direction: column; padding: 30px 24px; }
  .mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
  .mobile-nav-header img { height: 40px; }
  .close-mobile { background: none; border: none; font-size: 28px; color: var(--dark); cursor: pointer; }
  
  .mobile-links { list-style: none; display: flex; flex-direction: column; gap: 24px; }
  .mobile-links a { font-family: var(--font-main); font-size: 24px; font-weight: 800; color: var(--dark); text-decoration: none; }
  .btn-pub-mobile { width: 100%; padding: 16px; background: var(--dark); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 16px; margin-top: 20px; }

  .mobile-nav-footer { margin-top: auto; padding-top: 30px; border-top: 1px solid #f1f5f9; }
  .mobile-nav-footer p { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
  .mobile-nav-footer a { color: var(--green); font-weight: 700; text-decoration: none; }

  /* Hero & Search */
  .hero { height: auto; padding: 120px 20px 60px; }
  .hero-title { font-size: 32px; text-align: center; }
  .hero-sub { font-size: 16px; text-align: center; }
  .search-box { width: 100%; margin: 8px 0; padding: 20px; border-radius: 20px; }
  .search-input-row { flex-direction: column; padding-bottom: 12px; }
  .search-filters { flex-direction: column; padding: 16px 0 0; gap: 12px; border: none; }
  .filter-item { width: 100%; border: 1.5px solid #f1f5f9; border-radius: 12px; padding: 12px; }
  .filter-sep { display: none; }
  .btn-buscar { width: 100%; margin: 0; height: 56px; border-radius: 12px; }

  /* Cards Grid */
  #cards-container { grid-template-columns: 1fr; gap: 24px; }
  .card-img { height: 220px; }

  /* Detail Page */
  .detail-header { padding: 80px 20px 20px; }
  .detail-title { font-size: 28px; }
  .carousel-container .carousel { height: 280px; border-radius: 16px; }
  .carac-grid-new { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carac-card-new { padding: 16px 10px; }
  .detail-price { font-size: 28px; }
  .detail-sidebar { margin-top: 32px; }

  /* Descripcion Detail */
  .descripcion-section .desc-text { font-size: 16px; line-height: 1.8; color: #334155; }
  .descripcion-section { padding: 0 4px; }

  /* Map Detail Header */
  .location-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .location-header .btn-secondary-sm { width: 100%; justify-content: center; }

  /* Footer Refinement */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-logo { justify-content: center; }
  .ft-enlaces-net { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Aliados & PSE */
  .aliados-marquee { gap: 40px; }
  .aliados-track { gap: 40px; }
  .pse-cards { grid-template-columns: 1fr; }
  .pse-header h2 { font-size: 24px; text-align: center; }

  /* Final Refinements from Screenshot */
  .carousel-thumbs { display: none !important; }
  .carac-grid-new { grid-template-columns: 1fr 1fr !important; display: grid !important; gap: 10px !important; }
  .carac-card-new { width: 100% !important; min-width: 0 !important; }
  .detail-title { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 8px !important; }
  .detail-location { margin-bottom: 20px !important; }
  #btn-cita-main { padding: 20px !important; font-size: 18px !important; }
  .location-box { margin: 0 -4px !important; border-radius: 16px !important; }

  /* M-02 & M-03 */
  .banner-slide img { max-height: 70vh !important; }
  .card-list .card-img { height: auto !important; aspect-ratio: 16/9; }

  /* M-05 Stepper fix */
  @media (max-width: 400px) {
    .pub-stepper { gap: 4px; }
    .step-icon { width: 36px; height: 36px; font-size: 12px; }
    .pub-step span { font-size: 10px; }
  }
}

/* ===== REVIEWS SECTION PREMIUM REDESIGN ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.review-card.premium-card {
    padding: 32px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.review-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    border-color: #e2e8f0; 
}

.review-quote-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.1;
    color: var(--primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    font-family: var(--font-main);
}

.review-avatar.yeral { background: linear-gradient(135deg, #6366f1, #4338ca); }
.review-avatar.jhon { background: linear-gradient(135deg, #10b981, #059669); }
.review-avatar.blanca { background: linear-gradient(135deg, #1e293b, #0f172a); }

.review-info-box {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin: 0;
}

.review-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-family: var(--font-sec);
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    font-style: italic;
}

@media (max-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* UTILITY CLASSES */
.pt-nav { padding-top: 68px; }
.container-sm { max-width: 840px; margin: 0 auto; padding: 60px 20px; }
.premium-card { background: white; border-radius: 24px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.w-full { width: 100%; }
.m-auto { margin: 0 auto; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.text-accent { color: #38bdf8; }
.text-xs { font-size: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }

/* FOOTER STYLES */
footer { background: #0f172a; color: #94a3b8; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-col { display: flex; flex-direction: column; }
.footer-title { color: white; font-family: var(--font-main); font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.footer-desc { font-size: 14px; line-height: 1.6; color: #94a3b8; }
.footer-badge { font-size: 12px; font-weight: 600; padding: 6px 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; display: inline-block; width: fit-content; }
.sede-subtitle { color: white; font-size: 14px; margin-bottom: 16px; border-bottom: 1px solid #1e293b; padding-bottom: 8px; display: inline-block; }
.footer-info-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }
.footer-info-item svg { flex-shrink: 0; color: #64748b; margin-top: 3px; }
.newsletter-wrap { display: flex; }
.newsletter-input { background: #1e293b; border: 1px solid #334155; padding: 12px 16px; border-radius: 8px 0 0 8px; color: white; font-size: 14px; outline: none; flex: 1; }
.newsletter-btn { background: #1e3a5f; border: 1px solid #334155; border-left: none; padding: 0 20px; border-radius: 0 8px 8px 0; color: white; cursor: pointer; transition: background 0.2s; }
.newsletter-btn:hover { background: #2563eb; }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 60px; border-top: 1px solid #1e293b; font-size: 13px; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col { align-items: center; }
    .footer-info-item { justify-content: center; text-align: left; }
    .sede-subtitle { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .container-sm { padding: 40px 16px; }
    .premium-card { padding: 24px; }
}

/* ===== NOSOTROS SECTION ===== */
.nosotros-hero { position:relative; height:60vh; min-height:450px; display:flex; align-items:center; overflow:hidden; }
.nosotros-hero .container { position:relative; z-index:2; text-align:center; }
.nosotros-hero .hero-tag { color:var(--green); font-weight:800; letter-spacing:0.2em; font-size:12px; text-transform:uppercase; margin-bottom:16px; display:block; }
.nosotros-hero h1 { font-family:var(--font-main); font-size:clamp(32px,5vw,56px); font-weight:800; color:white; line-height:1.1; margin-bottom:20px; letter-spacing:-0.03em; }
.nosotros-hero p { color:rgba(255,255,255,0.8); font-size:18px; max-width:700px; margin:0 auto; line-height:1.6; }

.nosotros-intro { padding:100px 0; background:white; }
.n-grid-2 { display:grid; grid-template-columns:1.2fr 1fr; gap:60px; align-items:center; }
.nosotros-intro h2 { font-family:var(--font-main); font-size:36px; font-weight:800; color:var(--dark); margin-bottom:24px; letter-spacing:-0.02em; }
.nosotros-intro .intro-text { color:var(--gray); line-height:1.8; font-size:16px; margin-bottom:32px; }

.n-timeline { border-left:2px solid #f1f5f9; padding-left:30px; position:relative; }
.n-timeline-item { margin-bottom:32px; position:relative; }
.n-timeline-dot { position:absolute; left:-39px; top:4px; width:16px; height:16px; border-radius:50%; border:4px solid white; box-shadow:0 0 0 4px #f1f5f9; }
.n-timeline-dot.green { background:var(--green); }
.n-timeline-dot.dark { background:var(--dark); }
.n-timeline-item h4 { font-size:18px; font-weight:800; color:var(--dark); margin-bottom:4px; }
.n-timeline-item p { color:var(--gray); font-size:14px; }

.n-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.n-stat-card { padding:32px; border-radius:24px; text-align:center; }
.n-stat-card.light { background:var(--light-bg); }
.n-stat-card.dark { background:var(--dark); color:white; }
.n-stat-card.white { background:white; border:1.5px solid #f1f5f9; grid-column:span 2; }
.n-stat-val { font-size:32px; font-weight:800; color:var(--dark); margin-bottom:4px; }
.n-stat-card.dark .n-stat-val { color:var(--green); }
.n-stat-lbl { font-size:12px; font-weight:700; color:var(--gray); text-transform:uppercase; letter-spacing:0.05em; }

.nosotros-mv { padding:100px 0; background:var(--dark); }
.mv-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.mv-card { background:rgba(255,255,255,0.05); padding:48px; border-radius:32px; border:1px solid rgba(255,255,255,0.1); backdrop-filter:blur(10px); }
.mv-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:white; margin-bottom:24px; font-size:24px; }
.mv-icon.mision { background:var(--green); }
.mv-icon.vision { background:#3b82f6; }
.mv-card h3 { font-family:var(--font-main); font-size:24px; font-weight:800; color:white; margin-bottom:16px; }
.mv-card p { color:rgba(255,255,255,0.7); line-height:1.7; font-size:15px; }

.nosotros-team { padding:100px 0; background:white; overflow:hidden; }
.team-header { text-align:center; margin-bottom:60px; }
.team-header h2 { font-family:var(--font-main); font-size:36px; font-weight:800; color:var(--dark); margin-bottom:16px; }
.team-header p { color:var(--gray); font-size:18px; max-width:600px; margin:0 auto; }
.n-team-wrap { position:relative; border-radius:40px; overflow:hidden; box-shadow:0 30px 60px rgba(0,0,0,0.12); }
.n-team-banner { width:100%; height:auto; display:block; }
.team-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(15,23,42,0.9) 0%, transparent 60%); display:flex; align-items:flex-end; padding:60px; }
.team-overlay-content { max-width:500px; }
.team-overlay h3 { color:white; font-size:28px; font-weight:800; margin-bottom:16px; }
.team-overlay p { color:rgba(255,255,255,0.8); line-height:1.6; margin-bottom:24px; }

@media (max-width: 768px) {
  .nosotros-hero { height: auto; min-height: 400px; padding: 120px 0 60px; }
  .nosotros-hero h1 { font-size: 32px; }
  .nosotros-intro { padding: 60px 0; }
  .n-grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-intro h2 { font-size: 28px; }
  .nosotros-intro .intro-text { font-size: 15px; }
  .n-stats-grid { gap: 12px; }
  .n-stat-card { padding: 20px; }
  .nosotros-mv { padding: 60px 0; }
  .mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .mv-card { padding: 32px; }
  .nosotros-team { padding: 60px 0; }
  .team-header { margin-bottom: 40px; }
  .team-header h2 { font-size: 28px; }
  .n-team-wrap { border-radius: 20px; }
  .team-overlay { padding: 24px; }
  .team-overlay h3 { font-size: 22px; }
  .team-overlay p { font-size: 14px; }
}

/* ===== FINAL SANITIZATION UTILITIES ===== */
.cursor-pointer { cursor: pointer; }
.pse-logo-sm { width: 36px; height: auto; display: block; }
.pse-lock-icon { margin-right: 6px; }

/* Review Section Refinements */
.review-header { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 24px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; }
.review-avatar.yeral { background: var(--primary); }
.review-avatar.jhon { background: var(--green); }
.review-avatar.blanca { background: var(--dark); }

.review-info-box { display: flex; flex-direction: column; }
.review-name { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 4px; height: auto !important; }
.review-stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.review-text { line-height: 1.6; font-size: 15px; margin: 0; color: var(--gray); }

/* Publish Success State */
.publish-success-card { padding: 60px 40px; text-align: center; }
.success-icon-container { width: 80px; height: 80px; background: #dcfce7; border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; color: var(--green); }
.publish-success-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.publish-success-text { color: var(--gray); max-width: 400px; margin: 0 auto 32px; line-height: 1.6; }
.btn-back-home { width: auto; padding: 14px 36px; margin: 0 auto; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Misc */
.pt-68 { padding-top: 68px; }
.pb-60 { padding-bottom: 60px; }
.mt-28 { margin-top: 28px; }
.mb-20 { margin-bottom: 20px; }
.m-auto-i { margin: 0 auto !important; }
.bg-f8 { background: #f8fafc; }
.min-h-100 { min-height: 100vh; }
.grid-col-2 { grid-column: span 2; }
.flex-col-gap8 { display: flex; flex-direction: column; gap: 8px; }
/* Final Sanity Utils */
.logo-nav { height: 48px; width: auto; display: block; }
.hide { display: none !important; }
.bg-green { background: var(--green) !important; }
.bg-green:hover { background: #14532d !important; }
.btn-google-reviews { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; width: auto; text-decoration: none; margin-top: 32px; }
/* Animation for the heart in favorites */
.heart { color: #ef4444; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; }
.fav-link:hover .heart { transform: scale(1.4); }

/* Logo & Nav Final Refinements */
.logo-nav { transition: transform 0.3s ease; }
.logo:hover .logo-nav { transform: scale(1.05); }

/* ===== MOBILE NAVIGATION STYLES (FINAL) ===== */
@media (max-width: 768px) {
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 60px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .mobile-nav-overlay.active {
    display: flex;
  }

  .mobile-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-links a {
    font-size: 1.4rem;
    color: var(--dark);
    text-decoration: none;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    font-weight: 700;
  }
}

@media (min-width: 769px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}

.hamburger {
  min-width: 44px;
  min-height: 44px;
  z-index: 10000 !important;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
}

.divider-txt {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.select-wrapper { position: relative; width: 100%; }
.select-wrapper select { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; appearance: none; cursor: pointer; }

.btn-whatsapp-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  width: 100%;
  margin-top: 10px;
}

.btn-whatsapp-submit:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-submit:active {
  transform: translateY(0);
}

.btn-whatsapp-submit svg {
  flex-shrink: 0;
}

.relative { position: relative !important; }
.text-sm { font-size: 14px !important; }

/* =========================================
   Fase 10: Limpieza, UX y Toasts Premium
   ========================================= */

/* Notificaciones Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #ffffff;
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    opacity: 0;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 280px;
    max-width: 400px;
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }

.toast.fade-out {
    animation: fadeOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOutRight {
    to { transform: translateX(100%); opacity: 0; }
}

/* Microanimaciones Táctiles Globales */
button, a.btn, .btn, .chip, .dropdown-option, .negocio-card, .tipo-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
button:active:not(:disabled), 
.btn:active:not(:disabled),
.btn-submit:active:not(:disabled) {
    transform: scale(0.96) !important;
}

/* Smooth Focus Rings para Formularios */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

/* Scrollbars Premium Mínimo (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
    border: 2px solid #ffffff;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   AUTOCOMPLETE & INTELLIGENT SEARCH
   ========================================= */
.search-input-row { position: relative; }
.autocomplete-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  animation: slideFadeIn 0.2s ease;
}
.autocomplete-results.active { display: block; }

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f8fafc;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #f8fafc; }

.ac-icon {
  width: 32px;
  height: 32px;
  background: var(--light-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}
.ac-text { flex: 1; }
.ac-title { display: block; font-size: 14px; font-weight: 600; color: var(--dark); }
.ac-sub { display: block; font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.ac-highlight { font-weight: 800; color: #000; }

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

/* Chips logic update */
.filter-chip {
  cursor: default;
}
.filter-chip .x:hover {
  color: #ff9999;
  cursor: pointer;
}

/* =========================================
   SISTEMA DE FILTROS Y DROPDOWNS (REPARACIÓN)
   ========================================= */
.filters-bar {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
  position: sticky;
  top: 68px;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0;
}

.tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.tab:hover {
  color: #1e293b;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ANCLA DE POSICIONAMIENTO */
.dropdown-wrapper {
  position: relative;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.filter-select:hover {
  border-color: var(--primary);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-select svg {
  color: #94a3b8;
  transition: color 0.2s;
}

.filter-select:hover svg {
  color: var(--primary);
}

/* MENÚ DESPLEGABLE REPARADO */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  padding: 8px;
  display: none;
  animation: dropdownAnim 0.2s ease-out;
}

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

.dropdown-menu.active {
  display: block;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #475569;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.dropdown-item.selected {
  background: #f0fdf4;
  color: var(--primary);
  font-weight: 600;
}

.dropdown-item.selected::after {
  content: "✓";
  font-size: 12px;
}

/* ETIQUETAS DE FILTROS ACTIVOS */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1e293b;
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-chip .x {
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  transition: opacity 0.2s;
}

.filter-chip .x:hover {
  opacity: 1;
}

.btn-limpiar {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
}

.btn-limpiar:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn-mas-filtros {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mas-filtros:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.badge-count {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.badge-count.hide {
  display: none;
}

/* =========================================
   SIDEBAR DE FILTROS AVANZADOS (FILTERS PANEL)
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.filters-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
}

.filters-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}

.panel-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.panel-section-title svg {
    color: var(--primary);
}

/* TOGGLE BUTTONS (Baños, Alcobas) */
.toggle-btns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.toggle-btn {
    padding: 10px 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* RANGE INPUTS (Área) */
.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.range-inputs input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.range-inputs input:focus {
    border-color: var(--primary);
}

.range-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.range-tag {
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.range-tag:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* SPECIAL CHIPS (Características) */
.esp-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.esp-chip {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.esp-chip:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.esp-chip.active {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #16a34a;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .filters-panel {
        width: 100%;
        right: -100%;
    }
}

* { box-sizing: border-box; }

#page-detalle {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

#page-detalle .mobile-padding {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    #page-detalle * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .detalle-layout-grid {
        padding: 0 !important;
        width: 100% !important;
    }
}

/* =========================================
   NUEVO REDISEÑO: DETALLE DE PROPIEDAD
   ========================================= */

.detalle-header-container {
    padding: 32px 0 24px;
    background: white;
}

.mobile-padding {
    padding: 0 24px;
}

@media (max-width: 768px) {
    .detalle-header-container {
        padding: 24px 0 16px;
    }
    .mobile-padding {
        padding: 0 16px;
    }
}

.detail-badges-new {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.badge-new-premium, .badge-new-type {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new-premium { background: var(--primary); color: white; }
.badge-new-premium.arriendo { background: #EAB308; } /* Dorado para arriendo */
.badge-new-type { background: #f1f5f9; color: #475569; }

.detalle-titulo-new {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .detalle-titulo-new {
        font-size: 24px;
    }
}

.detalle-meta-new {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Layout Principal */
.detalle-contenido-full {
    background: #f8fafc;
    padding-bottom: 80px;
}

/* Layout Base (Solo ancho) */
.detalle-layout-grid {
    width: 100%;
}

@media (max-width: 1023px) {
    .detalle-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 16px;
    }
}

/* Columna Izquierda */
.detalle-main-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Galería */
.galeria-wrapper-new {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.galeria-principal-new {
    height: 380px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f0f0;
}

@media (max-width: 1280px) {
    .galeria-principal-new {
        height: 360px;
    }
}

@media (max-width: 1024px) {
    .galeria-principal-new {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .galeria-principal-new {
        height: 240px;
        border-radius: 10px;
    }
    
    #main-carousel {
        width: 100% !important;
        overflow: hidden !important;
    }
}

.carousel-counter-new {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 5;
}

.nav-btn-new {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.nav-btn-new:hover { background: white; scale: 1.1; }
.nav-btn-new.prev { left: 20px; }
.nav-btn-new.next { right: 20px; }

@media (max-width: 768px) {
    .nav-btn-new { width: 36px; height: 36px; font-size: 14px; }
}

.carousel-track {
    display: flex !important;
    height: 100% !important;
    transition: transform 0.3s ease !important;
    will-change: transform !important;
}

.carousel-track > * {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.galeria-miniaturas-new {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.galeria-miniaturas-new::-webkit-scrollbar {
    display: none;
}

.galeria-miniaturas-new img,
.thumb-item {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.galeria-miniatura {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.galeria-miniatura.active { border-color: var(--primary); }
.galeria-miniatura img { width: 100%; height: 100%; object-fit: cover; }

/* Características */
#det-carac {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    #det-carac {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    #det-carac {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

.carac-card-new {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 14px 8px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    min-height: 80px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.carac-card-new svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #22C55E !important;
    margin-bottom: 6px !important;
}

.carac-card-new .val {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    display: block !important;
}

.carac-card-new .lbl {
    font-size: 0.65rem !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

/* Layout Detalle Premium (Isolation System) */

/* 1. ESCRITORIO (PC) - 2 Columnas */
@media (min-width: 1024px) {
    .detalle-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 32px !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        align-items: start !important;
    }

    .detalle-col-left, .detalle-main-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        min-width: 0 !important;
    }
}

/* 2. MÓVIL Y TABLET - 1 Columna (Stack) */
@media (max-width: 1023px) {
    .detalle-layout-grid {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .detalle-col-left, .detalle-main-column {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
}

/* Secciones */
.detalle-seccion {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.seccion-label {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.descripcion-texto-new {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    white-space: pre-line;
}

/* Mapa */
.mapa-wrapper-new {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mapa-container-new {
    width: 100%;
    height: 350px;
    background: #f1f5f9;
}

.mapa-footer-new {
    background: #f8fafc;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.btn-externo-mapa {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    /* Descripción */
    #det-desc,
    .det-descripcion-section,
    [id*="desc"],
    [class*="descripcion"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        word-break: break-word !important;
        white-space: pre-line !important; 
        padding-right: 0 !important;
    }
    
    /* Mapa */
    #map-detalle,
    .mapa-wrapper,
    [id*="map"],
    [class*="mapa"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }
    
    /* Sección ubicación */
    .det-ubicacion-section,
    [class*="ubicacion"] {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
    
    /* Reset Mobile Layout */
    .detalle-layout-grid {
        display: block !important;
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Columna izquierda */
    .detalle-col-left,
    .detalle-main-column,
    .detalle-main,
    [class*="col-left"],
    [class*="main-col"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }
}

/* Propiedades Similares */
#sec-similares {
    margin-top: 40px;
}

/* Panel Contacto (Escritorio) */
@media (min-width: 1024px) {
    .detalle-layout-grid {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }
    #sec-similares {
        grid-column: 1 / -1; /* Spans full width on desktop grid */
        margin-top: 60px;
    }
    .panel-contacto-new {
        position: sticky;
        top: 100px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 380px;
        height: fit-content;
    }
}

@media (max-width: 1023px) {
    #page-detalle .panel-contacto-new {
        position: static !important;
        order: 10 !important; /* Final en móvil */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #page-detalle .panel-contacto-new > * {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Botones al 100% */
    #page-detalle .panel-contacto-new button,
    #page-detalle .panel-contacto-new a,
    #page-detalle #btn-agendar-new,
    #page-detalle #btn-wa-new,
    #page-detalle .btn-whatsapp-new,
    #page-detalle .btn-agendar-new,
    #page-detalle .btn-enviar-lead-new {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        display: flex !important;
    }
}

/* Panel contenedor principal */
.panel-contacto-new {
    background: white;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: inherit;
}

/* Sección precio */
.panel-precio-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo */
.panel-precio-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.panel-precio-section::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34,197,94,0.08);
}

.panel-precio-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.panel-precio-valor {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.panel-disponible-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22C55E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-disponible-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Sección asesor */
.panel-asesor-section {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.panel-asesor-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
}

.panel-asesor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-asesor-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.panel-asesor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.panel-asesor-inicial {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.panel-asesor-datos {
    flex: 1;
    min-width: 0;
}

.panel-asesor-nombre {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-asesor-email {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botones de acción */

/* Botón Contactar — ancho completo, oscuro */
.panel-btn-contactar {
    width: 100%;
    padding: 13px 20px;
    background: #1e293b;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
    text-decoration: none !important;
    box-shadow: none;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    outline: none;
}

.panel-btn-contactar:hover {
    background: #0f172a;
    color: white !important;
    transform: translateY(-1px);
}

/* Fila Llamar + WhatsApp */
.panel-btns-secundarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* Botón Llamar */
.panel-btn-llamar {
    padding: 13px 16px;
    background: white;
    color: #1e293b !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none !important;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    outline: none;
}

.panel-btn-llamar:hover {
    border-color: #1e293b;
    background: #f8fafc;
    color: #1e293b !important;
    transform: translateY(-1px);
}

.panel-btn-llamar:visited { color: #1e293b !important; }

.panel-btn-whatsapp {
    width: 100%;
    padding: 14px 20px;
    background: #22C55E;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(34,197,94,0.25);
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    outline: none;
}

.panel-btn-whatsapp:hover {
    background: #16A34A;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}

.panel-btn-whatsapp:visited { color: white !important; }

.panel-btn-agendar {
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.panel-btn-agendar:hover {
    border-color: #1e293b;
    background: #f8fafc;
    transform: translateY(-1px);
}

/* Sección formulario */
.panel-form-section {
    padding: 24px 28px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.panel-form-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.panel-form-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1e293b;
    background: white;
    margin-bottom: 10px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.panel-form-field:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.08);
}

.panel-form-field::placeholder {
    color: #c0c0c0;
    font-size: 0.85rem;
}

textarea.panel-form-field {
    resize: none;
    height: 80px;
}

.panel-btn-enviar {
    width: 100%;
    padding: 13px 20px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 4px;
}

.panel-btn-enviar:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

/* Nota privacidad */
.panel-privacidad {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Similares */
.similares-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .similares-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
        display: grid !important;
        gap: 15px !important;
    }
    .similares-grid-new .propiedad-card {
        width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .similares-grid-new {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   ¿POR QUÉ ELEGIRNOS?
   ============================================= */
.por-que-elegirnos {
    padding: 80px 0;
    background: #f8fafc;
}

.elegirnos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 900px) {
    .elegirnos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .elegirnos-grid {
        grid-template-columns: 1fr;
    }
}

.elegirnos-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f0f4f8;
}

.elegirnos-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.1);
}

.elegirnos-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary, #1e3a5f);
    transition: background 0.25s ease;
}

.elegirnos-card:hover .elegirnos-icon {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.elegirnos-card h3 {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.elegirnos-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* =============================================
   NUESTRAS SEDES — Diseño mejorado
   ============================================= */
.nuestras-sedes {
    padding: 80px 0;
    background: #f8fafc;
}

.nuestras-sedes .section-header {
    text-align: center;
    margin-bottom: 0;
}

.nuestras-sedes .section-eyebrow {
    display: inline-block;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--primary, #1e3a5f);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nuestras-sedes .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0;
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .sedes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sede-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 1px solid #e8ecf0;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sede-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.06),
        0 16px 48px rgba(0,0,0,0.1);
}

.sede-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
}

.sede-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sede-card:hover .sede-imagen img {
    transform: scale(1.05);
}

/* Degradado oscuro en la parte baja de la foto */
.sede-imagen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.45) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.sede-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary, #1e3a5f);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.sede-info {
    padding: 22px 24px 26px;
}

.sede-nombre {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Línea decorativa que se extiende junto al nombre */
.sede-nombre::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--primary, #1e3a5f),
        transparent
    );
    border-radius: 2px;
    opacity: 0.15;
}

.sede-direccion,
.sede-telefono,
.sede-horario {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.55;
}

.sede-acciones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sede-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sede-btn-maps {
    background: white;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
}

.sede-btn-maps:hover {
    background: #f8fafc;
    border-color: var(--primary, #1e3a5f);
    color: var(--primary, #1e3a5f);
}

.sede-btn-wa {
    background: #22C55E;
    color: white;
    border: 1.5px solid #22C55E;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.sede-btn-wa:hover {
    background: #16A34A;
    border-color: #16A34A;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}
.sede-btn-wa:hover {
    background: #16A34A;
    border-color: #16A34A;
}

/* =========================================
   MVM STYLE CONTACT PANEL
   ========================================= */
.mvm-style-panel {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mvm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.mvm-logo {
  width: 48px;
  height: 48px;
  background: #1e3a5f;
  border-radius: 6px;
  padding: 6px;
  flex-shrink: 0;
}

.mvm-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 2px;
}

.mvm-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.mvm-instructions {
  padding: 20px 24px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.mvm-price-wrapper {
  padding: 16px 24px 0;
  text-align: left;
}

.mvm-price {
  font-size: 28px;
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1.1;
}

.mvm-price-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.mvm-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mvm-input, .mvm-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #1e293b;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.mvm-input:focus, .mvm-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.mvm-textarea {
  resize: vertical;
  min-height: 80px;
  color: #64748b;
}

.mvm-phone-group {
  display: flex;
  gap: 8px;
}

.mvm-country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.mvm-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  cursor: pointer;
}

.mvm-checkbox-wrap input {
  margin-top: 3px;
  accent-color: #1e3a5f;
}

.mvm-check-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.mvm-check-text a {
  color: #3b82f6;
  text-decoration: none;
}

.mvm-check-text a:hover {
  text-decoration: underline;
}

.mvm-btn-contactar {
  width: 100%;
  background: #1e293b;
  color: white !important;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  outline: none;
}

.mvm-btn-contactar:hover {
  background: #0f172a;
  color: white !important;
  transform: translateY(-1px);
}

.mvm-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.mvm-btn-llamar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: white;
  color: #1e293b !important;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  outline: none;
}

.mvm-btn-llamar:hover {
  border-color: #1e293b;
  background: #f8fafc;
  color: #1e293b !important;
  transform: translateY(-1px);
}

.mvm-btn-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: #22C55E;
  color: white !important;
  border: 1.5px solid #22C55E;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  transition: all 0.2s;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(34,197,94,0.25);
  -webkit-appearance: none;
  outline: none;
}

.mvm-btn-whatsapp:hover {
  background: #16A34A;
  border-color: #16A34A;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
}

.mvm-btn-contactar:visited,
.mvm-btn-llamar:visited,
.mvm-btn-whatsapp:visited {
  color: inherit !important;
}

/* Mobile */
@media (max-width: 1023px) {
  .mvm-style-panel {
    position: relative;
    top: 0;
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .mvm-btn-llamar,
  .mvm-btn-whatsapp {
    font-size: 0.82rem;
    padding: 11px 10px;
  }
}