*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: outfit;
}

nav{
    width: 100%;
    background-color: white;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mainNav{
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.mainNavItems{
    float: right;
    padding: 20px;
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 20px;
    margin-right: 20px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: 0.4s;
}

/* Animación del menú hamburguesa cuando está activo */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}



.mainNavItems:hover{
    background-color: rgb(216, 216, 216);
    color: white;
    transition: 0.5s;
    
}


li a{
    color: black;
}

.subNavServicios{
    display: none;
    position: absolute;
    margin-top: 20px;
    margin-left: -20px;   
}

.subNavServicios li{
    background-color: rgb(154, 154, 155);
}

.subNavServicios li a{
    display: block;
    padding: 20px;
}


.subNavServicios li:hover{
    background-color: black;
    transition: 0.5s;
}

.subNavServicios li a{
    color: white;
    font-weight: 200;
}

#servicios:hover .subNavServicios{
    display: block;
    transition: 0.5s;

}


.logo svg{
    width: 150px;
    height: auto;
    float: left;
    padding: 20px;
    margin-left:20px ;
}

.hero{
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
}

.heroText{
    width: 50%;
    color: black;
    font-size: 50px;
    font-weight: 500;
    padding: 20px;
    text-align: left;
    margin-left: 20px;
    margin-top: 90px;
}

.heroImage{
    width: 50%;
}


.heroImage svg{
    width: 100%;
    height: auto;
    float: right;
    display: block;
    margin-right: 120px;
    margin-top: 90px;
}

/* Media queries para dispositivos móviles */
@media screen and (max-width: 768px) {
    html, body {
        width: 100vw;
        overflow-x: hidden;
    }
    nav, .hero, .nuestrosServiciosItems, .contacto, footer {
        width: 100vw !important;
        box-sizing: border-box;
    }
    .menu-toggle {
        display: block;
    }
    
    .mainNav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100vw;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0,0,0,0.2);
        flex-direction: column;
        display: none !important;
        z-index: 1000;
    }
    
    .mainNav.active {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Estilo para el submenú de servicios en móvil */
    .subNavServicios {
        position: relative;
        width: calc(100vw - 20px);
        left: 0;
        margin: 0 10px 0 10px;
        display: none;
        transition: all 0.3s ease;
        background-color: rgb(154, 154, 155);
        box-sizing: border-box;
        padding: 0;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }
    
    #servicios.active .subNavServicios {
        display: block;
    }
    
    .subNavServicios li {
        background-color: rgb(154, 154, 155);
        padding: 0;
        border-bottom: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }
    
    .subNavServicios li:last-child {
        border-bottom: none;
    }
    
    .subNavServicios li a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 20px;
        color: white;
        font-weight: 200;
        text-align: left;
        white-space: normal;
        border-radius: 0 0 12px 12px;
    }
    
    .mainNavItems {
        float: none;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
        padding: 15px;
        margin: 0;
    }
    
    .subNavServicios {
        position: static;
        width: 100%;
        margin: 0;
        display: none;
    }
    
    #servicios:hover .subNavServicios {
        display: none;
    }
    
    #servicios.active .subNavServicios {
        display: block;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .heroText, .heroImage {
        width: 100%;
        text-align: center;
    }
    
    .heroText {
        font-size: 30px;
        margin-left: 0;
    }
    
    .heroImage svg {
        margin-right: 0;
    }
    
    .nuestrosServiciosItems {
        flex-direction: column;
    }
    
    .serviciosContainer {
        width: 100%;
        margin-bottom: 20px;
    }
}

/*NUESTROS SERVICIOS*/
.nuestrosServiciosTitle{

    background-color: black;
    display: flex;
    padding: 20px;
    margin-top: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-weight: 200;
    color: white;
}

.nuestrosServiciosTitle h2{
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4px;
}

.nuestrosServiciosItems{
    width: 100%;
    height: auto;
    display: flex;
}

