@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Space+Grotesk:wght@300..700&display=swap');
@import url('base.css');

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Space+Grotesk:wght@300..700&display=swap');

:root {
    --color-bg-main: #071032;
    --neon-cyan: #00FFFF;
    --neon-pink: #fefa8f;
    --font-text: "Space Grotesk";
    --font-main: "Audiowide";
    --color-line: rgba(0, 255, 255, 0.4);
    --color-dot-inactive: #4a5568;
    --color-text-inactive: #a0aec0;
    --color-white: #ffff;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: var(--color-bg-main);
}

body {
    margin: 0;
    padding: 0;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.heading-1 {
    font-family: var(--font-main);
    font-size: 2.986rem;
    font-weight: bold;
}

.heading-2 {
    font-family: var(--font-main);
    font-size: 2.488rem;
    font-weight: normal;
}

.heading-3 {
    font-family: var(--font-main);
    font-size: 2.074rem;
    font-weight: bold;
}

.heading-4 {
    font-family: var(--font-main);
    font-size: 1.728rem;
    font-weight: normal;
}

.heading-5 {
    font-family: var(--font-main);
    font-size: 1.44rem;
    font-weight: normal;
}

.heading-6 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: normal;
}

.parrafo {
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--color-white);
}




body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.space-viewport-3d {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 18%;
    height: 18%;
    z-index: 2;
    overflow: visible;
}

model-viewer {
    display: block;
    width: 140%;
    height: 140%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

model-viewer#saturn-3d-viewer::part(shadow) {
    display: none;
}

.viewer-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 31, 0.7);
    backdrop-filter: blur(10px);
    color: cyan;
    font-family: sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 10px cyan;
    z-index: 20;
    transition: opacity 0.5s ease;
}

model-viewer:not(.show-progress) .viewer-loader {
    opacity: 0;
    pointer-events: none;
}

.planet-glow-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(22, 0, 46, 0.2) 0%, transparent 55%);
    z-index: 0;
    pointer-events: none;
}

.cometa-body {
    width: 100%;
    height: 100%;
    animation: antirotar 12s linear infinite;
}

.cometa {
    position: absolute;
    top: 80%;
    left: -25%;
    width: 80px;
    height: 80px;
    transform-origin: 400px 0;
    animation: orbitar-cometa 12s linear infinite;
}

.cometa img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

@keyframes orbitar-cometa {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes antirotar {
    0% {
        transform: rotate(-45deg);
    }

    40% {
        transform: rotate(-50deg);
    }

    70% {
        transform: rotate(-70deg);
    }

    100% {
        transform: rotate(-45deg);
    }

}

.cometa2 {
    position: absolute;
    top: 80%;
    left: 40%;
    width: 80px;
    height: 80px;
    transform-origin: 400px 0;
    animation: orbitar-cometa-invertido 12s linear infinite;
    animation-delay: -6s;
    /* arranca en el lado opuesto de la órbita */
}

.cometa2 img {
    transform: scaleX(-1) rotate(180deg);
}

.cometa-body2 {
    width: 100%;
    height: 100%;
    animation: rotar-invertido 12s linear infinite;
    animation-delay: -6s;
}

@keyframes orbitar-cometa-invertido {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes rotar-invertido {
    0% {
        transform: rotate(45deg);
    }

    40% {
        transform: rotate(50deg);
    }

    70% {
        transform: rotate(70deg);
    }

    100% {
        transform: rotate(45deg);
    }

}


/*
=========================
seccion sobremi ordenado
=========================
*/
.segundoFondo {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/fondo2.webp);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -10;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
}

.cuartaCapa {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(../img/nebula.webp);
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            red 20%,
            red 80%,
            transparent 100%);

    opacity: 0.5;
    z-index: -10;
}

#foto {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--neon-cyan);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.35),
        0 0 25px rgba(0, 255, 255, 0.25);
}

.sobremiCont {
    position: relative;
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

}

.sobreMiWrapper {
    overflow-x: clip;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}


.aquiYo {
    display: flex;
    gap: 3rem;
    width: 60%;
    margin-right: 5%;

    animation: fadeInFromSide;
    animation-timeline: view();
    animation-fill-mode: both;
    animation-range-start: 15%;
    animation-range-end: 30%;
}


.textoSobremi h1 {
    margin: 0 0 8px 0;
    display: flex;
    gap: 12px;
}

.textoSobremi h1 span:first-child {
    color: var(--neon-cyan);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);

}

.textoSobremi h1 span:last-child {
    color: var(--neon-pink);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
}

