/* CSS Reset and Variables */
:root {
    --accent: #C6007E; /* Magenta del logo */
    --accent-hover: #A30068;
    --text-dark: #201751; /* Azul oscuro del logo */
    --text-gray: #6B7280;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --card-dark: #201751; /* Azul oscuro del logo */
    --border-color: #E5E7EB;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 110px;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    border: 2px solid var(--accent);
}

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

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

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

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
    transform: translateY(15px);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1001;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 24px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--accent);
}

.dropdown-content a::after {
    display: none; /* remove active underline from submenu */
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    background-color: var(--bg-white);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 45%;
    padding-right: 40px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.hero-content p {
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    /* Diagonal curve imitation */
    border-bottom-left-radius: 300px;
}

/* Gray Background Wrapper for Features and About */
.gray-background-wrapper {
    background-color: var(--bg-gray);
    border-top-left-radius: 120px;
    margin-top: -60px; /* Overlaps hero slightly or connects smoothly */
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

/* Features */
.features {
    margin-bottom: 80px;
}

.features-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.feature-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 4px;
}

.feature-text p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-content {
    width: 40%;
}

.about-content p {
    margin-bottom: 30px;
}

.about-image-wrapper {
    width: 55%;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-top-left-radius: 100px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.about-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--card-dark);
    color: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    width: 280px;
    box-shadow: 0 15px 30px rgba(18, 26, 47, 0.2);
}

.about-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 2rem;
}

.about-card p {
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content { width: 50%; }
    .hero-image-wrapper { width: 45%; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.0rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 400px;
    }
    
    .hero-img {
        clip-path: none;
        border-radius: 20px;
    }
    
    .features-container {
        flex-wrap: wrap;
    }
    
    .feature-item {
        min-width: 45%;
        margin-bottom: 24px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-content {
        width: 100%;
        text-align: center;
    }
    
    .about-image-wrapper {
        width: 100%;
    }
    
    .about-card {
        bottom: -30px;
        right: 10px;
        padding: 30px;
    }
}

/* Common Section Padding */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
    text-align: left;
}

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

.section-header p {
    font-size: 1.15rem;
    margin-top: 10px;
}

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

/* Properties Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.property-img {
    position: relative;
    height: 220px;
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.property-content {
    padding: 24px;
}

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

.property-location {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.property-features i {
    color: var(--accent);
    margin-right: 5px;
}

/* Services Detail Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(198, 0, 126, 0.1); /* Magenta shadow */
}

.service-icon-large {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Blog Section */
.blog-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* Space for scrollbar */
}

/* Custom Scrollbar */
.blog-slider::-webkit-scrollbar {
    height: 8px;
}
.blog-slider::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 4px;
}
.blog-slider::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.blog-card {
    min-width: 320px;
    flex: 1;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.blog-img {
    position: relative;
    height: 220px;
}

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

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--card-dark);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.2s;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card:hover h3 {
    color: var(--accent);
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact-info {
    width: 40%;
}

.contact-info p {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-gray);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.info-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-gray);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-white);
}

/* Testimonials */
.testimonials {
    overflow: hidden;
}
.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}
.testimonial-track {
    display: flex;
    width: calc(380px * 10);
    animation: scrollTestimonials 40s linear infinite;
}
.testimonial-track:hover {
    animation-play-state: paused;
}
.testimonial-card {
    width: 350px;
    margin: 0 15px;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}
.testimonial-card .stars {
    color: #FBBF24;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.author-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h4 {
    font-size: 1rem;
    color: var(--text-dark);
}
.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-380px * 5)); }
}

/* Footer */
.footer {
    background-color: var(--card-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--bg-white);
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}
.footer-logo-wrapper {
    margin-bottom: 25px;
}
.footer-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Hace el logo perfectamente redondo */
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1); /* Sutil borde */
}
.footer-contact {
    list-style: none;
    padding: 0;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--bg-white);
}
.footer-contact i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}
.footer-nav {
    list-style: none;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 12px;
}
.footer-nav a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-nav a:hover {
    color: var(--accent);
    padding-left: 5px;
}
.footer-blog {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.footer-blog-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.footer-blog-content a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s;
}
.footer-blog-content a:hover {
    color: var(--accent);
}
.footer-blog-content p {
    font-size: 0.85rem;
    color: var(--bg-white);
    margin: 0;
    line-height: 1.4;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    color: var(--bg-white);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(198, 0, 126, 0.4);
    color: #FFF;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-info, .contact-form {
        width: 100%;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .nav-btn-desktop {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 110px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-links.active {
        display: flex;
    }
}
