* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #000428, #004e92);
    overflow-x: hidden;
}

.inicio {
    background-color: #ffff;
}

/* Estilo del banner */
.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Asegura que esté encima de todo */
}

.banner img {
    max-width: 100%;
    max-height: 97%;
    border-radius: 10px;
}

/* Botón de cierre */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #fff;
    color: #000;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #f44336;
    color: #fff;
}

/* Ocultar el banner cuando se cierra */
.banner.hidden {
    display: none;
}

/* Navbar */
/* Estilo para el contenedor del menú desplegable */
.desplegable {
    position: relative;
}

/* Ocultar el submenú por defecto */
.menu-desplegable {
    color: #ffffff;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Estilo para los elementos del submenú */
.menu-desplegable li {
    margin-top: 5px;
    padding: 0.5rem 1rem;
}

.nav-links .menu-desplegable li a {
    color: #00d4ff;
    font-size: 15px;
    text-decoration: none;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease;
}


/* Mostrar el submenú cuando se pasa el cursor sobre el elemento de menú */
.desplegable:hover .menu-desplegable {
    display: block;

}

/* Estilo para el menú desplegable */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #009fe3;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo img {
    margin-left: 10px;
    height: 70px;
    filter: drop-shadow(0 0 10px #00d4ff);
}

.left-section {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-left: 3rem;
}

.nav-links li a {
    font-size: 20px;
    color: #fff;
    /* Color del texto en .nav-links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links li a:hover {
    color: #ffffff;
    /* Color al pasar el cursor en .nav-links */
}

.right-section {
    display: flex;
    align-items: center;
}

.user {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-left: 20rem;
}

.user-links li a {
    font-size: 20px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-links li a:hover {
    color: #ffffff;
}

.menu-checkbox {
    display: none;
    /* Ocultar el checkbox */
}

.menu-icon {
    display: none;
    /* Ocultar el icono de menú por defecto */
    font-size: 2rem;
    color: #00d4ff;
    cursor: pointer;
    z-index: 1001;
    /* Asegura que esté por encima del menú desplegable */
}

.inicio {
    color: #ffffff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inicio h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px #00d4ff);
}

.inicio button {
    background: transparent;
    border: 2px solid #00d4ff;
    padding: 0.8rem 2rem;
    color: #00d4ff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inicio button:hover {
    background-color: #00d4ff;
    color: #000;
}

/* About Section */
.acerca {
    padding: 2rem 2rem;
    background: #ffffff;
    backdrop-filter: blur(20px);
    text-align: center;
}

.img-nosotros img {
    width: 90%;
    margin-top: 15px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.img-nosotros img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.5);
}

.acerca-content {
    padding: 1.5rem;
    border-radius: 10px;
    width: 50rem;
    margin: 0 auto 0;

    img {
        width: 47rem;
    }
}

.acerca h2 {
    color: #0d213f;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}


.acerca p {
    text-align: justify;
    line-height: 1.8;
    font-size: 20px;
}

/* Servicios Seccion*/
.servicio {
    background: white;
    padding: 2rem 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.porta {
    background: white;
    padding: 2rem 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.porta {
    .porta-lista {
        img {
            height: 19.2rem;
            width: 94.5rem;
        }
    }

    .deca {
        img {
            height: 6rem;
        }
    }

    .compu {
        img {
            height: 20rem;
        }
    }
}

.servicio-lista {
    display: flex;

    img {
        height: 20rem;
    }
}

.servicio h2 {
    color: #1d70b7;
    font-size: 2.5rem;
    width: 100%;
}


.servicio-item {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 450px;
    margin: 1rem;
    text-align: center;
    align-items: center;
    border-radius: 10px;
    padding: 0 1rem;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 213, 255, 0.342);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-item img {
    width: 100%;
    height: 70%;
    border-bottom: 2px solid #257a8d;
}

.porta-lista {
    display: flex;
    background-size: cover;
}

.titulo {
    margin-top: 7px;
}

.servicio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 213, 255, 0.637);
}

.porta-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 213, 255, 0.637);
}



.servicio-item h3 {
    font-size: 2rem;
    color: #257a8d;
}

.servicio-item p {
    color: #bbbbbb;
}

.porta-item h3 {
    font-size: 2rem;
    color: #257a8d;
}

.porta-item p {
    color: #bbbbbb;
}

/* Portfolio Section */
.portafolio {
    background: #ffffff;
    padding: 4rem 2rem;
    text-align: center;

}

