/*
Theme Name: Depropiedades
Theme URI: https://depropiedades.com.co
Author: Depropiedades
Description: Criterio inmobiliario global - Bogotá Norte
Version: 7.0.0
Text Domain: depropiedades
*/

:root {
    --dp-navy: #0B1A2E;
    --dp-accent: #2EA3F2;
    --dp-green: #25D366;
    --dp-white: #FFFFFF;
    --dp-gray-50: #F9FAFB;
    --dp-gray-100: #F3F4F6;
    --dp-gray-200: #E5E7EB;
    --dp-gray-300: #D1D5DB;
    --dp-gray-500: #6B7280;
    --dp-gray-700: #374151;
    --dp-gray-900: #111827;
    --dp-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --dp-radius: 12px;
    --dp-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --dp-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --dp-max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--dp-font); color: var(--dp-gray-900); background: var(--dp-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.dp-container { max-width: var(--dp-max-width); margin: 0 auto; padding: 0 24px; }
.dp-section { padding: 64px 0; }

/* NAV */
.dp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--dp-navy);
    display: flex; align-items: center; gap: 24px;
    padding: 0 32px; height: 64px;
    transition: box-shadow 0.3s;
}
.dp-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.dp-nav-logo { font-size: 20px; font-weight: 700; color: var(--dp-white); letter-spacing: -0.5px; display: flex; align-items: center; }
.dp-nav-logo span { color: var(--dp-accent); }
.dp-nav-logo .custom-logo-link, .dp-nav-logo .custom-logo-link img { display: block; }
.custom-logo-link img { max-height: 36px; width: auto; }
.dp-nav-links { list-style: none; display: flex; gap: 24px; margin-left: auto; }
.dp-nav-links a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.dp-nav-links a:hover { color: var(--dp-white); }
.dp-nav-zone { color: rgba(255,255,255,0.4); font-size: 12px; white-space: nowrap; }
.dp-nav-cta {
    background: var(--dp-accent); color: var(--dp-white);
    padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: opacity 0.2s; white-space: nowrap;
}
.dp-nav-cta:hover { opacity: 0.9; }

/* HERO */
.dp-hero {
    background: var(--dp-navy); color: var(--dp-white);
    text-align: center; padding: 140px 24px 80px;
}
.dp-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; max-width: 700px; margin: 0 auto 16px; line-height: 1.1; }
.dp-hero-sub { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 520px; margin: 0 auto 32px; }
.dp-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.dp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: all 0.2s; border: none;
}
.dp-btn-accent { background: var(--dp-accent); color: white; }
.dp-btn-accent:hover { opacity: 0.9; }
.dp-btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.dp-btn-outline:hover { border-color: white; }
.dp-btn-whatsapp { background: var(--dp-green); color: white; }
.dp-btn-whatsapp:hover { opacity: 0.9; }
.dp-btn-pdf {
    background: var(--dp-gray-100); color: var(--dp-gray-700);
    padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500;
    cursor: pointer; border: 1px solid var(--dp-gray-200); transition: all 0.2s;
}
.dp-btn-pdf:hover { background: var(--dp-gray-200); }

