/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font y body */
body {
    font-family: 'Montserrat', sans-serif;
    color: #273746;
    background-color: #D5DBDB;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #273746;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 50px;
}

.nav-toggle {
    display: none;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 200px;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FFD700;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideIn 2s ease-in-out;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    animation: slideIn 2s ease-in-out;
}

.btn {
    background-color: #FFD700;
    color: #273746;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #ffffff;
    color: #273746;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #FFD700;
    color: #ffffff;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download i {
    margin-left: 10px;
}

.btn-container {
    margin-top: 40px;
}

.btn.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    border-radius: 25px;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
}

.btn.view-more .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.btn.view-more .icon-circle i {
    color: #fff;
}

.btn.download {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

.btn.download .btn-text {
    margin-right: 10px;
}

/* Content Sections */
section {
    padding: 100px 20px;
    text-align: center;
}

.about {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.about .content {
    flex: 1;
    animation: fadeInUp 2s ease-in-out;
}

.about .image {
    flex: 1;
    animation: fadeIn 2s ease-in-out;
    max-width: 100%;
    height: auto;
}

.about .content, .about .image {
    margin-bottom: 20px;
}

.projects {
    animation: fadeIn 2s ease-in-out;
    background-image: url('images/projects_bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.developments {
    animation: fadeIn 2s ease-in-out;
    background-color: #eaeaea;
}

.muv {
    animation: fadeIn 2s ease-in-out;
}

.contact {
    animation: fadeIn 2s ease-in-out;
}

/* Counter Section */
.counter {
    background-color: #273746;
    color: #FFD700;
    padding: 30px 50px;
    text-align: center;
}

.counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.counter-number {
    font-size: 48px;
    font-weight: bold;
}

/* What We Do */
.what-we-do {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    flex: 1 1 200px;
}

.icon-item img {
    width: 60px;
    height: 60px;
}

.icon-item h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #273746;
}

.icon-item p {
    font-size: 16px;
    color: #555;
}

/* About Us */
.about-us {
    background-color: #f9f9f9;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.about-content {
    position: relative;
    background-image: url('images_desarrolos_edificio/edificio1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 50px;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px; /* Added margin to avoid overlapping */
}

.about-image { 
    padding: 20px;
    animation: fadeInUp 2s ease-in-out;
    border-radius: 25px;
}
.about-text {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    animation: fadeInUp 2s ease-in-out;
    text-align: center;
    max-width: 50%;
}

.about-text p {
    font-size: 18px;
    color: #555;
}

/* Typologies Section */
.typologies {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.typology-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.typology-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.typology-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.typology-item img {
    flex: 1 1 400px; /* Increased size */
    width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.typology-item h3 {
    font-size: 30px;
    color: #273746;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Map Section */
.map-section {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.map-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
}

/* Project Progress Section */
.project-progress {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.progress-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.progress-item {
    width: 300px;
}

.progress-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Latest Developments */
.latest-developments {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.developments-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.development-item {
    width: 300px;
    text-align: left;
}

.development-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.development-item p {
    font-size: 16px;
    color: #555;
}

.btn.view-all {
    margin-top: 20px;
}

/* Contact Section */
.contact {
    background-color: #273746;
    color: #ffffff;
    padding: 50px 20px;
    text-align: left;
}

.contact .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact .contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact .contact-info a {
    color: #FFD700;
    text-decoration: none;
}

.contact .contact-info i {
    font-size: 20px;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700;
    color: #273746;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.floating-contact a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-contact img {
    width: 20px;
    height: 20px;
}

.floating-contact:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #273746;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

/* Modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); }
    to { transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
    }

    .sidebar {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #273746;
        z-index: 1000;
        padding-top: 60px;
        text-align: center;
    }

    .sidebar.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        margin: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 900;
    }

    .overlay.active {
        display: block;
    }

    .development-gallery {
        flex-direction: column;
        align-items: center;
    }

    .development-item {
        width: 80%;
        margin-bottom: 20px;
    }

    .muv .project-gallery {
        flex-direction: column;
        align-items: center;
    }

    .muv .project-item {
        width: 80%;
        margin-bottom: 20px;
    }

    .about-content {
        padding: 20px;
        height: auto;
        margin-bottom: 20px;
    }

    .about-text {
        max-width: 100%;
    }

    .typology-images {
        flex-direction: column;
    }

    .typology-item img {
        width: 100%;
    }
}

@media (max-width: 700px) {

  
    .about-content {
        height: 50vh;
    }

.about-us {
        padding:10px 0;
    }

.about-image {
        display: none;
    }

    .about-text {
        position: relative;
        animation: fadeIn 2s ease-in-out;
        padding: 20px;
        border-radius: 5px;
        
        max-width: 100%;
    }
}
