/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Paleta gris y blanca */
header, main, footer {
    background-color: #f5f5f5;
}

/* HERO */
.hero-text h1, .hero-text p {
    color: white;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 1;
}

header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s;
    background-color: rgba(0, 0, 0, 0.8);
}

nav.transparent {
    background-color: rgba(0, 0, 0, 0.3);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* TOGGLE BUTTON */
.nav-toggle {
    display: none;
    font-size: 1.2rem;
    background: #444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

/* MAIN SECTIONS */
main {
    padding: 6rem 2rem 4rem;
}

.servicios, .proyectos {
    margin-bottom: 4rem;
    text-align: center;
}

/* GRID Y TARJETAS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* IMÁGENES UNIFORMES */
.grid img,
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* FOOTER */
footer {
    background: #333;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

footer input, footer textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
}

footer button {
    padding: 0.75rem;
    background: #f0c000;
    border: none;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
        padding: 1rem 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}
