*{
    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;
    }
}

/* Tarjetas giratorias de equipo */
.equipoMain {
    padding: 120px 0 40px 0;
    background: #f7f7f7;
    min-height: 100vh;
}
.equipoTitulo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #222;
    font-family: 'Outfit', sans-serif;
}
.equipoGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.equipoCard {
    background: transparent;
    width: 310px;
    height: 400px;
    perspective: 1200px;
    border-radius: 24px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10);
    margin: 0 10px 30px 10px;
}
.equipoCardInner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
    border-radius: 24px;
}
.equipoCard:hover .equipoCardInner,
.equipoCard:focus-within .equipoCardInner {
    transform: rotateY(180deg);
}
.equipoCardFront, .equipoCardBack {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    box-sizing: border-box;
}
.equipoCardFront {
    z-index: 2;
}
.equipoFoto {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e0e0e0;
    margin-bottom: 50px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}
.equipoNombre {
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}
.equipoCargo {
    font-size: 1.05rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 15px;
}
.equipoCardBack {
    transform: rotateY(180deg);
    background: #222;
    color: #fff;
    justify-content: flex-start;
    padding-top: 38px;
}
.equipoResumen {
    font-size: 1.05rem;
    margin-bottom: 22px;
    color: #f7f7f7;
    text-align: center;
    min-height: 80px;
}
.equipoLinkedInBtn {
    display: inline-block;
    background: #0077b5;
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 22px;
    text-decoration: none;
    margin-bottom: 18px;
    font-size: 1rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.equipoLinkedInBtn:hover {
    background: #005983;
}
.equipoCategorias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.equipoCategorias span {
    background: #fff;
    color: #222;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 500;
    margin-top: 4px;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
}

@media (max-width: 900px) {
    .equipoGrid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .equipoCard {
        width: 90vw;
        max-width: 270px;
        height: 340px;
    }
}

/* Mejoras responsivas para tarjetas de equipo en móvil */
@media (max-width: 600px) {
  .equipoGrid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .equipoCard {
    width: 96vw;
    max-width: 340px;
    min-width: 0;
    height: auto;
    min-height: 340px;
    margin: 0 0 24px 0;
  }
  .equipoCardInner {
    min-height: 340px;
    height: auto;
  }
  .equipoCardFront, .equipoCardBack {
    padding: 24px 10px 18px 10px;
    min-height: 340px;
    height: auto;
    box-sizing: border-box;
  }
  .equipoCardBack {
    padding-top: 28px;
  }
  .equipoResumen {
    font-size: 1rem;
    min-height: unset;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0 2px;
  }
  .equipoCategorias {
    gap: 6px;
  }
  .equipoCategorias span {
    font-size: 0.92rem;
    padding: 5px 10px;
  }
  .equipoFoto {
    width: 120px;
    height: 120px;
    margin-bottom: 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;
}
