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

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a8a;
    --accent-color: #0077d4;
    --light-bg: #f8faf9;
    --dark-text: #1d1d1f;
    --light-text: #666666;
    --border-color: #e5e5e7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--dark-text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Optimizaciones globales de imágenes */
img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Scroll Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element.animate-in {
    animation: smoothFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo img {
    height: 80px;
    object-fit: contain;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

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

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--light-text);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

/* Brand Landing Section */
.brand-landing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.brand-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 95, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.brand-content {
    text-align: center;
    animation: brandFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 500px;
    height: auto;
    max-width: 80vw;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, filter;
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.02) translateY(-4px);
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.15));
}

video.brand-logo {
    display: block;
    margin: 0 auto;
}

.brand-tagline {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    gap: -8px;
    position: relative;
}

.scroll-arrow i {
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.5;
    animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-arrow i:nth-child(2) {
    margin-top: -12px;
    animation-delay: 0.2s;
    opacity: 0.3;
}

.scroll-indicator:hover .scroll-arrow i {
    opacity: 0.9;
}

.scroll-indicator:hover .scroll-arrow i:nth-child(2) {
    opacity: 0.6;
}

@keyframes brandFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 85vw;
        margin-bottom: 16px;
    }
    
    .brand-tagline {
        font-size: 16px;
    }
    
    .scroll-indicator {
        bottom: 40px;
    }
    
    .scroll-text {
        font-size: 12px;
    }
    
    .scroll-arrow i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 90vw;
    }
    
    .brand-tagline {
        font-size: 14px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(30, 58, 95, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-out;
}

/* Animaciones staggered del hero */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hero-goals {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    will-change: opacity, transform;
}

.cta-button-green {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    will-change: opacity, transform;
}

.hero.hero-visible .hero-title {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.hero.hero-visible .hero-goals {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.hero.hero-visible .cta-button-green {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark-text);
    margin-bottom: 45px;
    letter-spacing: -0.5px;
}

.hero-goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 45px;
}

.goal-column {
    background: white;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-column:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.goal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-column:hover .goal-icon {
    transform: scale(1.05);
}

.goal-icon i {
    font-size: 28px;
    color: white;
}

.goal-column h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.goal-column p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.5;
}

.cta-button-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25d366;
    color: white;
    padding: 18px 42px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    border: none;
    cursor: pointer;
}

.cta-button-green:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.cta-button-green i {
    font-size: 22px;
}

/* Carousel Section */
.carousel-section {
    padding: 50px 20px 80px;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow: visible;
    padding: 20px 0;
    cursor: grab;
    will-change: transform;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

.carousel-slide:last-child {
    margin-right: 20px;
}

.instagram-embed-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.instagram-embed-wrapper iframe {
    max-width: 100%;
    min-height: 600px;
}

/* Instagram embed responsive */
.instagram-media {
    max-width: 100% !important;
    margin: 0 !important;
}

.property-image-link {
    display: block;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
    }
    
    .instagram-embed-wrapper {
        min-height: 500px;
    }
    
    .instagram-embed-wrapper iframe {
        min-height: 500px;
    }
}

@media (max-width: 640px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f5f5f5;
    will-change: transform;
    backface-visibility: hidden;
}

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

.property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.location {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0;
}

.hoa {
    font-size: 13px;
    color: var(--light-text);
    margin: 4px 0 0 0;
    font-weight: 500;
}

.pricing {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.details i {
    color: var(--primary-color);
}

.property-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
    margin-top: auto;
}

.property-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--dark-text);
    font-size: 18px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -30px;
}

.carousel-btn.next {
    right: -30px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .carousel-btn.prev {
        left: 10px;
    }
    .carousel-btn.next {
        right: 10px;
    }
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

/* About Us Section */
.about-us {
    padding: 70px 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.about-us h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 14px;
}

.about-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--light-text);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.team-member:hover .member-image img {
    transform: scale(1.08);
}

.member-info {
    padding: 28px;
    text-align: center;
}

.member-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.member-title {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.member-bio {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.5;
}

/* Social Section */
.social-section {
    padding: 70px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.social-container {
    max-width: 700px;
    margin: 0 auto;
}

.social-container h2 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.social-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid white;
    color: white;
    background: transparent;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-btn i {
    font-size: 22px;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.2) translateY(-4px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 50px 20px 60px;
    }

    .hero-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .hero-goals {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .goal-column {
        padding: 26px;
    }

    .goal-icon {
        width: 56px;
        height: 56px;
    }

    .goal-icon i {
        font-size: 26px;
    }

    .goal-column h3 {
        font-size: 20px;
    }

    .goal-column p {
        font-size: 14px;
    }

    .cta-button-green {
        padding: 16px 32px;
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .about-us h2 {
        font-size: 32px;
    }

    .team-grid {
        gap: 30px;
    }

    .nav-right {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .goal-column h3 {
        font-size: 18px;
    }

    .goal-column p {
        font-size: 13px;
    }

    .cta-button-green {
        padding: 14px 28px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }

    .nav-link span {
        display: none;
    }

    .social-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
}
