@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0; 
    padding: 0;
}

.welcome {
    position: relative;
    height: 100vh; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    color: #000;
    font-size: 5vw; 
    padding: 2rem; 
    box-sizing: border-box;
    overflow: hidden; 
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}

.welcome-content {
    z-index: 1; 
}

.welcome h2 {
    font-weight: 400; 
    letter-spacing: 1vw;
    margin: 0;
    font-size: 2rem; 
    line-height: 1.2;
}

.page-footer {
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    background-color: #ffffff; 
    padding: 1rem; 
    z-index: 10;
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    box-sizing: border-box;
}

.page-footer .footer-icon {
    height: 5vh; 
    margin-left: 1rem; 
}

.page-footer p {
    color: #fff;
    font-size: 1rem; 
    margin: 0;
    margin-left: 1rem; 
}

.kpi-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem; 
    z-index: 1;
}

.kpi {
    text-align: center;
}

.kpi h3 {
    font-size: 1rem; 
    margin-bottom: 0.3rem; 
    font-weight: 400; 
}

.kpi p {
    font-size: 1.6rem;
    font-weight: 500; 
    color: #FC5C00;
}

.welcome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #ffffff); 
    z-index: 0; 
}

.services {
    background-color: #fff;
    padding: 2rem; 
    text-align: center; 
    box-sizing: border-box;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0), #fff); 
    z-index: 0; 
}

.services {
    background-color: #ffffff;
    color: #333;
    padding: 6rem 3rem;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.services h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #FC5C00;
    font-weight: 300; 
    text-align: left;
}

.services p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 300;
    text-align: left;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    box-sizing: border-box;
}

.services-container p{
    color: #ffffff;
}