.portafolio h2 {
    color: #1d70b7;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


.portafolio img {
    width: 100%;
    max-width: 850px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 213, 255, 0.342);
}

.portafolio img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 213, 255, 0.637);
}

.deca {
    position: absolute;
    left: 22rem;
    margin-top: 10rem;
}

.deca:hover {
    cursor: pointer;
}

.texto {
    position: absolute;
    left: 22rem;
    margin-top: 5rem;
    font-size: 21px;
    color: white;
    width: 22rem;
}

.compu {
    position: absolute;
    left: 45rem;

}

/* Footer */
.footer {
    background-color: #00172d;
    color: #ffffff;
    padding: 4rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid #00d4ff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 1200px;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    gap: 2rem;
}

.footer-links li a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;

}

.footer-links li {
    list-style-type: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-acerca {
    padding: 0 2rem;
    text-align: center;
    width: 100%;
}

.footer-section h2 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h2::after {
    content: '';
    width: 40px;
    height: 3px;
    background: #00d4ff;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.footer-section p {
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #00d4ff;
}

.footer-contact a {
    text-decoration: none;
    color: #ffffff;
}

.footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #00d4ff;
    text-align: center;
}

.footer-bottom::before {
    content: '';
    width: 100px;
    height: 2px;
    background: #00d4ff;
    display: block;
    margin: 1rem auto;
}

.footer-bottom p {
    margin-top: 1rem;
    color: #ffffff;
    opacity: 0.7;
}

.footer-bottom a {
    color: #ffffff;
}


/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.navbar,
.inicio,
.acerca,
.servicio,
.porta,
.portafolio,
.footer {
    animation: fadeIn 1.5s ease-in;
}

@media screen and (max-width:1300px) {
    .deca {
        position: absolute;
        left: 18rem;
        margin-top: 10rem;
    }

    .texto {
        left: 18.5rem;
    }

    .porta .compu img {

        height: 19rem;
    }

    .compu {
        left: 44rem;
    }
}

@media screen and (max-width:1150px) {
    .deca {
        left: 14rem;
    }

    .texto {
        left: 14.5rem;
    }

    .porta .compu img {

        height: 19rem;
    }

    .compu {
        left: 38rem;
    }
}

@media screen and (max-width:1050px) {
    .deca {
        left: 11rem;
    }

    .texto {
        left: 11.5rem;
    }

    .porta .compu img {

        height: 19rem;
    }

    .compu {
        left: 34rem;
    }
}

@media screen and (max-width:930px) {
    .deca {
        left: 8rem;
    }

    .texto {
        left: 8.5rem;
    }

    .porta .compu img {

        height: 19rem;
    }

    .compu {
        left: 31rem;
    }
}

@media screen and (max-width:870px) {
    .deca {
        height: 5rem;
        left: 6.5rem;
    }

    .porta .deca img {
        height: 5rem;
    }

    .texto {
        left: 5.5rem;
    }

    .porta .compu img {
        height: 19rem;
    }

    .compu {
        left: 31rem;
    }

    .acerca-content img {

        width: 41rem;

    }
}

@media screen and (max-width:817px) {
    .deca {
        height: 5rem;
        left: 8.5rem;
    }

    .porta .deca img {
        height: 4rem;
    }

    .texto {
        font-size: 17px;
        left: 5.5rem;
        margin-top: 90px;
    }

    .porta .compu img {
        height: 15rem;
    }

    .compu {
        margin-top: 32px;
        left: 29rem;
    }

    .acerca-content img {

        width: 40rem;

    }

    .acerca-content {
        width: 45rem
    }
}

@media screen and (max-width:815px) {
    .deca {
        height: 5rem;
        left: 8.5rem;
    }

    .porta .deca img {
        height: 4rem;
    }

    .texto {
        font-size: 17px;
        left: 5.5rem;
        margin-top: 90px;
    }

    .porta .compu img {
        height: 15rem;
    }

    .compu {
        margin-top: 32px;
        left: 29rem;
    }

    .acerca-content img {

        width: 40rem;

    }

    .acerca-content {
        width: 41rem
    }
}