@keyframes fadeInFromSide {
    0% {
        opacity: 0;
        transform: translateX(5%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
=========================
seccion skills ordenado
=========================
*/



.fondo4 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/fondo4.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -10;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
}

.skillsCont {
    position: relative;
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pepoWrapper {
    overflow-x: clip;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}



.subSkillsCont {
    width: 60%;
    margin-left: 5%;

    animation: fadeInFromSide2;
    animation-timeline: view();
    animation-fill-mode: both;
    animation-range-start: 15%;
    animation-range-end: 30%;
}

@keyframes fadeInFromSide2 {
    0% {
        opacity: 0;
        transform: translateX(-5%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.subSkillsCont h1 {
    margin: 0 0 8px 0;
    display: flex;
    gap: 12px;
}

.subSkillsCont h1 span:first-child {
    color: var(--neon-cyan);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
}

.subSkillsCont h1 span:last-child {
    color: var(--neon-pink);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink);
}

.contLogos {
    margin-top: 2rem;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.logo {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--neon-cyan);
    border-radius: 16px;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.35),
        0 0 25px rgba(0, 255, 255, 0.25);
}

.logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    object-position: center;
}



/*
=========================
seccion contacto ordenado
=========================
*/

.contactoCont {
    position: relative;
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tercerFondo {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/fondo2.webp);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -10;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%);
}

.quintaCapa {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(../img/nebula2\ .webp);
    top: 0;
    left: 20%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 20%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);

    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(to right, transparent 0%, black 20%, black 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    mask-composite: intersect;

    opacity: 0.5;
    z-index: -10;
}

.contactoCont h1 {
    margin: 0 0 2rem 0;
    display: flex;
    gap: 12px;
    color: var(--neon-cyan);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
}

.otroContenedor {
    display: flex;
    flex-direction: column;
    width: 70%;
    align-items: center;
}

.subContactCont {

    width: 40%;
    padding: 2rem;
    background-color: transparent;
    border-radius: 8px;
    border: 1px solid var(--neon-cyan);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.35),
        0 0 25px rgba(0, 255, 255, 0.25);
}

.superh2 {

    color: var(--color-white);
    text-shadow:
        0 0 2px #fff,
        0 0 5px #fff,
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.formularioContacto {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.formInput {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;

}

input {
    box-sizing: border-box;
    border: 1px solid #00FFFF;
    background-color: transparent;
    color: #00FFFF;
    border-radius: 4px;
    padding: 0.8rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00CCCC;
    box-shadow:
        0 0 5px rgba(0, 204, 204, 0.5),
        0 0 10px rgba(0, 204, 204, 0.3);
}

textarea {
    resize: none;
    box-sizing: border-box;
    border: 1px solid #00FFFF;
    background-color: transparent;
    color: #00FFFF;
    border-radius: 4px;
    padding: 0.8rem;
}

.centrarFlex {
    display: flex;
    justify-content: center;
}

.btn-enviar {
    padding: 10px 20px;
    background-color: var(--neon-cyan);
    color: var(--color-bg-main) !important;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 50%;

}

.btn-enviar:hover {
    background-color: #00CCCC;
    box-shadow:
        0 0 15px rgba(0, 204, 204, 0.7),
        0 0 30px rgba(0, 204, 204, 0.5);
}

/*
=========================
seccion welcome ordenado
=========================
*/

.welcome {
    position: relative;
    max-height: 100dvh;
    height: 100dvh;
    background-image: url(../img/fondo.webp);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    mask-image: linear-gradient(to bottom,
            black 0%,
            black 80%,
            transparent 100%);

}

.terceraCapa {
    position: absolute;
    width: 120%;
    height: 50%;
    background-image: url(../img/morado.webp);
    top: 55%;
    left: -15%;
    transform: translateY(-50%);
    background-size: cover;
    background-position: center;
    transform: rotate(20deg);
    /* difuminar bordes con mask */
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            red 20%,
            red 80%,
            transparent 100%);

    opacity: 0.45;


}

.segundaCapa {
    position: absolute;
    width: 140%;
    height: 50%;
    background-image: url(../img/celeste.webp);
    top: 40%;
    left: -20%;
    transform: translateY(-50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: rotate(-20deg);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            red 20%,
            red 80%,
            transparent 100%);

    opacity: 0.5;
}

.titleMain {
    margin: 0;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.neon-pink {
    color: #FFFFFF;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink),
        0 0 90px var(--neon-pink),
        0 0 100px var(--neon-pink);
}

.neon-turquoise {
    color: #FFFFFF;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan),
        0 0 80px var(--neon-cyan),
        0 0 90px var(--neon-cyan),
        0 0 100px var(--neon-cyan);
}


.menuConstelacion {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 7%;
    height: 30%;
    width: 20%;
}

.menuItem {
    position: absolute;
    text-decoration: none;

}

.menuItem button {
    width: 25px;
    height: 25px;
    background-color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.menuItem:hover button {
    transform: scale(1.4);
    background-color: var(--neon-cyan);
    border: 2px solid var(--color-white);
    box-shadow:
        0 0 6px rgba(0, 255, 255, 0.6),
        0 0 12px rgba(0, 255, 255, 0.45);
}

.menuItem span {
    color: var(--color-white);
    text-shadow: 0 0 10px var(--neon-pink),
        0 0 25px var(--neon-pink),
        0 0 40px rgba(255, 0, 251, 0.7);
    transition: all 0.2s ease-in-out;


}

.menuItem:hover span {
    color: var(--neon-cyan);
    text-shadow:
        0 0 8px rgba(0, 255, 255, 0.6),
        0 0 18px rgba(0, 255, 255, 0.35);


}

.item1 {
    top: 0;
    left: 20%;
}

.item2 {
    top: 33%;
    left: 0;
}


.item3 {
    top: 66%;
    left: 0;
}

.item4 {
    bottom: 0;
    left: 20%;
    transform: translateY(100%);
}

/*
=========================
seccion constelacion ordenado
=========================
*/

.itemMain {

    background-color: var(--color-white);
    border-radius: 50%;
    position: absolute;

}


.item1_1 {
    position: absolute;
    top: 25%;
    left: 60%;

}

.item1_2 {
    position: absolute;

    top: 35%;
    left: -30%;
}

.item3_1 {
    position: absolute;

    top: 25%;
    left: -40%;
}

.item4_1 {
    position: absolute;

    bottom: 5%;
    left: -30%;
}

.item4_2 {
    position: absolute;

    bottom: 25%;
    left: 60%;
}

.item0 {
    width: 15px;
    height: 15px;
    top: -40%;
    left: 60%;

}

.item5 {
    width: 20px;
    height: 20px;
    bottom: -40%;
    right: 35%;
    transform: translateY(100%);
}

#lineas {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    pointer-events: none;
    transform: translate(-25%, -25%);
}

.esfera {

    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        inset 0 0 50px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(0, 255, 255, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -50%);

    animation: float 6s ease-in-out infinite alternate;
    cursor: pointer;
    transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}


.proyecto {
    width: 100px;
    height: 100px;
    margin-top: 30%;
}

.tituloEsfera {
    color: var(--neon-pink) !important;
    font-family: var(--font-text) !important;
    margin: 0;
    padding-top: 2rem;
    text-align: center;
}

.parrafoEsfera {
    color: var(--neon-cyan) !important;
    font-family: var(--font-main) !important;
    margin: 0;
}


.esfera:hover {
    width: 170px;
    height: 170px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

@keyframes float {

    0% {
        transform: translate(-50%, -50%);

    }


    50% {
        transform: translate(-30%, -35%);
    }


    100% {
        transform: translate(-48%, -52%);
    }

}

.esfera1 {
    top: 50%;
    left: 35%;
    box-shadow:
        inset 0 0 30px rgba(0, 255, 255, 0.35),
        0 0 30px rgba(0, 255, 255, 0.35);


}

#imgEsfera1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 67%;
    height: 67%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    opacity: 0.85;
    mix-blend-mode: lighten;
    filter: blur(0.5px) drop-shadow(0 0 5px rgba(0, 255, 255, 0.6));
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: -1;

}

.esfera2 {
    top: 50%;
    left: 85%;

}

.esfera3 {
    top: 80%;
    left: 60%;

}


.cohete {
    position: fixed;
    bottom: 3%;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    align-content: center;
    z-index: 10;
}

.cohete img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
}

.cohete-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.textoCohete1 {
    color: var(--neon-cyan);
    margin: 0;
}

.textoCohete2 {
    color: var(--color-white);
    margin: 0;
}

.equisdeMaximo {

    height: 2000px;
}

/*
=========================
seccion modal ordenado
=========================
*/


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(10, 20, 40, 0.9);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 840px;
    color: var(--color-white);
    box-shadow:
        0 0 15px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;

    position: relative;
    overflow: hidden;

}

.modal-header {
    position: sticky;
    top: 0;
    padding-bottom: 0.5rem;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.85), rgba(10, 20, 40, 0));
    z-index: 2;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--neon-cyan);
}

