/* Ajustes predeterminados */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--color-white);
}

li {
    list-style: none;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

.background-effect {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    background-color: #020520;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

body {
    margin: 0;
    width: 100%;
    height: auto;
    padding: 0;

}

:root {
    --color-titles: rgb(255, 120, 120);
    --color-white: rgb(229, 229, 229);
    --font-title: 'Manrope';
    --color-navbar: rgba(1, 6, 29,0.8);
}

/* Fin ajustes predeterminados */

/* Fuentes personalizadas */

@font-face {
    font-family: 'Manrope';
    src: url(../fonts/Manrope.ttf);
}

@font-face {
    font-family: 'BirthstoneBounce';
    src: url(../fonts/BirthstoneBounce.ttf);
}

@font-face {
    font-family: 'Inter';
    src: url(../fonts/Inter.ttf);
}

/* Fin fuentes personalizadas */

/* Barra de navegación versión escritorio */

.header {
    width: 100%;
    margin: 30px 0px;
}

.navbar {
    width: 100%;
    margin: 0;
}

.ul_link {
    display: flex;
    align-items: center;
    width: 40%;
    margin: 0 auto;
    justify-content: center;
    gap: 90px;
    padding: 14px;
    border-radius: 30px;
    background-color: var(--color-navbar);
    color: var(--color-white);
    font-family: 'Manrope';
    font-weight: 400;
    font-size: 18px;
}

.ul_link li {
    transition: all .2s ease-in-out;
}

.ul_link li:hover {
    color: var(--color-titles);
    transition: all .2s ease-in-out;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 23px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background: var(--color-titles);
    transition: all 0.3s ease;
}

/* Fin barra de navegación versión escritorio */


/* Sección descripción personal */

.section-one {
    width: 100%;
    margin: 140px 0px;
}

.description-flex {
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.text-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    font-family: 'Manrope';
}

.flex-dispo-hello span {
    color: var(--color-white);
    font-size: 22px;
}

.span-flex {
    font-size: 12px;
    overflow: hidden;
    min-height: 30px; /* Asegura que el div siempre tenga una altura */
    width: 220px; /* Ajusta este ancho dependiendo del texto más largo */
    text-align: left; /* Evita que el texto se centre al cambiar */
    white-space: nowrap; /* Mantiene el texto en una línea */
}

.flex-dispo-hello {
    display: flex;
    align-items: center;
    gap: 120px;
}

.letter {
    opacity: 0;
    animation: fadeIn 0.05s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dispo {
    background-color: transparent;
    border: 2px solid var(--color-titles);
    padding: 7px;
    border-radius: 30px;
    cursor: cell;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-dispo-hello .dispo p {
    color: var(--color-white);
    font-size: 15.5px;
    font-weight: 500;
}

.flex-rrss-footer h2 {
    color: rgb(229, 229, 229);
    font-size: 20px;
    letter-spacing: .5px;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 20px;
    font-weight: 500;
}

.icon-dispo img {
    margin-top: 5px;
}

.text-flex h1 {
    background: linear-gradient(90deg, rgba(229,229,229,1) 29%, rgba(255,120,120,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 50px;
    font-weight: 800;
}

.text-flex h1 { /* Animación del texto del título */
    background: linear-gradient(90deg, #ff6b6b, rgba(229,229,229,1), #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 3s infinite alternate;
}

@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}

.text-flex p {
    color: var(--color-white);
    font-size: 14px;
}

.img-flex img {
    width: 300px;
    height: auto;
    border-radius: 100%;
    border: 2px solid var(--color-titles);
    box-shadow: 10px 10px 100px -3px rgba(255, 163, 163, 0.31);
}

.buttons-rrss {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 18.4px;
    margin-top: 20px;
    color: var(--color-white);
}

.button-flex {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgb(229,229,229);
    padding: 10px;
    border-radius: 30px;
    transition: all .2s ease-in-out;
    background: linear-gradient(148deg, rgba(229,229,229,0) 69%, rgba(255,120,120,0.7) 100%);
}

.button-flex:hover {
    transition: all .2s ease-in-out;
    box-shadow: 10px 10px 70px -3px rgba(255, 163, 163, 0.61);
}

/* Fin sección descripción personal */


/* Sección de mis proyectos */

.section-two {
    width: 100%;
    margin: 0;
    margin-top: 220px;
}

.title-section {
    text-align: center;
    font-size: 50px;
    margin-bottom: 70px;
}

.title-section span {
    font-family: 'BirthstoneBounce';
    color: var(--color-titles);
}

.title-section  b {
    font-family: 'Manrope';
    background: linear-gradient(90deg, rgba(229,229,229,1) 35%, rgba(255,120,120,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flex-projects {
    display: flex;
    flex-direction: column;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: 'Manrope';
}

.flex-img-projetc img {
    width: 500px;
    border-radius: 15px;
}

.flex-img-text {
    display: flex;
    max-width: 1300px;
    height: auto;
    gap: 60px;
    align-items: center;
}

.flex-text-project {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.h2-project {
    font-size: 24px;
}

.p-project {
    font-size: 17px;
}

.flex-icons-tech {
    display: flex;
    align-items: center;
    gap: 35px;
}

.technologies {
    margin-top: 30px;
}

.button-technologies {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-tec-flex p {
    font-size: 19px;
    font: 400;
}

.flex-img-text {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.flex-img-text.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Fin de la sección de mis proyectos */


/* Sección sobre mí */

.section-three {
    margin-top: 120px;
    overflow: hidden;
}

.services {
    margin-bottom: 200px;
    font-family: 'Manrope';
}

.services-generals {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-1,
.service-2 {
    padding: 30px;
    animation: bounceEffect 2s ease-in-out infinite;
    max-width: 400px;
    flex: 1;
    box-sizing: border-box;
}

.title-flex-service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-titles);
    gap: 10px;
}

.text-title-service {
    font-size: 24px;
    text-align: center;
}

.text-out-flex p {
    font-size: 18px;
    color: var(--color-white);
    text-align: center;
}



/* efecto de bote en la sección de servicios a ofrecer */

@keyframes bounceEffect {


    0% {
      transform: translateY(0);
    }
    25% {
      transform: translateY(-3px); 
    }
    50% {
      transform: translateY(0);
    }
    75% {
      transform: translateY(-3px);
    }
    100% {
      transform: translateY(0);
    }
  }


/* Fin de la sección sobre mí */


/* Sección sobre mí */

.section-four {
    margin-bottom: 100px;
}

.flex-aboutMe {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 50px;
    align-items: center;
    font-family: 'Manrope';
}

.img-flex-aboutMe img {
    mask-image: linear-gradient(black 93%, transparent );
    margin-bottom: 30px;
    rotate: -2deg;
}

.text-aboutMe {
    color: var(--color-white);
    max-width: 600px;
    letter-spacing: 1px;
}

.flex-aboutMe {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.flex-aboutMe.visible {
    opacity: 1;
    transform: translateX(0);
}



/* Fin de la sección sobre mí */

/* Linea separadora */

.hr-separator {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid rgb(240, 124, 124)

}

/* Fin de la línea separadora */

/* Footer web */

.footer {
    width: 100%;
    font-family: 'Manrope';
    margin: auto;
    height: auto;
    padding: 40px;
    text-align: center;
}

.footer p {
    color: var(--color-white);
}

.footer p a {
    transition: all .3s ease-in-out;
}

.footer p a:hover {
    color: var(--color-titles);
    transition: all .3s ease-in-out;
}

.flex-rrss-flex {
    width: 100%;
    margin: auto;
}

.box-rrss-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.box-rrss-flex img {
    transition: all .3s ease-in-out;
}

.box-rrss-flex img:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Fin footer web */


/* Diseño responsive para móviles */

@media (max-width: 550px) {
    
    .hr-separator {
        width: 90%;
    }

    .text-aboutMe {
        max-width: 365px;
    }

    .flex-img-text {
        width: 90%;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .flex-img-projetc img {
        margin: 0 auto;
        width: 385px;
    }

    .p-project p {
        max-width: 350px;
    }

    .button-technologies {
        max-width: 70px;
    }

    .description-flex {
        flex-direction: row;
        justify-content: space-between;
    }

    .text-flex {
        align-items: flex-start;
        margin: 0px 20px;
        text-align: left;
    }

    .mobile-title h1 {
        font-size: 60px;
    }

    .img-flex {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .buttons-rrss {
        flex-direction: row;
        justify-content: center;
    }

    .flex-dispo-hello {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .dispo {
        margin-top: 20px;
    }


    .section-one {
        margin-top: 100px;
    }

    .span-flecha-abajo {
        display: none;
    }

    .background-effect {
        position: fixed; /* Cambié de absolute a fixed */
        top: 0;
        left: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        background-color: #020520;
        background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
        background-size: 20px 20px;
        background-size: 40px 40px;
    }
    



}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .ul_link {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(1, 6, 29,0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 52px;
        padding: 0;
        font-size: 23px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    .li_link {
        margin-top: -40px;
    }

    .ul_link.active {
        transform: translateY(0);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(9px, 3px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -3px);
    }
}

/* Fin diseño responsive para moviles */


/* Diseño responsive para tablets y macbooks*/

@media (max-width: 1024px) {
    
    .hr-separator {
        width: 90%;
    }

}

/* Fin de diseño responsive para tablets y macbooks */







