/* --- General Styles --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(-45deg, #1e1e1e, #000000, #111111, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: white;
    line-height: 1.6;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header --- */


#mainNavbar {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 0.5rem 0;
    min-height: 80px;
    height: 80px;
}

#mainNavbar.scrolled {
    background-color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #fff;
    transition: color 0.3s;
}

.logo {
    padding: 0;
    margin-left: 200px;
    height: 80px;
}

.logo .logo2 {
    height: 80px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-right: 200px;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    /* Ocupa toda la pantalla */
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: white;
    max-width: 90%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bolder;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.btn {
    display: inline-block;
    background-color: white;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s; 
    transition: transform 0.3s ease;
}

.btn:hover {
    background-color: #ccc;
    color: #000;
    transform: scale(1.02);
}

/* --- Sections --- */
.section {
    margin-top: 50px;
    padding: 60px 1rem;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* --- Servicios --- */
.servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
}

.servicios div {
    flex: 1 1 280px;
    background-color: #000;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.servicios h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.servicios p {
    color: #ccc;
    font-size: 1rem;
}

.container .cotizacion {
    margin-top: 50px;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.portfolio-item {
    background-color: #222;
    height: auto;
    border-radius: 8px;
    width: 500px;
    transition: transform 0.3s ease;
    
}
.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item a {
    height: auto;
    width: 500px;
}

.portfolio-item a img {
    height: auto;
    width: 500px;
    border-radius: 8px;
}

.contacto {
    margin-top: 0;
    margin-bottom: 50px;
}

.container .ig {
    margin-right: 10px;
}

.container .wp {
    margin-left: 10px;
}

.relleno{
    height: 50px;
}

/* --- Footer --- */
footer {
    background-color: #000;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #aaa;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #mainNavbar {
        height: 50px;
        align-content: center;
    }

    .navbar .nav-link {
        margin-right: 0px;
        color: #000;
        transition: color 0.3s;

    }

    header ul li a {
        text-align: end;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-right: 0;
    }

    .logo {
        margin-left: 0;
    }

    .offcanvas.offcanvas-end.custom-offcanvas {
        width: 40%;
        height: 40%;
        /* Sobrescribe el ancho por defecto de Bootstrap */
    }

    .container .ig {
        margin-right: 0px;
    }

    .container .wp {
        margin-left: 0px;
        margin-top: 20px;
    }
    .portfolio-item {
    height: auto;
    width: 100%;
    }

    .portfolio-item a {
    height: auto;
    width: 100%;
    }

    .portfolio-item a img {
    height: auto;
    width: 100%;
    }
}