.service-card {
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    min-height: 400px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.service-card p {
    text-align: center;
}

.service-card-web {
    background-image: url('https://nxg.com.mx/assets/paginaW/img/fondo1.svg');
    background-size: cover;
    background-position: center;
}

.service-card-mobile {
    background-image: url('https://nxg.com.mx/assets/paginaW/img/fondo2.svg');
    background-size: cover;
    background-position: center;
}

.service-card-infrastructure {
    background-image: url('https://nxg.com.mx/assets/paginaW/img/fondo3.svg');
    background-size: cover;
    background-position: center;
}

.service-card-advisory {
    background-image: url('https://nxg.com.mx/assets/paginaW/img/fondo4.svg');
    background-size: cover;
    background-position: center;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-card:hover .service-content p {
    opacity: 1;
}

.service-card hr {
    border: none;
    border-top: 2px solid #ffffff;
    margin: 1rem 0;
}

.service-card:hover hr {
    border-top: 2px solid #ffffff;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-header img {
    width: 20%;
    height: auto;
    max-width: 60px;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.service-content h3 {
    margin: 0;
    font-size: 1.5rem;
    word-wrap: break-word;
    text-transform: uppercase;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.desarrolladas{
    text-align: center;
}

.desarrolladas h2{
    text-align: center;
    color: #FC5C00;
    letter-spacing: .8vw;    
    font-weight: 400; 
}

.desarrolladas-text{
    color: #000000;
}

.menu ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.menu button {
    color: #FC5C00;
    border: transparent;
    background: none;
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu button:hover {    
    color: #fc5c00;
    box-shadow: 0 0 5px 2px #fc5c00c4;
}

.menu button.active {
    background-color: #fc5c00c4;
    color: #fff;
    box-shadow: 0 0 10px 5px #fc5c00c4;
    transition: all 0.3s ease;
}

.menu button {
    background-color: transparent;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.solutions {
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
        url('https://nxg.com.mx/assets/paginaW/img/fondo_2.svg');
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center; 
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.solutions h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%; 
    max-width: 1200px; 
    margin: auto; 
    margin-top: 2rem;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: clamp(1rem, 5vw, 2rem);
    box-sizing: border-box;
    margin-bottom: 2rem; 
}

.carousel-text {
    text-align: left;
    margin-bottom: 2rem; 
}

.carousel-text h3 {
    color: #F77A31;
    margin-bottom: 0.5rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.carousel-text p {
    margin: 0.5rem 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-bottom: 2rem;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.info-text span {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem; 
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
    margin-bottom: 2rem; 
}

.social-icons a {
    color: #FC5C00;
    transition: color 0.3s;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem; 
}

.social-icons a:hover {
    color: #fff;
}

.mission {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 20px;
    transition: background-color 1.2s ease;
    position: relative;
}

.mission img {
    width: 40%;
    height: auto;
    align-self: flex-end;
    opacity: 0;
    transform: translateY(10%); 
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.mission img.show {
    opacity: 1;
    transform: translateY(0); 
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px); 
    }
    70% {
        transform: translateY(10px);
    }
    85% {
        transform: translateY(-5px); 
    }
    100% {
        transform: translateY(0); 
    }
}

.mission .content {
    width: 50%;
    color: #ffffff;
    text-align: left;
    font-weight: 400;
    margin-left: auto;
    padding-left: 2rem;
    box-sizing: border-box;
}

.content h1 {
    font-size: 2vw;
    font-weight: 400; 
    letter-spacing: .5vw;
}

.KPI {
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    height: auto; 
    margin-top: 10rem;
}

.KPI h2 {
    color: #FC5C00; 
    letter-spacing: .5vw;
    font-weight: 400;
    margin-bottom: 10px;
}

.KPI p {
    color: #000000; 
    margin-bottom: 20px;
}

.kpi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    margin-top: 5rem
}

.kpi-box {
    width: 270px;
    height: 160px;
    background-color: #FC5C00;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.kpi-box p {
    font-size: 25px;
    font-size:100%;
    font-weight: 300;
    color: #ffffff; 
    margin-bottom:auto;
}

.kpi-box .percentage {
    font-size: 3.5rem;
    font-weight: 500;
    color: #ffffff; 
    margin-bottom:auto;
}

.kpi-box::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px; 
    height: 4px; 
    background-color: #FC5C00;
    transform: translateY(-50%);
}

.kpi-box:last-child::after {
    display: none;
}

.comments-container {
    position: relative;
    width: 100%;
    max-width: 1200px; 
    overflow: hidden;
    margin: auto;
    margin-top: 10rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.comments-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.comments-slide {
    display: flex;
    flex-shrink: 0; 
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center; 
    text-align: center;  
    justify-content: center; 
}

.hexagonal-image {
    margin-right: 3rem;  
}

.hexagonal-image img {
    width: 100px;
    height: auto;
}

.comments-side-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color:transparent;
    color: #000000; 
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.comments-side-button:hover {
    background-color: #FC5C00;
}

#prev-comment {
    left: 10px;
}

#next-comment {
    right: 10px;
}

.customers-carousel {
    position: relative;
    width: 100%;
    height: 10vh;
    overflow: hidden; 
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
}

.customers-track {
    display: flex;
    width: max-content; 
    animation: scroll 40s linear infinite; 
    will-change: transform;
    position: relative; 
}

.customers-slide {
    flex: 0 0 auto;
    width: 3.5%; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.customers-slide img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 5px;
}

@keyframes scroll {
    from {
        transform: translateX(0); 
    }
    to {
        transform: translateX(-50%);
    }
}

.quality{
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    height: auto; 
    margin-top: 5rem;
}

.quality-text{
    color: #000000;
}

.quality h2{
    color: #FC5C00; 
    letter-spacing: .5vw;
    font-weight: 400;
    margin-bottom: 10px;
}

.quality p{
    color: #000000; 
    margin-bottom: 20px;
}

.contac-us {
    background-color: #FC5C00;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    text-align: left;
}

.text-container {
    flex: 1;
}

.contac-us h2 {
    color: #ffffff;
    letter-spacing: .5vw;
    font-weight: 400;
    margin-bottom: 10px;
    white-space: normal;
    word-wrap: break-word;
}

.contac-us p {
    color: #ffffff;
    margin-bottom: 20px;
    white-space: normal;
    word-wrap: break-word;
}

.gif-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.gif {
    max-width: 100%; 
    height: auto;
}

.buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px; 
}

.btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-contact {
    background-color: #ffffff; 
    color: #000000;
    border: none;
}

.btn-quote {
    background-color: #ffffff00; 
    color: #ffffff;  
    border: 1px solid #ffffff; 
}

.btn-contact:hover {
    background-color: #000000; 
    color: #ffffff;
}

.btn-quote:hover{
    background-color: #ffffff;
    color: #000000;
}

.contact-form-container {
    position: fixed;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.contact-form-container.show {
    opacity: 1; 
    transform: translateY(-100%); 
}

.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #000000;
}

.contact-form label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-size: 0.9rem;
    color: #000000;
}

.contact-form input,
.contact-form textarea {
    resize: none; 
    width: 100%; 
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 1rem; 
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fc5c00;
    outline: none;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-submit {
    background-color: #fc5c00;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1;
    max-width: 150px;
}

.btn-submit:hover {
    background-color: #e05200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.btn-cancel:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*-------------------------------------------------------*/
.footer-end {
    background-color: #222222;
    color: #ffffff;
    padding: 1.5rem 2rem;
    font-family: 'Arial', sans-serif;
    text-align: center;
    border-top: 2px solid #FC5C00;
}

.footer-icon {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer__legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.footer__legal-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: #FC5C00;
}

.footer__social-icons {
    display: flex;
    gap: 1rem;
}

.footer__social-icon {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer__social-icon:hover {
    color: #FC5C00;
    transform: scale(1.1);
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: #d3d3d3;
    margin-top: 1rem;
    line-height: 1.4;
    text-align: center;
}
