/* Variables y Reset */
:root {
    /* Paleta Premium - The Gem */
    --primary: #0A1128;
    /* Deep Navy Blue */
    --primary-op-90: rgba(10, 17, 40, 0.9);
    --secondary: #FFFFFF;

    --bg-color: #FFFFFF;
    --bg-alt: #F4F7F6;
    /* Gris suave azulado */
    --bg-card: #FFFFFF;

    --text-main: #1A1A1A;
    --text-muted: #555555;
    --text-light: #999999;
    --text-on-dark: #FFFFFF;

    --accent-brand: #C5A059;
    /* Elegant Gold */
    --accent-brand-light: #E5D5B8;
    --accent-brand-dark: #8E6F3E;
    --accent: #E1E8ED;

    --font-main: 'Inter', sans-serif;

    /* Sombras sutiles y elegantes */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Bordes redondeados agresivos (Estilo Framer) */
    --radius-sm: 0.75rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --radius-pill: 9999px;

    --container-width: 1240px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-brand);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-brand);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast for accessibility */
::selection {
    background-color: var(--accent-brand);
    color: white;
}

/* FAQ Section Styles */
.faq-item {
    background: white;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-brand);
}

.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-brand);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--accent);
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Utilidades Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-dark {
    background-color: var(--primary);
    color: var(--text-on-dark);
}

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

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

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Amenities Grid - 3 columns on desktop, responsive */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Components: Buttons (Pill Shapes) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 1.15rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(10, 17, 40, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 17, 40, 0.25);
    background-color: #0d1635;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
}

/* Badge / Pills */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: white;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

/* Header (Floating) */
.header {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 30px;
    opacity: 0.8;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    padding-top: 140px;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-text .badge {
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.75rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-image-container {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

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

/* Cards (Universal) */
.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--accent);
}

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

/* Cap Cana Section */
.location-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

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

/* Enhanced styling for the aerial/project image */
.location-img[src*="exterior-aerial"] {
    filter: contrast(1.1) brightness(1.05) saturate(1.05);
}

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

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    color: white;
}

.location-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-overlay p {
    line-height: 1.5;
    max-width: 90%;
}

.location-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

/* Icon Styles */
.icon-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-alt);
    border-radius: 50%;
    color: var(--accent-brand);
    transition: all 0.3s ease;
}

.icon-circle i {
    width: 20px;
    height: 20px;
}

li:hover .icon-circle {
    background-color: var(--accent-brand);
    color: white;
    transform: scale(1.05);
}

/* Concept Section List Items */
#concept ul li {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

#concept ul li:hover {
    background-color: rgba(197, 160, 89, 0.05);
}

#concept ul li span:not(.icon-circle) {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.amenity-card {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.amenity-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-alt);
    border-radius: var(--radius-md);
    color: var(--accent-brand);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.amenity-icon i {
    width: 32px;
    height: 32px;
}

.amenity-card:hover .amenity-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.amenity-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* Pricing / Layout Cards */
.pricing-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #EAEAEA;
    background: #F9F9F9;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background-color: white;
    border-top: 1px solid var(--accent);
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .section {
        padding: 4rem 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .header {
        top: 10px;
        padding: 0 0.5rem;
    }

    .nav-container {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-text .cta-group {
        justify-content: center !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-image-container {
        height: 280px;
    }

    /* Fixed mobile CTA */
    .mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        display: flex;
        gap: 0.75rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        z-index: 1001;
        border-top: 1px solid var(--accent);
    }

    .mobile-cta-bar .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    body {
        padding-bottom: 70px;
    }
}

@media (min-width: 901px) {
    .mobile-cta-bar {
        display: none;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* Architecture Section */
.arch-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.arch-card img {
    border-radius: 0;
    /* Remove double radius if nested */
    display: block;
    width: 100%;
}
/* Unit Card Styles */
.unit-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.unit-card:hover {
    border-color: var(--accent-brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.unit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1.25rem;
}

.unit-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.unit-features span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 901px) {
    .whatsapp-float {
        bottom: 30px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}
