:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border-color: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
    --gold: 36 44% 62%; /* Muted Gold */
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Header */
.main-header {
    color: hsl(var(--primary-foreground));
    border-bottom: 1px solid transparent; /* Start with a transparent border */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: fixed; /* Use fixed positioning */
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}


.main-header.scrolled {
    background-color: hsla(var(--primary), 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}

.logo {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.5px;
}

.renwork-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 0.25rem;
}

.renwork-brand img {
    display: block;
    width: 200px;
    max-width: none;
    height: auto;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.35));
}

.renwork-brand:focus-visible {
    outline: 2px solid hsl(var(--gold));
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .renwork-brand img { width: 120px; }
}

.nav-link {
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: hsl(var(--gold));
    border-bottom-color: hsl(var(--gold));
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('../statics/fotos/2.png') no-repeat center center/cover;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: hsl(var(--primary-foreground));
}

.discover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid hsl(var(--gold));
    background-color: transparent;
    color: hsl(var(--primary-foreground));
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.discover-btn:hover {
    background-color: hsl(var(--gold));
    color: hsl(var(--primary));
}

/* Content Sections */
section {
    padding: 6rem 0;
}

section h2 {
    font-family: 'Playfair Display', serif;
}

section .text-gray-500 {
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.15em;
    font-weight: 600;
}

#destino .info-card {
    background-color: #fdfcf9;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

#destino .info-card:hover {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transform: translateY(-3px);
}

#destino .info-card i {
    color: hsl(var(--gold));
    font-size: 2rem; /* 32px */
    margin-bottom: 0.75rem;
}

#destino .info-card .font-bold {
    color: hsl(var(--primary));
    font-size: 1.5rem; /* 24px */
}

#destino .info-card .text-gray-500 {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Accordion */
.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-content {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
}

.accordion-item {
    border-color: hsl(var(--border));
}

.accordion-header:hover {
    color: hsl(var(--gold));
}

#destino {
    background-color: #fdfcf9; /* Pearl White */
}

#destino .text-gray-500 {
    color: hsl(var(--gold));
}

#destino h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
}

#destino h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: hsl(var(--gold));
}

#cana-bay {
    position: relative;
    background: url('../statics/fotos/6.png') no-repeat center center/cover;
    color: hsl(var(--primary-foreground));
}

#cana-bay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: hsla(var(--primary), 0.8);
    z-index: 1;
}

#cana-bay .container {
    position: relative;
    z-index: 2;
}

.info-card-dark {
    background-color: hsla(222, 25%, 12%, 0.5);
    border: 1px solid hsla(var(--primary-foreground), 0.15);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.info-card-dark h3 {
    font-family: 'Playfair Display', serif;
}

.info-card-dark ul li {
    color: hsl(var(--muted));
}

#beach-club {
    background-color: #fdfcf9; /* Pearl White */
}

#beach-club h2 {
    color: hsl(var(--primary));
}

#beach-club .text-gold {
    color: hsl(var(--gold));
}

.amenity-card {
    background-color: #fdfcf9;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transform: translateY(-3px);
}

.amenity-card h4 {
    color: hsl(var(--primary));
    font-family: 'Playfair Display', serif;
}

#proyecto {
    background-color: #fdfcf9; /* Pearl White */
}

#proyecto h2 {
    color: hsl(var(--primary));
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: transparent;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}

.feature-list i {
    color: hsl(var(--gold));
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    margin-right: 1rem;
}

.feature-list span {
    color: hsl(var(--primary));
    font-weight: 500;
}

.incluye-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    background-color: transparent;
}

.incluye-card h4 {
    font-family: 'Playfair Display', serif;
    color: hsl(var(--primary));
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, hsla(var(--primary), 0.9), transparent);
    color: hsl(var(--primary-foreground));
    padding: 1.5rem;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

#inversion h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: hsl(var(--gold));
}

.investment-card {
    background-color: hsla(var(--primary-foreground), 0.05);
    border: 1px solid hsla(var(--primary-foreground), 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.investment-card h3 {
    font-family: 'Playfair Display', serif;
}

.payment-plan li {
    display: flex;
    align-items: flex-start;
}

.payment-plan li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid hsl(var(--gold));
    color: hsl(var(--gold));
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.payment-plan li p {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

.management-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.confotur-card {
    display: flex;
    align-items: center;
    padding: 2rem;
}

#contacto {
    position: relative;
}

#contacto .title-decorator {
    width: 80px;
    height: 2px;
    background-color: hsl(var(--gold));
    margin: 0 auto;
}

.footer-text {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--primary-foreground), 0.1);
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.1em;
}

/* Carousel */
.carousel-container {
    max-height: 600px; /* Or any height you prefer */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1, .text-7xl {
        font-size: 3rem; /* 48px */
    }

    h2, .text-6xl {
        font-size: 2.25rem; /* 36px */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Stack grids on mobile */
    #cana-bay .grid,
    #proyecto .grid,
    #inversion .grid,
    #beach-club .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    #destino .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    #destino .info-card {
        padding: 1rem;
    }

    #destino .info-card i {
        font-size: 1.5rem; /* 24px */
        margin-bottom: 0.25rem;
    }

    #destino .info-card .font-bold {
        font-size: 1.125rem; /* 18px */
    }

    #destino .info-card p:last-child {
        font-size: 0.65rem; /* 10.4px */
        letter-spacing: -0.05em;
    }

    .grid[class*="md:grid-cols-"] > div {
        margin-bottom: 2rem;
    }

    .grid[class*="md:grid-cols-"] > div:last-child {
        margin-bottom: 0;
    }

    #proyecto .grid > div:first-child {
        order: 2;
    }

    #proyecto .grid > div:last-child {
        order: 1;
    }

    /* Adjust spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-center.mb-16 {
        margin-bottom: 3rem;
    }

    .quote-container.mt-20 {
        margin-top: 3rem;
    }

    .info-card, .info-card-dark, .investment-card, .amenity-card {
        padding: 1.5rem;
    }

    .footer-text {
        margin-top: 3rem;
    }

    /* Mobile Menu Styles */
    #mobile-menu {
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background-color: hsl(var(--primary));
        padding: 1rem;
        border-bottom: 1px solid hsla(var(--primary-foreground), 0.1);
    }

    #mobile-menu ul {
        flex-direction: column;
        align-items: center;
    }

    #mobile-menu ul li {
        margin: 0.75rem 0;
    }

    .main-header.scrolled #mobile-menu {
        background-color: hsl(var(--primary));
    }
}

.carousel-prev,
.carousel-next {
    z-index: 10;
}

/* General */
main {
    position: relative; /* Ensure main content flows correctly after the hero section */
}

.bg-dark-blue {
    background-color: hsl(var(--primary));
}

/* Quote Section */
.quote-container {
    border-color: hsla(var(--border), 0.7);
}

.quote-container blockquote {
    font-family: 'Playfair Display', serif;
}

.text-gold {
    color: hsl(var(--gold));
}

