/* =======================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================= */
:root {
    /* Color Palette */
    --color-primary: #012169;
    /* CB Lion Team Dark Blue */
    --color-primary-light: #003B87;
    --color-secondary: #005A9C;
    /* CB Lighter Blue */
    --color-secondary-hover: #00427A;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-surface: #ffffff;
    --color-surface-dark: #1e293b;
    --color-text-main: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #f1f5f9;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* =======================================
   RESET & GLOBAL STYLES
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Highlight / Gradient texts */
.text-gradient {
    background: linear-gradient(135deg, var(--color-secondary), #82C3FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--color-secondary);
    font-weight: 700;
}

/* =======================================
   TYPOGRAPHY
   ======================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
}

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

.btn-whatsapp-large {
    background-color: #25D366;
    color: white;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-whatsapp-large:hover {
    background-color: #1ebe57;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* =======================================
   NAVBAR
   ======================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--color-secondary);
}

.nav-logo-icon {
    height: 40px;
    width: auto;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: white;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-whatsapp-nav {
    background-color: #25D366;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp-nav:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/DSC03767.JPG');
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
    z-index: -2;
    transform: scale(1.05);
    /* Slight zoom for subtle animation potential */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.glass-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* =======================================
   PROPERTIES SECTION
   ======================================= */
.properties-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.property-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.property-content {
    padding: 1.5rem;
}

.property-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.property-location {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.property-features i {
    color: var(--color-secondary);
}

.view-all-container {
    text-align: center;
    margin-top: 4rem;
}

/* =======================================
   ABOUT SECTION
   ======================================= */
.about-section {
    padding: 4rem 5%;
    background-color: white;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding-right: 2rem;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.glass-card i {
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.decor-card-1 {
    top: 24%;
    left: -20px;
    animation: float 5s ease-in-out infinite;
}

.decor-card-2 {
    bottom: 24%;
    right: -20px;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.section-badge {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-badge::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.about-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.about-content h3 {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.social-links {
    margin: 2rem 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =======================================
   GALLERY SECTION
   ======================================= */
.gallery-section {
    padding: 8rem 5%;
    background-color: var(--color-surface);
}

.gallery-section .section-header {
    margin-bottom: 4rem;
}

.masonry-gallery {
    column-count: 4;
    column-gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .masonry-gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background-color: var(--color-bg-light);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 33, 105, 0.7), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

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

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

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

/* =======================================
   CONTACT CTA SECTION
   ======================================= */
.cta-section {
    padding: 6rem 5%;
    background-color: var(--color-bg-light);
    display: flex;
    justify-content: center;
}

.cta-container {
    max-width: 1000px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #001229 100%);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.cta-container>* {
    position: relative;
    z-index: 2;
}

.cta-container h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-container .small-text {
    font-size: 0.875rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* =======================================
   FOOTER
   ======================================= */
footer {
    background-color: var(--color-bg-dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--color-secondary);
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =======================================
   FLOATING WHATSAPP
   ======================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =======================================
   SCROLL ANIMATIONS (Utility classes)
   ======================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-right {
    transform: translateX(-50px);
}

.fade-left {
    transform: translateX(50px);
}

.fade-up {
    transform: translateY(50px);
}

.reveal.active.fade-right,
.reveal.active.fade-left,
.reveal.active.fade-up {
    transform: translate(0);
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .decor-card-1 {
        left: 10px;
    }

    .decor-card-2 {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .btn-whatsapp-nav {
        display: none;
    }

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

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        padding: 3rem 1.5rem;
    }
}