:root {
    --primary-dark: #000080;
    --primary-navy: #0A192F;
    --accent-wine: #6B1D2F;
    --accent-wine-hover: #521422;
    --accent-green: #25D366;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #000080;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(10, 25, 47, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 99px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Keyframes for WhatsApp Green Pulse Animation */
@keyframes whatsappGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-dark);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #000066;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wine {
    background: var(--accent-wine);
    color: #FFFFFF;
}

.btn-wine:hover {
    background: var(--accent-wine-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

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

.btn-whatsapp {
    background-color: var(--accent-green);
    color: #FFFFFF;
    animation: whatsappGlowPulse 2.5s infinite ease-in-out;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
}

.wa-official-logo {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Header & Navigation (Matching Screenshot) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.header-logo-img {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
    border-radius: 4px;
    background: #ffffff;
    padding: 3px 6px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.btn-admin-nav {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid var(--primary-dark);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    background: #FFFFFF;
    transition: var(--transition);
}

.btn-admin-nav:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
}

/* Clean Hero Section (Exact Screenshot Style) */
.hero-clean {
    padding: 130px 0 70px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    text-align: center;
}

.hero-clean-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 640px;
}

.d-icon-card {
    width: 84px;
    height: 84px;
    background: var(--accent-wine);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(107, 29, 47, 0.25);
    margin-bottom: 32px;
}

.d-letter {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.hero-title-clean {
    font-size: 3.1rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle-clean {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 36px;
    max-width: 480px;
}

.btn-explore-pill {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent-wine);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(107, 29, 47, 0.3);
    transition: var(--transition);
}

.btn-explore-pill:hover {
    background: var(--accent-wine-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(107, 29, 47, 0.4);
}

/* Search Box Section */
.search-section {
    padding: 20px 0 60px;
}

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 16px;
    align-items: flex-end;
    max-width: 1060px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.search-field input,
.search-field select {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: #0F172A;
    background: var(--bg-light);
    outline: none;
}

/* Catalog & Sections */
.section {
    padding: 70px 0;
}

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

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Filter Bar */
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--primary-dark);
    color: #FFFFFF;
    border-color: var(--primary-dark);
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.badge-venta { background: var(--accent-wine); }
.badge-renta { background: var(--primary-dark); }

.badge-status {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-fav {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #FFFFFF;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-muted);
}

.btn-fav.active,
.btn-fav:hover {
    color: #EF4444;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.card-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-features {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.about-stats-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--accent-wine);
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.about-stats-badge .num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.about-stats-badge span:not(.num) {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-features {
    list-style: none;
    margin: 24px 0 32px;
}

.about-features li {
    margin-bottom: 12px;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: #FFFFFF;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: #94A3B8;
    font-size: 0.88rem;
}

/* Floating WhatsApp Pill Button */
.floating-whatsapp-pill-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--accent-green);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: whatsappGlowPulse 2.5s infinite ease-in-out;
    transition: var(--transition);
}

.whatsapp-pill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Property Details Modal & Hierarchical Gallery Displays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

/* HIERARCHICAL GALLERY IN MODAL */
.gallery-section-block {
    margin-bottom: 24px;
}

.gallery-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid-main-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.grid-main-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    transition: var(--transition);
}

.grid-main-gallery img:hover {
    transform: scale(1.02);
}

.grid-secondary-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-secondary-gallery img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: #0f172a;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}

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

.grid-specific-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    background: #0f172a;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}

/* Lightbox Fullscreen Amplification Modal Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

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

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255,255,255,0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    text-align: center;
}

.modal-cta-buttons {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.modal-cta-buttons .btn { flex: 1; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-clean { padding: 110px 0 50px; }
    .hero-title-clean { font-size: 2.4rem; }
    .hero-subtitle-clean { font-size: 1.05rem; }
    .d-icon-card { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 24px; }
    .d-letter { font-size: 2.5rem; }
    .search-box { grid-template-columns: 1fr; }
    .grid-main-gallery { grid-template-columns: 1fr; height: 220px; }
    .grid-secondary-gallery { grid-template-columns: repeat(2, 1fr); }
    .grid-specific-gallery { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
