* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --celeste: #87CEEB;
    --celeste-claro: #B0E2FF;
    --verde: #4CAF50;
    --verde-claro: #81C784;
    --negro: #333;
    --blanco: #fff;
}
:root {
    --primary-color: #8ACE06;
    --primary-hover: #008543;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-dark: #1a1a1a;
    --transition-speed: 0.3s;
}

body {
    font-family: 'arial', sans-serif;
    overflow-x: hidden;
    background: #f5f5f5;
}



@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navegación lateral mejorada */


/* Secciones mejoradas */
section {
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Vista General Mejorada */
#vista-general {
    background-image: url('img/manchego\ muñoz\ -\ huancayo.png');
    background-size: cover;  /* Hace que la imagen cubra todo el contenedor */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que la imagen se repita */
    position: relative;
    min-height: 100vh;
}
#vista-general::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--blanco);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--blanco);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--blanco);
    color: var(--negro);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Detalles Técnicos Mejorados */
#detalles-tecnicos {
    background: var(--blanco);
}

.specs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

.spec-item {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--celeste), var(--verde));
}

.spec-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.spec-icon {
    font-size: 2.5rem;
    color: var(--celeste);
    margin-bottom: 1.5rem;
}

.spec-title {
    font-size: 1.5rem;
    color: var(--negro);
    margin-bottom: 1rem;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.spec-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--verde);
}

/* Ubicación Mejorada */
#ubicacion {
    background: var(--negro);
    position: relative;
}

.location-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 3rem;
    align-items: center;
    color: var(--blanco);
}

.map-container {
    flex: 1.5;
    aspect-ratio: 16/9;
    background: var(--celeste);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.location-info {
    flex: 1;
    padding: 2rem;
}

.location-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--celeste);
}

.location-features {
    list-style: none;
}

.location-features li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--celeste);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Galería Mejorada */
#galeria {
    background: var(--blanco);
}

.gallery-container {
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: var(--blanco);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Financiamiento Mejorado */
#financiamiento {
    background: linear-gradient(45deg, var(--verde), var(--celeste));
    position: relative;
}