@media screen and (max-width:770px) {
    .deca {
        height: 5rem;
        left: 8.5rem;
    }


    .porta .deca img {
        height: 4rem;
    }

    .texto {
        left: 5.5rem;
        font-size: 17px;
        margin-top: 99px;
    }

    .porta .compu img {
        height: 15rem;
    }

    .compu {
        left: 28rem;
        margin-top: 36px;
    }

    .acerca-content img {

        width: 38rem;

    }

    .servicio-lista img {
        height: 17rem;

    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }



    .nav-links {
        gap: 1rem;
        font-size: 1rem;
    }

    .inicio h1 {
        font-size: 2.5rem;
    }

    .inicio button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .acerca-content img {
        width: 36rem;
    }


    .texto {
        position: absolute;
        left: 154PX;
        margin-top: 3.3rem;
        font-size: 14px;
        color: white;
        width: 19rem;
    }

    .compu {
        position: absolute;
        left: 28rem;
    }

    .porta .compu {
        margin-top: 0px;

    }

    .porta .compu img {
        height: 12rem;
    }

    .porta .porta-lista img {
        height: 13.2rem;
        width: 47rem;
    }



    .deca {
        position: absolute;
        left: 185px;
        margin-top: 6rem;
    }

    .porta .deca img {
        height: 4rem;
    }

    .servicio h2 {
        color: #1d70b7;
        font-size: 30px;
        width: 100%;
    }

    .servicio-item {
        width: 100%;
        margin: 1rem 0;
    }

    .servicio-lista img {
        height: 17rem;
    }

    .portafolio h2 {
        color: #1d70b7;
        font-size: 30px;
        margin-bottom: 2rem;
    }

    .portafolio img {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-contact,
    .footer-acerca {
        padding: 0 1rem;
    }
}

@media screen and (max-width:770px) {
    .deca {
        height: 5rem;
        left: 8.5rem;
    }


    .porta .deca img {
        height: 4rem;
    }

    .texto {
        left: 5.5rem;
        font-size: 17px;
        margin-top: 99px;
    }

    .porta .compu img {
        height: 15rem;
    }

    .compu {
        left: 28rem;
        margin-top: 36px;
    }

    .acerca-content img {

        width: 38rem;

    }

    .servicio-lista img {
        height: 17rem;

    }
}

@media (max-width: 690px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 1rem;
    }

    .inicio h1 {
        font-size: 2.5rem;
    }

    .inicio button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .acerca-content img {
        width: 33rem;

    }

    .texto {

        left: 67px;
        margin-top: 3.3rem;

    }

    .compu {
        left: 23rem;
    }

    .porta .compu {
        margin-top: 0px;

    }

    .porta .compu img {
        height: 12rem;

    }

    .porta .porta-lista img {
        height: 13.2rem;
        width: 47rem;


    }

    .deca {
        position: absolute;
        left: 95px;
        margin-top: 6rem;
    }

    .porta .deca img {
        height: 4rem;


    }

    .servicio h2 {
        color: #1d70b7;
        font-size: 30px;
        width: 100%;
    }

    .servicio-item {
        width: 100%;
        margin: 1rem 0;
    }

    .servicio-lista img {
        height: 17rem;
    }

    .portafolio h2 {
        color: #1d70b7;
        font-size: 30px;
        margin-bottom: 2rem;
    }

    .portafolio img {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-contact,
    .footer-acerca {
        padding: 0 1rem;
    }
}

@media (max-width: 676px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 1rem;
    }

    .inicio h1 {
        font-size: 2.5rem;
    }

    .inicio button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .acerca-content img {
        width: 29rem;

    }

    .texto {

        left: 67px;
        margin-top: 3.3rem;

    }

    .acerca-content {
        width: 30rem;
    }

    .compu {
        left: 23rem;
    }

    .porta .compu {
        margin-top: 0px;

    }


    .porta .compu img {
        height: 12rem;
    }

    .porta .porta-lista img {
        height: 13.2rem;
        width: 47rem;
    }



    .deca {
        position: absolute;
        left: 95px;
        margin-top: 6rem;
    }

    .porta .deca img {
        height: 4rem;
    }



    .servicio h2 {
        color: #1d70b7;
        font-size: 30px;
        width: 100%;
    }

    .servicio-item {
        width: 100%;
        margin: 1rem 0;
    }

    .servicio-lista img {
        height: 15rem;
    }

    .portafolio h2 {
        color: #1d70b7;
        font-size: 30px;
        margin-bottom: 2rem;
    }

    .portafolio img {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-contact,
    .footer-acerca {
        padding: 0 1rem;
    }
}

@media (max-width: 676px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 1rem;
    }

    .inicio h1 {
        font-size: 2.5rem;
    }

    .inicio button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .acerca-content img {
        width: 29rem;

    }

    .texto {

        left: 36px;
        margin-top: 3.3rem;

    }

    .compu {
        left: 20rem;
    }

    .porta .compu {
        margin-top: 0px;

    }


    .porta .compu img {
        height: 12rem;
    }

    .porta .porta-lista img {
        height: 13.2rem;
        width: 47rem;
    }



    .deca {
        position: absolute;
        left: 59px;
        margin-top: 6rem;
    }

    .porta .deca img {
        height: 4rem;
    }



    .servicio h2 {
        color: #1d70b7;
        font-size: 30px;
        width: 100%;
    }

    .servicio-item {
        width: 100%;
        margin: 1rem 0;
    }

    .servicio-lista img {
        height: 13rem;
    }

    .portafolio h2 {
        color: #1d70b7;
        font-size: 30px;
        margin-bottom: 2rem;
    }

    .portafolio img {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-contact,
    .footer-acerca {
        padding: 0 1rem;
    }
}

@media (max-width: 596px) {
    .navbar {
        position: relative;
    }

    .menu-icon {
        margin-left: 50rem;
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: left;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        padding: 1rem 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        z-index: 1000;
    }

    .menu-checkbox:checked+.menu-icon+.nav-links {
        transform: scaleY(1);
        opacity: 1;
    }

    .user {
        margin: 0;
        margin-top: 100px;
    }

    .user-links a {
        margin-top: 10px;
        margin-right: 15px;
    }

    .inicio h1 {
        font-size: 2.5rem;
    }

    .inicio button {
        font-size: 1rem;
    }

    .servicio-lista {
        flex-direction: column;
        /* Cambia la dirección a columna */
        align-items: center;
        /* Centra los elementos */
    }

    .servicio-item {
        width: 90%;
        /* Ajusta el ancho para que ocupe la mayor parte de la pantalla */
        margin-bottom: 1.5rem;
        /* Espacio inferior entre los elementos */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


@media (max-width: 576px) {
    .logo img {
        height: 50px;
    }

    .menu-icon {
        margin-left: 65vw;
        /* Se reduce el margen a 5% del ancho de la pantalla */
    }

    .nav-links {
        top: 80px;
        /* Ajustar la posición del menú desplegable */
    }

    .inicio h1 {
        font-size: 2rem;
    }

    .inicio button {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .acerca-content {
        width: 100%;
        padding: 1rem;

    }

    .acerca-content img {
        width: 20rem;
    }

    .servicio-item img {
        height: 60%;
    }

    .servicio {
        background: white;
        padding: 2rem 2rem;
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .servicio-lista img {
        height: 10rem;
    }

    .servicio h2 {
        color: #1d70b7;
        font-size: 20px;
    }


    .portafolio h2 {
        font-size: 2rem;
    }

    .porta .porta-lista img {
        height: 7.2rem;
        width: 24.9rem;


    }

    .porta .deca img {
        height: 34px;


    }

    .texto {
        position: absolute;
        left: 78px;
        margin-top: 31px;
        font-size: 8px;
        color: white;
        width: 9rem;

    }

    .deca {
        position: absolute;
        left: 86px;
        margin-top: 52px;
    }

    .compu {

        position: absolute;
        left: 13.9rem;
    }

    .porta .compu img {
        height: 7rem;
    }

    .footer-content {
        padding-bottom: 1rem;
    }

    .portafolio h2 {
        font-size: 20px;
    }
}

/* Para pantallas de hasta 400px (teléfonos muy pequeños) */
@media (max-width: 416px) {
    .navbar {
        padding: 0.5rem;
    }

    .menu-icon {
        margin-left: 60vw;
        /* Se reduce el margen a 5% del ancho de la pantalla */
    }

    .nav-links {
        top: 70px;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .inicio h1 {
        font-size: 1.8rem;
    }

    .inicio button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .acerca h2 {
        font-size: 1.8rem;
    }

    .servicio-item {
        height: 350px;
    }

    .servicio-item h3 {
        font-size: 1.5rem;
    }

    .portafolio img {
        max-width: 100%;
        border-radius: 5px;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .texto {
        position: absolute;
        left: 78px;
        margin-top: 31px;
        font-size: 8px;
        color: white;
        width: 9rem;

    }

    .deca {
        position: absolute;
        left: 86px;
        margin-top: 52px;
    }

    .compu {

        position: absolute;
        left: 13.9rem;
    }

    .porta .porta-lista img {
        height: 7.2rem;
        width: 23.5rem;
    }



    .servicio-lista img {
        height: 9rem;
    }
}