.serviciosContainer{
    flex-wrap: wrap;
    width: 33.33333%;
    height: 500px;
}

#visualTech{
    background-image: url(/images/bg_visualTech.png);
    background-size: cover;
    background-position: center;
}

#visualAnalytics{
    background-image: url(/images/bg_visualAnalytics.png);
    background-size: cover;
    background-position: center;
}

#visualEngineering{
    background-image: url(/images/bg_visualEngineering.png);
    background-size: cover;
    background-position: center;
}


#visualTech:hover{
    background-image: url(/images/bg_visualTech_hover.png);
    transition: 0.3s;
}

#visualAnalytics:hover{
    background-image: url(/images/bg_visualAnalytics_hover.png);
    transition: 0.3s;
}

#visualEngineering:hover{
    background-image: url(/images/bg_visualEngineering_hover.png);
    transition: 0.3s;
}


.btnSaberMasContainer{
    display:none;
    height: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: relative;
    top: 300px;
}

.btnSaberMas{
    background-color: white;
    color: black;
    padding: 15px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
}

.btnSaberMas:hover{
    background-color: black;
    color: white;
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.7);
    transition: 0.3s;

}

.serviciosContainer:hover .btnSaberMasContainer{
    display: block;
    z-index: 2;
   transition: 0.3s;
}

.servicioLogo{
    display: none;
    text-align: center;
}

.servicioLogo svg{
    width: 300px;
}

.serviciosContainer:hover .servicioLogo{
    display: block;
    transition: 0.3s;
}

/*CONTACTO*/
.contacto{
    width: 100%;
    background-color: #23435D;
    padding: 50px 0;
    color: white;
    text-align: center;
}

.contactoTitle{
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.contactoContainer{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contactoInfo, .contactoForm{
    width: 45%;
    min-width: 300px;
    margin-bottom: 30px;
}

.contactoInfo p{
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.6;
}

.contactoInfo i{
    margin-right: 10px;
    color: white;
}

.contactoInfo h3{
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
   
}

.contactoForm input, .contactoForm textarea{
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
}

.contactoForm h3{
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
}

.contactoForm textarea{
    height: 150px;
    resize: none;
}

.contactoForm button{
    background-color: black;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 2px;
    transition: 0.3s;
}

.contactoForm button:hover{
    background-color: white;
    color: black;
}

/* FOOTER */
footer{
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
}

.footerLogo svg{
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footerLinks{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footerLinks a{
    color: white;
    margin: 0 15px;
    transition: 0.3s;
}

.footerLinks a:hover{
    color: #23435D;
}

.copyright{
    font-size: 14px;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1024px){
    .heroText{
        font-size: 40px;
    }
    
    .heroImage svg{
        margin-right: 60px;
    }
}

@media screen and (max-width: 768px){
    .hero{
        flex-direction: column;
    }
    
    .heroText, .heroImage{
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .heroImage svg{
        margin-right: 0;
        margin-top: 30px;
    }
    
    .nuestrosServiciosItems{
        flex-direction: column;
    }
    
    .serviciosContainer{
        width: 100%;
        margin-bottom: 20px;
    }
    
    .contactoInfo, .contactoForm{
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0 10px;
    }
    
    .contactoForm input, .contactoForm textarea{
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 600px){
    nav{
        position: relative;
    }
    
    .mainNav{
        display: flex;
        flex-direction: column-reverse;
    }
    
    .mainNavItems{
        float: none;
        text-align: center;
    }
    
    .logo svg{
        float: none;
        display: block;
        margin: 0 auto;
    }
    
    .subNavServicios{
        position: relative;
        width: 100%;
        margin-left: 0;
    }
    
    .heroText{
        font-size: 30px;
        margin-top: 30px;
    }
}

/* Botón flotante de WhatsApp en la esquina inferior derecha */
#whatsappBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

#whatsappBtn:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: scale(1.08);
}

#whatsappBtn img {
    width: 30px;
    height: 30px;
}
