/* Definiendo variables CSS */
:root {
    --primary-color: #001c71;
    --secondary-color: #00ce7c;
    --white: #ffffff;
    --black: #000000;
}

/* Reestableciendo los estilos de user agent del navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

/* Estilos del body */
body {
    padding-top: 95px;
    overflow-x: hidden;
}


/* ---------- Estilos de la cabecera y la barra de navegacion ---------- */

.header {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 95px;
}

.nav__list {
    align-items: center;
    position: absolute;
    top: 95px;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--secondary-color);
    transform: translateX(250px);
    transition: transform 0.8s ease;
}

.nav__list--show {
    transform: translateX(0);
}

.nav__item {
    list-style: none;
    margin: 12px;
    text-align: center;
}

.nav__item {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav__item--opacity {
    opacity: 1;
}

.nav__link {
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav__logo {
    width: 50px;
}

.nav__link::before,
.nav__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__link::before {
    left: 0;
}

.nav__link::after {
    right: 0;
}

.nav__link:hover::after,
.nav__link:hover::before {
    width: 50%;
}

.nav__link--active {
    border-bottom: 2px solid var(--primary-color);
}

.nav__bars-wrapper {
    display: flex;
    position: relative;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav__bars-wrapper i {
    z-index: 1;
}

.nav__bars-wrapper i::before {
    font-weight: 900 !important;
}

.nav__bars-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 12px;
    width: 100%;
    height: 0;
    background-color: var(--secondary-color);
    transition: height 0.3s ease;
}

.nav__bars-wrapper--active::before {
    height: 100%;
}


/* ---------- Estilos del contenido principal ---------- */

main {
    margin: 0 auto;
    width: 100%;
}

.dark-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.hidden-scrolling {
    overflow: hidden;
}

/* ---------- Estilos de la seccion Inicio ---------- */

.home {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
    background-image: url("../assets/img/fondo.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
    height: 500px;
}

.home__dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000c0;
}

.home__hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 40%;
    z-index: 1;
    transition: transform 1.5s ease;
}

.home__icon-logo {
    width: 70px;
    transition: width 0.5s ease;
}

.home__text-logo-1 {
    width: 250px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home__text-logo-2 {
    width: 130px;
    opacity: 0;
    transition: opacity 1s ease;
}

.home__paragraph {
    color: var(--white);
    font-size: 32px;
    text-align: center;
    z-index: 1;
}

.home__power {
    display: none;
    text-decoration: none;
    position: absolute;
    bottom: -20px;
    padding: 12px 14px 12px 14px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--black);
    background-color: var(--secondary-color);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}

.home__power:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.home__power i::before {
    font-weight: 900 !important;
}


/* ---------- Estilos de la seccion Nosotros ---------- */

.about {
    display: none;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 16px;
    margin: 16px;
    margin-top: 40px;
}

.about__principal {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.about__principal-paragraph {
    font-size: 18px;
    text-align: center;
}

.about__secondary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.about__contact,
.about__interests {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    width: 100%;
}

.about__contact-list,
.about__interests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.about__contact-item:hover {
    background-color: var(--secondary-color);
}

.about__contact-item,
.about__interests-item {
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.about__interests-item {
    font-size: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.about__interests-item:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.about__interests-item i {
    font-size: 40px;
}

/* Define la animación de caminata de Android de izquierda a derecha */
@keyframes walkRight {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(10px);
    }

    50% {
        transform: translateX(20px);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Define la animación de caminata de Android de derecha a izquierda */
@keyframes walkLeft {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(-20px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Aplica la animación de caminata de Android al icono */
.about__interests-item i.bi-android2 {
    animation: walkRight 2s ease infinite alternate;
    /* Alterna entre caminar hacia la derecha y hacia la izquierda */
}


/* Define la animación de mordida */
@keyframes bite {
    0% {
        transform: scaleX(1) scaleY(1);
    }

    50% {
        transform: scaleX(0.8) scaleY(0.6);
    }

    100% {
        transform: scaleX(1) scaleY(1);
    }
}

/* Aplica la animación de mordida al icono de la manzana */
.about__interests-item i.bi-apple {
    animation: bite 2s ease infinite;
}


/* Define la animación de cambio de perspectiva */
@keyframes changePerspective {
    0% {
        transform: perspective(400px) rotateY(0);
    }

    50% {
        transform: perspective(400px) rotateY(180deg);
    }

    100% {
        transform: perspective(400px) rotateY(0);
    }
}

/* Aplica la animación de cambio de perspectiva al icono de Windows */
.about__interests-item i.bi-windows {
    animation: changePerspective 3s ease infinite;
}


/* Define la animación de giro continuo */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Aplica la animación de giro al icono de Chrome */
.about__interests-item i.bi-browser-chrome {
    animation: spin 5s linear infinite;
}


/* Define la animación de oscilación para simular movimiento de cables */
@keyframes cableMovement {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Aplica la animación de oscilación al icono de infraestructura */
.about__interests-item i.bi-bezier2 {
    animation: cableMovement 1s ease infinite;
}


/* Define la animación de pantalla apagándose y encendiéndose */
@keyframes screenOffOn {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Aplica la animación al icono de consultoría */
.about__interests-item i.bi-person-workspace {
    animation: screenOffOn 5s ease infinite;
}


/* Define la animación de expansión de las líneas de señal */
@keyframes expandLines {
    0% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.2);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Aplica la animación al icono de innovación tecnológica */
.about__interests-item i.bi-broadcast {
    transform-origin: center;
    /* Establece el origen de la transformación en el centro del icono */
    animation: expandLines 2s ease infinite;
}

/* ---------- Estilos de la seccion Habilidades ---------- */

.skills {
    display: none;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 16px;
    margin-top: 40px;
}

.skills__list {
    display: grid;
    gap: 16px;
    width: 100%;
    justify-items: center;
}

.skills__item {
    position: relative;
    list-style: none;
    padding-bottom: 12px;
    max-width: 400px;
    width: 100%;
}

.skills__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, #00ce7c 60%, #001c715b);
    z-index: 1;
    transition: width 0.5s ease, opacity 0.5s ease;
}

.skills__bar-outset {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: #d1d1d1;
}

.skills__progress::before {
    content: "- ";
}

.skills__progress {
    font-weight: bold;
    border-radius: 20px;
    padding: 4px;
}


/* ---------- Estilos de la seccion Mision & Vision ---------- */

.mission-vision {
    display: none;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 16px;
    margin-top: 40px;
}

.mission-vision__wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mission-vision__gif-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.mission-vision__gif {
    width: 270px;
}

.mission-vision__mission,
.mission-vision__vision {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to top, #001c71ec, #00ce7c);
    color: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.mission-vision__vision {
    background: linear-gradient(to bottom, #001c71ec, #00ce7c);
}

.mission-vision__title-mission,
.mission-vision__title-vision {
    font-size: 24px;
}

.mission-vision__paragraph-mission,
.mission-vision__paragraph-vision {
    font-size: 18px;
}


/* ---------- Estilos de la seccion Proyectos y Servicios ---------- */

.services {
    display: none;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.services__wrapper {
    display: grid;
    width: 100%;
}

.services__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(to right, #001c71ec 30%, #00ce7c);
    color: white;
    margin: 16px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}


/* ---------- Estilos de la seccion Portafolio ---------- */

.briefcase {
    display: none;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.briefcase__wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.briefcase__carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.briefcase__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100%;
    padding: 36px;
    box-sizing: border-box;
}

.briefcase__title-item {
    font-size: 20px;
}

.briefcase__description-item {
    font-size: 18px;
}

.briefcase__link {
    text-decoration: none;
    padding: 8px 12px 8px 12px;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 20px;
}

.briefcase__link:hover {
    background-color: #00279b;
}

.next,
.prev {
    position: absolute;
    top: 50%;
    font-size: 40px;
    cursor: pointer;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.briefcase__img-wrapper {
    width: 100%;
}

.briefcase__img-item {
    width: 100%;
    border-radius: 20px;
}


/* ---------- Estilos de la seccion Contacto ---------- */

.contact {
    margin: 16px;
    margin-top: 40px;
    padding-bottom: 40px;
    display: none;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.contact__wrapper {
    display: flex;
    gap: 20px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    border-radius: 16px;
    width: 100%;
    height: 100%;
}

.contact__location-wrapper {
    display: none;
}

.contact__location {
    height: 100%;
}

.contact__input {
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    padding: 12px;
    font-weight: 600;
    resize: none;
}

.contact__input:focus {
    outline-color: #008d55;
}

.contact__terms-wrapper {
    margin-bottom: 12px;
}

.contact__terms-label a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold
}

.contact__button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(to right, #001c71ec, #00ce7c);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
}

.contact__button:hover {
    background: linear-gradient(to right, #001553ec, #009c5e);
}


/* ---------- Estilos del footer ---------- */

footer {
    display: none;
    justify-content: center;
    width: 100%;
    height: 250px;
    background: linear-gradient(to right, #001c71ec, #00ce7c);
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 24px;
}

.footer__top {
    position: absolute;
    top: -20px;
    background-color: var(--secondary-color);
    padding: 12px 14px 12px 14px;
    border-radius: 50%;
    transition: background-color 0.4s ease;
}

.footer__top i {
    color: var(--black);
}

.footer__top i::before {
    font-weight: 900 !important;
}

.footer__top:hover {
    background-color: var(--primary-color);
}

.footer__top:hover i {
    color: var(--white);
}

.footer__social-link,
.footer__top {
    text-decoration: none;
    color: var(--white);
}

.footer__social-link {
    font-size: 24px;
    margin: 8px;
}

.footer__social-link:hover {
    color: rgb(197, 197, 197);
}

.footer__info-wrapper {
    display: flex;
    gap: 20px;
}

.footer__data-wrapper,
.footer__copyright-wrapper {
    width: 50%;
    color: var(--white);
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

    main,
    .nav,
    .footer {
        max-width: 540px;
    }


    /* ---------- Estilos de la seccion Nosotros ---------- */

    .about__contact-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .about__interests-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .about__interests-item:last-child {
        grid-column: 1 / 4;
    }


    /* ---------- Estilos de la seccion Habilidades ---------- */

    .skills__list {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }


    /* ---------- Estilos de la seccion Mision y Visión ---------- */

    .mission-vision__gif {
        width: 300px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    main,
    .nav,
    .footer {
        max-width: 720px;
    }

    /* ---------- Estilos de la seccion Portafolio ---------- */

    .briefcase__item {
        flex: 0 0 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    main,
    .nav,
    .footer {
        max-width: 960px;
    }

    .nav__bars-wrapper {
        display: none;
    }

    .nav__list {
        display: flex;
        position: initial;
        width: initial;
        height: initial;
        background-color: initial;
        transform: initial;
        transition: initial;
    }

    .nav__item {
        opacity: 1;
        transition: initial;
    }

    .nav__link::before,
    .nav__link::after {
        background-color: var(--secondary-color);
    }

    .nav__link--active {
        border-bottom: 2px solid var(--secondary-color);
    }


    /* ---------- Estilos de la seccion Nosotros ---------- */

    .about__principal {
        flex-direction: row;
    }

    .about__secondary-wrapper {
        flex-direction: row;
    }

    .about__contact {
        width: 70%;
    }

    .about__contact-list {
        grid-template-columns: initial;
    }


    /* ---------- Estilos de la seccion Mision y Vision ---------- */

    .mission-vision {
        gap: initial;
    }

    .mission-vision__wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        align-items: center;
        gap: initial;
    }

    .mission-vision__vision {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }


    /* ---------- Estilos de la seccion Servicios ---------- */

    .services__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }


    /* ---------- Estilos de la seccion Contacto ---------- */

    .contact__form {
        width: 50%;
    }

    .contact__location-wrapper {
        display: block;
        width: 50%;
    }

    .contact__location {
        width: 100%;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    main,
    .nav,
    .footer {
        max-width: 1140px;
    }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {

    main,
    .nav,
    .footer {
        max-width: 1320px;
    }
}