:root {
    --bg-dark: #000000;
    --primary: #cca44b;
    --primary-hover: #b08d41;
    --text-light: #ffffff;
    --text-muted: #999999;
    --panel-bg: #111111;
    --border: #333333;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
    text-align: center;
}

.btn-gold {
    background-color: var(--primary);
    color: #fff;
}

.btn-gold:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    font-size: 14px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Header */
.top-bar {
    background-color: #111;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    padding: 10px 0;
}

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

.top-bar .auth-links a {
    color: var(--text-muted);
}
.top-bar .auth-links a:hover {
    color: var(--primary);
}

.main-header {
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo img {
    max-height: 80px;
}

.nav-menu a {
    color: var(--text-light);
    margin-left: 30px;
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 15px;
}

.nav-menu a.active, .nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    text-align: center;
}

.about-header h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-header p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background: var(--panel-bg);
    padding: 30px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-item .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Properties Section */
.properties-section {
    background-color: var(--panel-bg);
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 50px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: var(--primary);
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 5;
}

.badge-venta { background-color: var(--primary); }
.badge-renta { background-color: #2ed573; }
.badge-remodelacion { background: linear-gradient(135deg, #cca44b, #947128); }
.badge-ba { background: linear-gradient(90deg, #d97706 0%, #059669 100%); font-weight: 700; }
.badge-antes { background-color: #d97706; }
.badge-despues { background-color: #059669; }

.property-content {
    padding: 25px;
}

.property-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.property-title a {
    color: var(--text-light);
}

.property-title a:hover {
    color: var(--primary);
}

.property-location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.property-price {
    font-size: 24px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #ccc;
}

.property-footer {
    background: #0a0a0a;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: #888;
}

/* ==========================================
   Before & After Visualizer & Slider Styles
   ========================================== */
.ba-section {
    margin-bottom: 50px;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 25px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border);
    background: #000;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
}

.ba-before-layer, .ba-after-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ba-before-layer img, .ba-after-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-before-layer {
    z-index: 1;
}

.ba-after-layer {
    z-index: 2;
    overflow: hidden;
    width: 50%;
    border-right: 3px solid var(--primary);
}

/* Internal image inside clip layer must retain container width */
.ba-after-layer img {
    width: 1000px;
    max-width: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary);
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(204, 164, 75, 0.8);
}

.ba-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: bold;
    font-size: 16px;
    cursor: ew-resize;
    border: 2px solid #ffffff;
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 8;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.ba-label-antes {
    left: 20px;
    background: rgba(217, 119, 6, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ba-label-despues {
    right: 20px;
    background: rgba(5, 150, 105, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ba-thumbs-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--panel-bg);
}

.ba-thumb-item {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: 0.3s ease;
    position: relative;
}

.ba-thumb-item.active, .ba-thumb-item:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.03);
}

.ba-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Filter Tabs */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 24px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.gallery-card img, .gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-card .card-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag.tag-despues { background: var(--primary); color: #000; }
.card-tag.tag-antes { background: #1a1a1a; color: #fff; border: 1px solid #333; }
.card-tag.tag-video { background: #000; color: var(--primary); border: 1px solid var(--primary); }

/* Universal High-End Form Styling */
.contact-card, .contact-form-box {
    background: #111111 !important;
    border: 1px solid #2a2a2a !important;
    padding: 35px 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6) !important;
}

.contact-form .form-group, .contact-form-box .form-group {
    margin-bottom: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.contact-form label, .contact-form-box label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--primary) !important;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form-box input,
.contact-form-box textarea,
.contact-form-box select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    background: #000000 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
    color: #666666 !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-form-box input:focus,
.contact-form-box textarea:focus,
.contact-form-box select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(204, 164, 75, 0.3) !important;
    background: #080808 !important;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
    color: #000;
}

.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

.lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 15px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #000;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 38px; }
    .about-header h2, .section-title { font-size: 30px; }
    .ba-slider { height: 350px; }
    .ba-label { font-size: 11px; padding: 6px 12px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .gallery-card { height: 150px; }
}


