:root {
    --primary: #0F2440;      /* Azul oscuro (principal logo) */
    --primary-dark: #09182E; /* Azul más oscuro para hovers/fondos */
    --accent: #BE8936;       /* Dorado medio (texto cursivo) */
    --accent-light: #DBA34D; /* Dorado claro (brillo edificios) */
    --accent-dark: #916024;  /* Dorado oscuro (sombras olas) */
    --bg-color: #F2F2F2;     /* Gris claro (fondo general) */
    --surface: #FFFFFF;      /* Blanco (cuerpos de casas/superficies) */
    --text-main: #0F2440;    /* Texto general en Azul Oscuro para elegancia */
    --text-muted: #718096;
    --wa-color: #25D366;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent) !important;
}

.section-padding {
    padding: 80px 5%;
}

/* Gold Divider */
.gold-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), var(--accent-dark));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 5%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(190, 137, 54, 0.2);
}

.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--accent-light);
}

.navbar.scrolled .btn-primary {
    background-color: var(--accent) !important;
    color: white !important;
}

.navbar.scrolled .btn-primary:hover {
    background-color: var(--accent-light) !important;
}

.navbar.scrolled .logo img {
    height: 50px !important;
    width: 50px !important;
    aspect-ratio: 1 / 1 !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .logo img {
    transition: height 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(15, 36, 64, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 137, 54, 0.3);
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(190, 137, 54, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(190, 137, 54, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 8px 20px rgba(190, 137, 54, 0.25);
    transform: translateY(-2px);
}

/* ========================
   HERO SECTION — Premium
======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, #1a3a5c 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(190, 137, 54, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(190, 137, 54, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(15, 36, 64, 0.5) 0%, transparent 60%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
}

/* Decorative gold accent line */
.hero .hero-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), var(--accent), var(--accent-light), var(--accent-dark), transparent);
}

.hero-content {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 800px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(190, 137, 54, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ========================
   PROPERTIES SECTION
======================== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

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

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(15, 36, 64, 0.12);
}

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

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .card-image {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(190, 137, 54, 0.3);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.location {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.features i {
    color: var(--accent);
    margin-right: 0.3rem;
}

/* ========================
   FOOTER — Premium Navy
======================== */
footer {
    padding: 0;
    text-align: center;
    background: linear-gradient(160deg, var(--primary-dark), var(--primary));
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), var(--accent), var(--accent-light), var(--accent-dark), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(190, 137, 54, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 3rem;
    border-radius: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.footer-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.whatsapp-button {
    display: inline-block;
    background-color: var(--wa-color);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    letter-spacing: 0.3px;
}

.whatsapp-button:hover {
    background-color: #1ebe59;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
}

.copyright {
    margin-top: 3rem !important;
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.35) !important;
    letter-spacing: 0.5px;
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background-color: var(--wa-color);
    color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.float-wa:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Animations */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.property-card.fade-in:nth-child(1) { transition-delay: 0ms; }
.property-card.fade-in:nth-child(2) { transition-delay: 150ms; }
.property-card.fade-in:nth-child(3) { transition-delay: 300ms; }

/* ========================
   FINCA DETAIL PAGES
======================== */
.finca-header {
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    background: linear-gradient(to top, rgba(15,36,64,0.95) 0%, rgba(15,36,64,0.3) 50%, rgba(0,0,0,0) 100%), var(--bg-color);
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.finca-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), var(--accent), var(--accent-light), var(--accent-dark), transparent);
}

.finca-header h1 {
    color: white;
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.finca-header .location {
    color: var(--accent-light);
    font-size: 1.1rem;
}

.media-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.media-section h2 {
    position: relative;
    display: inline-block;
}

.media-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    border-radius: 2px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Gallery Image Styles */
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(15, 36, 64, 0.15);
}

.media-placeholder {
    background: #e2e8f0;
    border-radius: var(--border-radius);
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.media-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.media-placeholder:hover {
    background: #cbd5e1;
    transform: scale(1.02);
}

.finca-details {
    max-width: 800px;
    margin: 0 auto 80px auto;
    padding: 0 5%;
}

.detail-item {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.detail-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.detail-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

/* ========================
   LOCATION GRID
======================== */
.location-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.location-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.location-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.location-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.location-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    .location-video {
        max-width: 320px;
        margin: 0 auto;
        aspect-ratio: 9/16;
    }
}


/* ========================
   LIGHTBOX MODAL
======================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 24, 46, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
    animation: fadeInLightbox 0.3s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(190, 137, 54, 0.3);
    border-color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(190, 137, 54, 0.3);
    border-color: var(--accent);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

@keyframes fadeInLightbox {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
        padding: 0 1rem;
    }
    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .property-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .footer-content {
        padding: 3rem 1.5rem;
    }
    .footer-content h2 {
        font-size: 1.8rem;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 0.8rem; }
    .lightbox-next { right: 0.8rem; }
    .finca-header {
        min-height: 350px;
    }
    .detail-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .stats-bar {
        margin: 2rem 1rem 0;
    }
    .btn-hero {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