.modal-content p {
    color: var(--color-white);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--neon-pink);
    cursor: pointer;
    transition: text-shadow 0.3s ease;
}

.close-modal:hover {
    text-shadow: 0 0 10px var(--neon-pink);
}

.modal-scroll {
    max-height: 70vh;
    /* scroll interno, tamaño estable */
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(255, 255, 255, 0.05);
}

.modal-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 999px;
}

.modal-gallery {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.08);
}

.modal-gallery-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.modal-gallery-track img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-gallery-track img:hover {
    width: 100%;
    height: auto;
    transform: scale(1.05);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.modal-tech span {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

#img1Modal,
#img2Modal,
#img3Modal,
#img4Modal,
#img5Modal {
    width: 100%;
    height: auto;


}

.tiTech {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);

}














@media (max-width: 768px) {
    .space-viewport-3d {
        width: 80%;
        height: 80%;
        top: 30%;
        left: 50%;
    }

    .planet-glow-3d {
        width: 80%;
        height: 80%;
    }

    .titleMain {
        font-size: 2rem;
        text-align: center;
    }


    .esfera {
        width: 100px;
        height: 100px;
    }

    .esfera1 {
        top: 65%;
        left: 15%;
    }

    .esfera2 {
        top: 70%;
        left: 48%;
    }

    .esfera3 {
        top: 65%;
        left: 80%;
    }

    .proyecto {
        padding: 0;
        margin: 0;
    }

    .tituloEsfera {
        font-size: 0.5rem;
        padding-top: 0.9rem;
    }

    .parrafoEsfera {
        font-size: 0.8rem;
    }

    #lineas {
        display: none;
    }

    .item0 {
        display: none;
    }

    .item5 {
        display: none;
    }

    .item4 {
        transform: none;
    }

    .menuConstelacion {
        position: absolute;
        top: 40%;
        left: 25%;
        transform: none;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1rem;

    }

    .menuItem {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .menuItem button {
        width: 16px;
        height: 16px;
    }

    .menuItem span {
        font-size: 1rem;
    }

    .cometa,
    .cometa2 {
        width: 44px;
        height: 44px;
        top: 65%;
        left: -9%;
        transform-origin: 200px 0;
    }

    .cometa {
        animation: orbitar-cometa 12s linear infinite;
    }

    .cometa2 {
        animation: orbitar-cometa-invertido 12s linear infinite;
        animation-delay: -6s;
    }

    .sobremiCont {
        height: auto;
        padding: 4rem 1.5rem;
    }

    .sobreMiWrapper {
        justify-content: center;
    }

    .aquiYo {
        display: grid;
        grid-template-areas:
            "title"
            "photo"
            "text";
        justify-items: center;
        row-gap: 1.5rem;
        text-align: center;
    }

    .textoSobremi h1 {
        grid-area: title;
        justify-content: center;
        font-size: 2.4rem;
        margin: 0 0 0.5rem 0;
    }

    #foto {
        grid-area: photo;
        width: 200px;
        margin: 0 auto;
    }

    .textoSobremi {
        display: contents;
    }

    .textoSobremi p {
        grid-area: text;
        font-size: 1rem;
    }

    .skillsCont {
        height: auto;
        padding: 4rem 1.5rem;
    }



    .pepoWrapper {
        justify-content: center;
    }

    .subSkillsCont {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .subSkillsCont h1 {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        text-align: left;
    }

    .contLogos {
        justify-content: center;
        gap: 16px;
    }

    .logo {
        width: 88px;
        height: 88px;
    }

    .contactoCont {
        height: auto;
        padding: 4rem 1.5rem;
    }

    .otroContenedor {
        width: 100%;
        align-items: center;
        gap: 1.5rem;
    }

    .subContactCont {
        width: 80%;
        padding: 1.5rem;
    }

    .contactoCont h1 {
        justify-content: center;
        text-align: center;
    }

    .formularioContacto {
        width: 100%;
    }

    .btn-enviar {
        width: 100%;
    }

    .modal-content {
        width: 90%;
        max-width: 360px;
        padding: 1.25rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-content p {
        font-size: 0.95rem;
    }

    .close-modal {
        top: 0.75rem;
        right: 0.75rem;
    }

    .space-viewport-3d {
        width: 65%;
        height: 18%;
        top: 30%;
        left: 50%;
        overflow: visible;
    }

    model-viewer {
        width: 120%;
        height: 120%;
    }

    .modal-content {
        padding: 1.1rem;
    }

    .modal-scroll {
        max-height: 50vh;
    }

    .modal-gallery-track img {
        height: 140px;
    }

    .modal-tech span {
        font-size: 0.85rem;
    }


}