/* =========================================
   CYGNUS DETAIL FINAL REFINED (V2)
   ========================================= */

:root {
    --c-dark: #0f172a;
    --c-primary: #2563eb; 
    --c-gray-bg: #f8fafc;
    --c-border: #e2e8f0;
    --c-text: #334155;
    --font: 'Satoshi', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

body {
    background: var(--c-gray-bg);
    color: var(--c-text);
    font-family: var(--font);
    margin: 0;
    overflow-x: hidden;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* =========================================
   1. GRID & LAYOUT
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr; 
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.col-left { min-width: 0; }
.col-right { min-width: 0; }

/* =========================================
   2. HEADER (TÍTULO Y DIRECCIÓN)
   ========================================= */
.prop-header { margin-bottom: 20px; }

.prop-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--c-dark);
    line-height: 1.1;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

/* Dirección Inline */
.address-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 1.05rem;
    flex-wrap: wrap;
}

.map-icon { color: var(--c-primary); font-size: 1.2rem; }

.addr-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.addr-tag.exact { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.addr-tag.approx { background-color: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.addr-text { font-weight: 500; color: #334155; }

/* =========================================
   3. GALERÍA E IMAGEN HERO
   ========================================= */
.gallery-container { margin-bottom: 30px; }

.main-stage {
    position: relative;
    width: 100%;
    height: 450px;
    background: #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow);
}
.main-stage img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }

/* Overlays en Imagen Principal */
.img-overlay-left {
    position: absolute; top: 20px; left: 20px;
    display: flex; gap: 8px; z-index: 10;
}
.badge {
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.op-badge.sale { background: var(--c-primary); }
.op-badge.rent { background: #f97316; }
.cat-badge { background: white; color: var(--c-dark); }

.img-overlay-right {
    position: absolute; top: 20px; right: 20px; z-index: 10;
}
.ref-pill {
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.95);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: white; border: none; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); opacity: 0; transition: 0.2s;
    color: var(--c-dark); font-size: 1.1rem; z-index: 5;
}
.main-stage:hover .nav-btn { opacity: 1; }
.prev { left: 20px; } .next { right: 20px; }

.photo-badge {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(15, 23, 42, 0.75); color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 0.8rem;
    backdrop-filter: blur(4px); font-weight: 600; z-index: 5;
}

/* --- SCROLL HORIZONTAL ESTILIZADO --- */
.thumb-scroll-wrapper {
    margin-top: 15px;
    position: relative;
    padding: 0 40px;
}

.thumb-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.thumb-track::-webkit-scrollbar { display: none; }

.thumb {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #e2e8f0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.thumb:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.thumb.active { border-color: var(--c-primary); transform: translateY(0); box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }

.thumb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: white; border: 1px solid #cbd5e1;
    color: #334155; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.thumb-nav:hover { background: #2563eb; color: white; border-color: #2563eb; }
.thumb-nav.left { left: 0; }
.thumb-nav.right { right: 0; }

/* =========================================
   FICHA TÉCNICA (SPECS) REFINED
   ========================================= */
.specs-section {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.specs-group {
    margin-bottom: 10px;
}

.specs-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.specs-title i { color: var(--c-primary); font-size: 0.9rem; }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    align-items: stretch;
}

.spec-card {
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s;
}
.spec-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.spec-card.wide {
    grid-column: span 2; /* Para textos largos como Estado */
}

.spec-icon {
    font-size: 1.2rem;
    color: var(--c-primary);
    margin-bottom: 6px;
    opacity: 0.9;
}

.spec-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 1rem;
    color: var(--c-dark);
    font-weight: 800;
    line-height: 1.2;
}

.h-line-soft { height: 1px; background: var(--c-border); margin: 20px 0; opacity: 0.6; }


/* Resto de Secciones */
.h-line { height: 1px; background: var(--c-border); margin: 35px 0; }

.info-section h3 { font-size: 1.4rem; color: var(--c-dark); margin-bottom: 20px; font-weight: 800; }
.desc-text { line-height: 1.75; font-size: 1.05rem; color: #475569; }

.features-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.feat-tag {
    background: white; border: 1px solid var(--c-border);
    padding: 8px 16px; border-radius: 50px; font-size: 0.9rem;
    display: flex; gap: 8px; align-items: center; color: #475569;
}
.feat-tag i { color: #10b981; }

.map-frame {
    height: 350px; background: #e2e8f0; border-radius: 16px;
    overflow: hidden; position: relative; border: 1px solid var(--c-border);
}
#google-map { width: 100%; height: 100%; }
.map-warning {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background: white; padding: 8px 20px; border-radius: 30px; font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-weight: 600; color: #64748b;
}

/* =========================================
   4. TARJETA DE PRECIOS & AGENTE
   ========================================= */
.sticky-widget {
    background: white;
    padding: 30px;
    padding-top: 30px !important;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--c-border);
    position: sticky; top: 20px;
}

.uf-corner-badge {
    position: absolute; top: 12px; right: 12px;
    background: #ffffff; color: #94a3b8;
    font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
    border: 1px solid #f1f5f9; z-index: 2;
    letter-spacing: 0.5px;
}

.price-header { text-align: center; margin-bottom: 25px; }
.lbl-op { font-size: 0.8rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 1px; }

.price-main {
    font-size: 2.8rem; font-weight: 900; 
    color: var(--c-primary); line-height: 1; 
    letter-spacing: -1.5px; margin: 10px 0 10px 0;
}
.price-main .period { font-size: 1.2rem; color: #64748b; font-weight: 500; }

.price-pill-container { display: flex; justify-content: center; }
.price-pill-small {
    background: #f1f5f9; color: #475569;
    padding: 4px 12px; border-radius: 6px;
    font-size: 0.9rem; font-weight: 600; display: inline-block;
}

.extra-costs {
    background: #f8fafc; padding: 18px; border-radius: 12px;
    border: 1px solid var(--c-border); margin-bottom: 25px;
}
.cost-item { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 8px; color: #64748b; }
.cost-item strong { color: var(--c-dark); }
.cost-item:last-child { margin-bottom: 0; }

/* AGENTE */
.agent-row { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

.agent-img-wrap {
    width: 60px; height: 60px;
    border-radius: 50%; overflow: hidden;
    border: 1px solid var(--c-border);
    background: white; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.agent-img-wrap img {
    width: 100%; height: 100%; object-fit: contain; padding: 4px;
}

.agent-txt { display: flex; flex-direction: column; justify-content: center; }
.tiny-lbl { font-size: 0.65rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 0.5px; }
.agent-row h4 { margin: 2px 0 0 0; color: var(--c-dark); font-size: 1.1rem; font-weight: 700; }
.agent-sub { font-size: 0.8rem; color: #64748b; display: block; margin-top: 2px; }

/* BOTONES */
.action-btns { display: flex; flex-direction: column; gap: 10px; }
.btn {
    border: none; padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer; text-decoration: none;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: 0.2s; font-size: 1rem;
}

.btn-whatsapp { background: #25D366; color: white; box-shadow: 0 4px 10px rgba(37,211,102,0.2); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37,211,102,0.3); }

.btn-call { background: var(--c-dark); color: white; box-shadow: 0 4px 10px rgba(15,23,42,0.2); }
.btn-call:hover { background: #1e293b; transform: translateY(-2px); }

.btn-email { background: white; border: 2px solid var(--c-border); color: var(--c-text); }
.btn-email:hover { border-color: var(--c-dark); color: var(--c-dark); background: #f8fafc; }

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; gap: 30px; }
    .prop-title { font-size: 2rem; }
    .sticky-widget { position: static; margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .price-main { font-size: 2.2rem; }
    .address-inline { flex-direction: column; align-items: flex-start; gap: 5px; }
    .spec-card.wide { grid-column: span 1; } /* En movil todo es 1 col */
}

/* --- Lupa Zoom --- */
.main-stage { overflow: hidden; cursor: zoom-in; position: relative; }
.main-stage img { transition: transform 0.2s ease-out, opacity 0.2s; transform-origin: center center; will-change: transform, transform-origin; }
.main-stage.zoomed img { transform: scale(1.8); cursor: zoom-out; }
.main-stage.zoomed .img-overlay-left, .main-stage.zoomed .img-overlay-right, .main-stage.zoomed .photo-badge, .main-stage.zoomed .nav-btn {
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
/* =========================================
   ESTILOS NUEVOS: CARACTERÍSTICAS TIPO PASTILLA
   ========================================= */

/* 1. Anulamos Sticky en móvil o si lo deseas estático */
.sticky-widget {
    position: static !important;
    top: auto;
}

/* 2. Contenedor de la Tarjeta */
.features-widget {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--c-border);
    margin-top: 25px; /* Separación con la tarjeta de arriba */
}

.fw-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--c-border);
}

.fw-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-dark);
    margin: 0;
}

.fw-group {
    margin-bottom: 25px;
}
.fw-group:last-child { margin-bottom: 0; }

.fw-cat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fw-cat-title i {
    color: var(--c-primary);
    opacity: 0.7;
}

/* 3. GRILLA Y DISEÑO DE PASTILLAS (PILLS) */
.fw-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas exactas */
    gap: 10px; /* Espacio entre pastillas */
    padding: 0;
    margin: 0;
    list-style: none;
}

.fw-item {
    display: flex;
    align-items: center; /* Centrado vertical */
    gap: 10px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.3;
    
    /* Estilo "Pastilla" / Caja */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fw-item:hover {
    background-color: white;
    border-color: #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transform: translateY(-1px);
    color: var(--c-dark);
}

.fw-item i {
    color: #10b981; /* Verde más solido para el check */
    font-size: 1rem;
    flex-shrink: 0;
}

.fw-item span {
    font-weight: 600;
}

/* Ajustes Responsive */
@media (max-width: 900px) {
    .features-widget {
        margin-top: 30px;
        order: 2;
    }
}

/* Si la pantalla es muy pequeña, volver a 1 columna para que no se rompa el texto */
@media (max-width: 400px) {
    .fw-list {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   SCROLLBAR MINIMALISTA (GLOBAL)
   ========================================= */

/* 1. Estándar moderno (Firefox) */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* 2. WebKit (Chrome, Edge, Safari) */

/* El ancho de la barra */
::-webkit-scrollbar {
    width: 8px;  /* Vertical */
    height: 8px; /* Horizontal (para tu galería de miniaturas) */
}

/* El carril (fondo) */
::-webkit-scrollbar-track {
    background: transparent; /* Totalmente limpio */
    margin: 4px 0; /* Un poco de aire arriba y abajo */
}

/* La manija (lo que mueves) */
::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* Gris suave (Slate-300) */
    border-radius: 20px;       /* Píldora perfecta */
    border: 2px solid transparent; /* Espacio transparente alrededor */
    background-clip: content-box;  /* Truco para que parezca "flotando" */
}

/* Efecto Hover (cuando pones el mouse encima) */
::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* Un poco más oscuro (Slate-400) */
}

/* Estado Activo (cuando haces click y arrastras) */
::-webkit-scrollbar-thumb:active {
    background-color: #64748b; /* Slate-500 */
}