.finance-container {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

.finance-title {
    text-align: center;
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.finance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.finance-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: var(--blanco);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.finance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    transition: transform 0.5s;
}

.finance-card:hover {
    transform: translateY(-15px);
}

.finance-card:hover::before {
    transform: translateY(-100%);
}

.price-tag {
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: var(--blanco);
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.8;
}

.finance-features {
    list-style: none;
    margin: 2rem 0;
}

.finance-features li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.finance-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--blanco);
    color: var(--negro);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.finance-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Diseño responsivo mejorado */
        @media (max-width: 1024px) {
            .location-container {
                flex-direction: column;
            }
            
            .specs-container {
                grid-template-columns: 1fr;
            }

            .hero-title {
                font-size: 3rem;
            }
        }

        @media (max-width: 768px) {
            .floating-header {
                display: none;
            }

            .side-nav {
                right: 1rem;
            }

            .finance-cards {
                grid-template-columns: 1fr;
            }
        }

        .ñote {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 1rem 2rem;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: all var(--transition-speed) ease;
        }
        
        .ñote.scrolled {
            padding: 0.5rem 2rem;
            background-color: rgba(255, 255, 255, 0.98);
        }
        
        .logo {
            height: 40px;
            transition: transform var(--transition-speed) ease;
        }
        
        .logo:hover {
            transform: scale(1.05);
        }
        
        /* Navegación */
        .nav-menu {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }
        
        .nav-link {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            padding: 0.5rem 0;
            position: relative;
            transition: color var(--transition-speed) ease;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: width var(--transition-speed) ease;
        }
        
        .nav-link:hover {
            color: var(--primary-color);
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        /* Botón CTA */
        .cta-button {
            background-color: var(--primary-color);
            color: var(--text-light);
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all var(--transition-speed) ease;
            border: 2px solid var(--primary-color);
        }
        
        .cta-button:hover {
            background-color: transparent;
            color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
        }
        .footer {
            background-color: #1A1A1A;
            color: #FFFFFF;
            padding: 60px 20px;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }
        
        .footer-section {
            padding: 20px;
        }
        
        .footer-section h3 {
            color: #8ACE06;            ;
            margin-bottom: 20px;
            font-size: 1.5rem;
        }
        
        .footer-section p {
            margin-bottom: 10px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            color: #FFFFFF;
            font-size: 1.5rem;
            transition: color 0.3s ease;
        }
        
        .social-links a:hover {
            color: #8ACE06;
        }
        
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .contact-form input,
        .contact-form textarea {
            padding: 10px;
            border: none;
            border-radius: 5px;
            background-color: rgba(255,255,255,0.1);
            color: #FFFFFF;
        }
        
        .contact-form button {
            background-color: #8ACE06;
            color: #1A1A1A;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .contact-form button:hover {
            background-color:#7FB99B;
            transform: translateY(-2px);
        }
        
        /* WhatsApp Button */
        .whatsapp-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #7FB99B;
            color: var(--dark-color);
            padding: 15px 25px;
            border-radius: 50px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .whatsapp-btn:hover {
            transform: scale(1.1);
            background-color: #7FFF7F;
        }
        
        /* Scroll to Top Button */
        .scroll-top-btn {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background-color: #75B7D1;
            color: #FFFFFF;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: none;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .scroll-top-btn:hover {
            transform: translateY(-5px);
            background-color: #7FB99B;
        }
        
        .scroll-top-btn.visible {
            display: flex;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
        
            .hero-title {
                font-size: 3rem;
            }
        
            .hero-subtitle {
                font-size: 1.2rem;
            }
        
            .features-grid {
                grid-template-columns: 1fr;
            }
        
            .gallery-container {
                grid-template-columns: 1fr;
            }
        
            .amenities-scroll {
                grid-template-columns: 1fr;
            }
        
            .footer-container {
                grid-template-columns: 1fr;
            }
        }

        .guindales-2 {
            max-width: 1200px;
            height: 300px;
            margin: 0 auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: center;
        }
        
        th {
            background-color: #f2f2f2;
            position: sticky;
            top: 0;
            cursor: pointer;
        }
        
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        tr:hover {
            background-color: #f1f1f1;
        }
        
        .status-libre {
            background-color: #c8e6c9;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .status-reservado {
            background-color: #fff9c4;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        .status-vendido {
            background-color: #ffcdd2;
            padding: 4px 8px;
            border-radius: 4px;
        }
        
        select {
            padding: 4px;
            border-radius: 4px;
            border: 1px solid #ccc;
        }
        
        .controls {
            margin: 20px 0;
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .filter {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        button {
            padding: 8px 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        button:hover {
            background-color: #45a049;
        }
               /* Responsive layout */
               @media (min-width: 401px) {
                section > div {
                    flex-direction: row;
                    align-items: flex-start;
                }
                
                section > div > div:first-child {
                    margin-right: 30px;
                    margin-bottom: 0;
                    flex: 0 0 auto;
                }
                
                .guindales-2 {
                    flex: 1;
                }
            }
            
            /* Table container with horizontal and vertical scroll */
            .table-container {
                width: 100%;
                overflow-x: auto;
                /* Add height limitation and vertical scroll */
                max-height: 650px;
                overflow-y: auto;
                /* Add styles for better scroll visibility */
                border: 1px solid #ddd;
                position: relative;
            }
            
            /* Keep table header visible when scrolling */
            #propertyTable thead th {
                position: sticky;
                top: 0;
                background-color: #f2f2f2;
                z-index: 10;
                box-shadow: 0 1px 0 #ddd;
            }
            
            /* Table styles */
            #propertyTable {
                width: 100%;
                border-collapse: collapse;
            }
            
            #propertyTable th, #propertyTable td {
                padding: 8px;
                border: 1px solid #ddd;
            }
            
            #propertyTable th {
                background-color: #f2f2f2;
                cursor: pointer;
            }
            
            /* Zebra striping for better row visibility */
            #propertyTable tbody tr:nth-child(even) {
                background-color: #f9f9f9;
            }
            
            #propertyTable tbody tr:hover {
                background-color: #f0f0f0;
            }
            
            /* Controls */
            .controls {
                margin-bottom: 15px;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .filter {
                margin-right: 15px;
            }
            
            /* Highly distinctive status classes */
            .property-status-libre {
                background-color: #c8ffbe;
                color: #0a5a00;
                padding: 6px 12px;
                border-radius: 20px;
                font-weight: bold;
                text-transform: uppercase;
                display: inline-block;
                border: 2px solid #0a5a00;
            }
            
            .property-status-reservado {
                background-color: #fff4be;
                color: #705e00;
                padding: 6px 12px;
                border-radius: 20px;
                font-weight: bold;
                text-transform: uppercase;
                display: inline-block;
                border: 2px solid #705e00;
            }
            
            .property-status-vendido {
                background-color: #ffbebe;
                color: #5a0000;
                padding: 6px 12px;
                border-radius: 20px;
                font-weight: bold;
                text-transform: uppercase;
                display: inline-block;
                border: 2px solid #5a0000;
            }
            
            .whatsapp-btn {
                background-color: #25D366;
                color: white;
                border: none;
                border-radius: 50%;
                width: 36px;
                height: 36px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 16px;
                box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            }
            
            .whatsapp-btn:hover {
                background-color: #128C7E;
            }
            
            /* Custom scrollbar for better UX */
            .table-container::-webkit-scrollbar {
                width: 10px;
                height: 10px;
            }
            
            .table-container::-webkit-scrollbar-track {
                background: #f1f1f1;
            }
            
            .table-container::-webkit-scrollbar-thumb {
                background: #888;
                border-radius: 5px;
            }
            
            .table-container::-webkit-scrollbar-thumb:hover {
                background: #555;
            }
            /* Modify your existing CSS */
.ñote {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all var(--transition-speed) ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .ñote {
        padding: 1rem 1.5rem;
        justify-content: flex-start; /* Align items to the left */
    }
    
    .menu-toggle {
        display: flex;
        margin-right: 20px; /* Add space between hamburger and logo */
        order: 1; /* Change the order to put hamburger first */
    }
    
    .logo {
        order: 2; /* Put logo second */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Change from right to left */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1); /* Change shadow direction */
        transition: left 0.3s ease; /* Change from right to left */
    }
    
    .nav-menu.active {
        left: 0; /* Change from right to left */
    }
    
    .cta-button {
        margin-top: 20px;
    }
    
    /* Animation for hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Add overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}