/* 🌐 Estilos globales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 40px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d365ee;
}

/* 🎬 HERO */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 80px 20px;
    background: #e8d6fc;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #8E44AD;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.btn-hero {
    display: inline-block;
    background: #8E44AD;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-hero:hover {
    background: #7D3C98;
}

/* 📷 IMAGEN DEL HERO */
.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
}

/* 🏆 PROYECTOS DESTACADOS */
#proyectos {
    padding: 60px 20px;
    text-align: center;
}

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

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.card h3 {
    color: #8E44AD;
    margin-top: 10px;
    font-size: 1.2rem;
}

.card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 🔄 ETAPAS */
#etapas {
    padding: 60px 20px;
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item {
    background: #e3e3e3;
    padding: 20px;
    margin: 10px 0;
    width: 60%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item h3 {
    margin-top: 0;
    color: #6a0dad;
}

.timeline-item p {
    margin: 0;
    color: #333;
}

/* 📩 CONTACTO */
#contacto {
    padding: 80px 20px;
    background: #f9f6ff;
    text-align: center;
}

#contacto h2 {
    font-size: 2.2rem;
    color: #6a0dad;
    margin-bottom: 20px;
}

#contacto p {
    font-size: 1.1rem;
    color: #444;
    max-width: 750px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.btn-contacto {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    background-color: #6a0dad;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-contacto:hover {
    background-color: #5a019b;
}

/* 🦶 FOOTER */
footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* 🍔 Responsive Header & Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #6a0dad;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav ul li a {
        font-size: 1rem;
        color: #6a0dad;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        max-width: 175px;
        /* La mitad del original (350px) */
    }
}