/* PROPERTY GRID */
.dp-properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dp-property-card {
    background: var(--dp-white); border-radius: var(--dp-radius);
    overflow: hidden; box-shadow: var(--dp-shadow);
    transition: transform 0.2s, box-shadow 0.2s; display: block; position: relative;
}
.dp-property-card:hover { transform: translateY(-4px); box-shadow: var(--dp-shadow-lg); }
.dp-property-img { width: 100%; height: 220px; object-fit: cover; background: var(--dp-gray-100); }
.dp-property-body { padding: 20px; }
.dp-property-zone { font-size: 12px; font-weight: 600; color: var(--dp-accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.dp-property-price { font-size: 22px; font-weight: 700; color: var(--dp-gray-900); }
.dp-property-specs { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.dp-property-spec { font-size: 13px; color: var(--dp-gray-500); }
.dp-property-spec strong { color: var(--dp-gray-700); }
.dp-property-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dp-badge-venta { background: var(--dp-accent); color: white; }
.dp-badge-arriendo { background: #F59E0B; color: white; }
.dp-property-title { font-size: 15px; font-weight: 600; color: var(--dp-gray-900); margin: 6px 0 4px; line-height: 1.3; }
.dp-property-btn {
    display: block; text-align: center; margin-top: 14px;
    padding: 10px; border-radius: 8px;
    background: var(--dp-navy); color: white;
    font-size: 13px; font-weight: 600;
    transition: opacity 0.2s;
}
.dp-property-btn:hover { opacity: 0.85; }

/* FICHA */
.dp-ficha { padding-top: 64px; padding-bottom: 100px; }
.dp-ficha-gallery { max-width: 1000px; margin: 0 auto; }
.dp-ficha-gallery img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 0 0 var(--dp-radius) var(--dp-radius); }
.dp-ficha-content { max-width: 720px; margin: 40px auto 0; padding: 0 24px; }
.dp-ficha-type { font-size: 13px; font-weight: 600; color: var(--dp-accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.dp-ficha-price { font-size: 36px; font-weight: 800; color: var(--dp-gray-900); letter-spacing: -1px; }
.dp-ficha-admin { font-size: 14px; color: var(--dp-gray-500); margin-top: 8px; }
.dp-ficha-specs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px; margin-bottom: 32px; padding-bottom: 32px;
    border-bottom: 1px solid var(--dp-gray-200);
}
.dp-ficha-spec { text-align: center; padding: 20px 12px; background: var(--dp-accent); border-radius: 10px; }
.dp-ficha-spec-icon { margin-bottom: 6px; opacity: 0.9; }
.dp-ficha-spec-icon svg { width: 24px; height: 24px; }
.dp-ficha-spec-value { font-size: 26px; font-weight: 800; color: white; }
.dp-ficha-spec-label { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.dp-ficha-details { margin-bottom: 32px; }
.dp-ficha-detail { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--dp-gray-100); }
.dp-ficha-detail-label { font-size: 14px; color: var(--dp-gray-500); }
.dp-ficha-detail-value { font-size: 14px; font-weight: 600; }
.dp-ficha-desc { margin-bottom: 40px; }
.dp-ficha-desc p { color: var(--dp-gray-700); font-size: 15px; line-height: 1.8; }
.dp-ficha-map { border-radius: var(--dp-radius); overflow: hidden; height: 300px; }
.dp-ficha-map iframe { width: 100%; height: 100%; border: 0; }
.dp-ficha-map-label { text-align: center; font-size: 12px; color: var(--dp-gray-500); margin-top: 8px; }

/* GALLERY GRID */
.dp-gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 6px; margin-bottom: 40px; border-radius: var(--dp-radius); overflow: hidden;
}
.dp-gallery-grid img { width: 100%; height: 180px; object-fit: cover; cursor: pointer; transition: opacity 0.2s; }
.dp-gallery-grid img:hover { opacity: 0.85; }
.dp-gallery-grid img:first-child { grid-column: 1 / 3; grid-row: 1 / 3; height: 100%; }

/* LIGHTBOX */
.dp-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.dp-lightbox.active { display: flex; }
.dp-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.dp-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: white; font-size: 32px; cursor: pointer;
    background: none; border: none; font-weight: 300;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.dp-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 36px; cursor: pointer;
    background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.dp-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.dp-lightbox-prev { left: 16px; }
.dp-lightbox-next { right: 16px; }
.dp-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 14px; }

/* AMENIDADES */
.dp-amenidades {
    background: linear-gradient(135deg, var(--dp-navy) 0%, #1a2d4a 100%);
    border-radius: var(--dp-radius); padding: 32px;
    margin-bottom: 40px; color: white;
}
.dp-amenidades h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.dp-amenidades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.dp-amenidad-item {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 14px 12px; text-align: center; font-size: 13px;
    font-weight: 500; transition: background 0.2s;
}
.dp-amenidad-item:hover { background: rgba(255,255,255,0.15); }

/* AGENT */
.dp-agent {
    display: flex; align-items: center; gap: 20px;
    padding: 24px; background: var(--dp-gray-50);
    border-radius: var(--dp-radius); margin-top: 16px;
}
.dp-agent-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dp-agent-name { font-size: 16px; font-weight: 700; margin: 0; }
.dp-agent-role { font-size: 13px; color: var(--dp-gray-500); margin: 2px 0 8px; }
.dp-agent-links { display: flex; gap: 12px; flex-wrap: wrap; }
.dp-agent-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--dp-accent); }
.dp-agent-link:hover { text-decoration: underline; }

/* CTA BAR */
.dp-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--dp-white); border-top: 1px solid var(--dp-gray-200);
    padding: 12px 24px; display: flex; gap: 12px; justify-content: center;
}
.dp-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; border-radius: 10px; font-size: 15px;
    font-weight: 600; transition: opacity 0.2s;
}
.dp-cta-whatsapp { background: var(--dp-green); color: white; }
.dp-cta-calendar { background: var(--dp-navy); color: white; }

