@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #9B51E0;
    --background-color: #121212;
    --text-color: #FFFFFF;
    --card-background: #1E1E1E;
    --dark-grey: #a0a0a0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    padding: 20px 50px;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo span:first-child {
    font-weight: 700;
    font-size: 24px;
}

.logo span:last-child {
    font-size: 12px;
    color: var(--dark-grey);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.quote-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--dark-grey);
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
}

.lang-switcher .active {
    color: var(--text-color);
    font-weight: 700;
}

.lang-switcher span {
    color: var(--dark-grey);
    margin: 0 5px;
}

.lang-switcher-item {
    display: flex;
    align-items: center;
}


/* Hero Section */
.hero {
    padding: 100px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: url('../img/cover 2.png') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--dark-grey);
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.primary-btn,
.secondary-btn {
    padding: 16px 35px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.social-proof {
    margin-top: 30px;
    color: var(--dark-grey);
}

.services {
    padding: 100px 50px;
    text-align: center;
}

.services .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 24px;
}

.services h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 12px 0;
}

.services > p {
    font-size: 18px;
    color: var(--dark-grey);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 15px;
    width: 280px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card p {
    color: var(--dark-grey);
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.card.expanded p {
    max-height: 500px;
}

.see-more-btn {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-icon-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 10px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.projects {
    padding: 100px 50px;
    text-align: center;
    background-color:  #1f1e1f;
}

.projects .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.projects h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0 50px 0;
}

.project-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    width: 500px;
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.about-us {
    padding: 100px 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #1f1e1f;
    text-align: center;
    margin-top: 20px;
}




.about-us a{
    background-color: #2b72be; /* Cambia a un tono más claro */
    transform: translateY(-4px); /* Eleva el botón ligeramente */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Añade sombra */
}


.about-us-content {
    flex: 1;
}

.about-us-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0px;
    text-align: center;
    
    
}



.about-us-content p {
    font-size: 18px;
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-us-image {
    flex: 1;
    text-align: center;
}

.about-us-image img {
    max-width: 150px;
    border-radius: 50%;
}

.benefits {
    padding-top: 10px;
    padding-bottom: 0px;
    text-align: center;
}

.benefits h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
}

.benefit-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.benefit-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 10px;
    width: 300px;
}

.benefit-card img {
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--dark-grey);
}

.contact {
    padding: 100px 50px;
    text-align: center;
}

.contact h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: var(--card-background);
    color: var(--text-color);
    font-size: 16px;
}

footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* === Media Queries for Responsiveness === */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        display: none; /* Hide the nav list by default */
        position: absolute;
        top: 70px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        border-top: 1px solid #333;
        padding: 30px 0;
        z-index: 100;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    nav ul.active {
        display: flex; /* Show the nav list when active */
    }

    nav .quote-btn {
        display: none; /* Hide quote button on mobile */
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 60px 20px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 38px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 320px;
    }

    .services, .projects, .about-us, .benefits, .contact {
        padding: 50px 20px;
    }

    .services h2, .projects h2, .about-us-content h2, .benefits h2, .contact h2 {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .service-cards, .benefit-cards, .project-cards, .about-us {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .about-us {
        gap: 30px;
    }

    .card, .benefit-card, .project-card {
        width: 100%;
        max-width: 300px;
    }

    .card {
        height: auto;
        min-height: 20px;
        padding: 10px 10px;
        justify-content: center;
    }
}