/* FOOTER */
.dp-footer {
    background: var(--dp-navy); color: rgba(255,255,255,0.6);
    text-align: center; padding: 48px 24px; font-size: 14px;
}
.dp-footer a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.dp-footer a:hover { color: white; }
.dp-footer-logo { font-size: 24px; font-weight: 700; color: white; margin-bottom: 12px; }
.dp-footer-logo span { color: var(--dp-accent); }
.dp-footer-logo img { max-height: 40px; width: auto; margin: 0 auto; }

/* ARCHIVE */
.dp-archive-header { background: var(--dp-navy); color: white; text-align: center; padding: 120px 24px 48px; }
.dp-archive-header h1 { font-size: 32px; font-weight: 800; }

/* BLOG / NOTICIAS */
.dp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dp-blog-card {
    background: var(--dp-white); border-radius: var(--dp-radius);
    overflow: hidden; box-shadow: var(--dp-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dp-blog-card:hover { transform: translateY(-4px); box-shadow: var(--dp-shadow-lg); }
.dp-blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.dp-blog-card-body { padding: 20px; }
.dp-blog-card-meta { font-size: 12px; color: var(--dp-gray-500); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.dp-blog-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.dp-blog-card-title a { color: var(--dp-gray-900); transition: color 0.2s; }
.dp-blog-card-title a:hover { color: var(--dp-accent); }
.dp-blog-card-excerpt { font-size: 14px; color: var(--dp-gray-500); line-height: 1.5; margin-bottom: 12px; }
.dp-blog-card-link { font-size: 13px; font-weight: 600; color: var(--dp-accent); }

/* ARTICLE */
.dp-article { padding-top: 64px; }
.dp-article-header { position: relative; max-width: 900px; margin: 0 auto; }
.dp-article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: 0 0 var(--dp-radius) var(--dp-radius); }
.dp-article-header-content { max-width: 720px; margin: -60px auto 0; padding: 32px; background: white; border-radius: var(--dp-radius); box-shadow: var(--dp-shadow-lg); position: relative; z-index: 2; }
.dp-article-meta { font-size: 13px; color: var(--dp-gray-500); margin-bottom: 12px; display: flex; gap: 6px; align-items: center; }
.dp-article-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; color: var(--dp-gray-900); }
.dp-article-body {
    max-width: 720px; margin: 40px auto; padding: 0 24px;
    font-size: 16px; line-height: 1.9; color: var(--dp-gray-700);
}
.dp-article-body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; color: var(--dp-gray-900); }
.dp-article-body h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: var(--dp-gray-900); }
.dp-article-body p { margin-bottom: 20px; }
.dp-article-body img { border-radius: var(--dp-radius); margin: 24px 0; }
.dp-article-body blockquote {
    border-left: 4px solid var(--dp-accent); padding: 16px 24px;
    margin: 24px 0; background: var(--dp-gray-50); border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--dp-gray-700);
}
.dp-article-body ul, .dp-article-body ol { margin: 16px 0; padding-left: 24px; }
.dp-article-body li { margin-bottom: 8px; }
.dp-article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--dp-gray-200); }
.dp-article-tag {
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    background: var(--dp-gray-100); color: var(--dp-gray-700);
    font-weight: 500; transition: background 0.2s;
}
.dp-article-tag:hover { background: var(--dp-gray-200); }
.dp-article-share {
    max-width: 720px; margin: 32px auto; padding: 0 24px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.dp-share-btn {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
    background: var(--dp-gray-100); color: var(--dp-gray-700); transition: background 0.2s;
}
.dp-share-btn:hover { background: var(--dp-gray-200); }
.dp-share-wa { background: var(--dp-green); color: white; }
.dp-share-wa:hover { opacity: 0.9; background: var(--dp-green); }
.dp-article-related {
    max-width: 900px; margin: 48px auto; padding: 48px 24px 0;
    border-top: 1px solid var(--dp-gray-200);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dp-nav { padding: 0 16px; gap: 12px; }
    .dp-nav-links, .dp-nav-zone { display: none; }
    .dp-properties-grid { grid-template-columns: 1fr; }
    .dp-hero { padding: 120px 20px 60px; }
    .dp-hero h1 { font-size: 28px; }
    .dp-ficha-price { font-size: 28px; }
    .dp-ficha-specs { grid-template-columns: repeat(3, 1fr); }
    .dp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-gallery-grid img { height: 140px; }
    .dp-gallery-grid img:first-child { grid-column: 1 / -1; grid-row: auto; height: 220px; }
    .dp-amenidades-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-agent { flex-direction: column; text-align: center; }
    .dp-agent-links { justify-content: center; }
    .dp-blog-grid { grid-template-columns: 1fr; }
    .dp-article-hero-img { height: 250px; }
    .dp-article-header-content { margin: -40px 16px 0; padding: 24px; }
    .dp-article-body { padding: 0 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .dp-properties-grid { grid-template-columns: repeat(2, 1fr); }
    .dp-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* PRINT */
@media print {
    @page { margin: 0; }
    body { margin: 0; padding: 0; }
    .dp-nav, .dp-footer, .dp-cta-bar, .dp-btn-pdf, .dp-lightbox,
    [style*="position:fixed"] { display: none !important; }
    .dp-ficha { padding-top: 0; padding-bottom: 0; }
    .dp-print-header {
        display: flex !important;
        align-items: center; justify-content: space-between;
        background: #0B1A2E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
        color: white; padding: 20px 32px;
    }
    .dp-print-header img { max-height: 32px; width: auto; }
    .dp-print-header span { font-size: 12px; color: rgba(255,255,255,0.6); }
    .dp-ficha-gallery img { max-height: 350px; object-fit: cover; border-radius: 0; }
    .dp-ficha-content { padding: 0 32px; margin-top: 16px; }
    .dp-ficha-specs { gap: 8px; }
    .dp-ficha-spec { background: #2EA3F2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; color: white !important; padding: 12px 8px; }
    .dp-ficha-spec-value { color: white !important; font-size: 20px; }
    .dp-ficha-spec-label { color: rgba(255,255,255,0.8) !important; }
    .dp-amenidades { background: #0B1A2E !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dp-amenidad-item { background: rgba(255,255,255,0.1) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; color: white !important; }
    .dp-agent { break-inside: avoid; }
    .dp-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .dp-gallery-grid img { height: 120px; cursor: default; }
    .dp-ficha-map { height: 200px; }
    .dp-print-footer {
        display: block !important;
        text-align: center; padding: 16px;
        font-size: 11px; color: #999;
        border-top: 1px solid #eee; margin-top: 24px;
    }
}
