/* ESTILO GLOBAL */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ESTILOS ESPECÍFICOS */
header {
    font-family: NSimSun, sans-serif;
    background-color: #A69AFF;
    padding: 1.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header .enlaces-izquierda,
header .enlaces-derecha {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

h1 {
    font-size: 40px;
    color: #ffffff;
    margin: 0 3%;
    white-space: nowrap;
    font-weight: normal;
}

a {
    text-decoration: none;
}

/* MENÚ BOTÓN */
.menu-toggle {
    display: none;
    position: absolute;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* DESPLEGABLE DE MENÚ */
.menu-desplegable {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #A69AFF;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu-desplegable.active {
    display: flex;
}

.menu-desplegable a {
    margin: 0.5rem 0;
    padding: 0.5rem;
}

header a {
    text-decoration: none;
    color: #ffffff;
    font-size: 25px;
    margin: 0 30px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

header a:hover {
    color: #5325A2;
}

/* APARTADOS DE NAVEGACIÓN */
div .contenido-sobre-mi {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    font-family: NSimSun, sans-serif;
    color: #612abe;
    font-size: 30px;
    text-align: center;

}

.acticulos {
    margin: 2rem auto;
    max-width: 80%;
    gap: 20px;
    flex: 1
}

.contenido-sobre-mi {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 2rem auto;
    max-width: 80%;
    gap: 20px;
}

.foto_01 {
    width: 100%;
    max-width: 250px;
    height: auto;
    flex-shrink: 0;
}

.contenido-sobre-mi p {
    color: #000000;
    text-align: justify;
    flex-grow: 1;
}

/* BARRAS DE HABILIDADES */
h4 {
    font-family: NSimSun, sans-serif;
    font-size: 18px;
    margin-top: 1rem;
}

.progress01 {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 1.5rem;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    margin: 1rem 0rem;
}

.progress-bar01 {
    width: 70%;
    background-color: #782EFB;
    text-align: center;
}

.progress02 {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 1.5rem;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    margin: 1rem 0rem;
}

.progress-bar02 {
    width: 75%;
    background-color: #612ABE;
    text-align: center;
}

.progress03 {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 1.5rem;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    margin: 1rem 0rem;
}

.progress-bar03 {
    width: 80%;
    background-color: #BD97FF;
    text-align: center;
}

.progress04 {
    background-color: #e9ecef;
    border-radius: 0.25rem;
    height: 1.5rem;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    margin-top: 1rem;
    margin: 1rem 0rem;
}

.progress-bar04 {
    width: 90%;
    background-color: #A69AFF;
    text-align: center;
}

/* TRABAJOS */
.titulo {
    margin-top: 2rem;
}

/* Estilos para las pestañas */
.nav-tabs .nav-link {
    color: #000000;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #A69AFF;
}

/* Estilos para las imágenes y videos de trabajos */
.trabajo-img,
.trabajo-video {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.trabajo-img:hover,
.trabajo-video:hover {
    transform: scale(1.05);
}

/* Estilos para los modales */
.modal-content {
    border-radius: 12px;
}

.modal-body img,
.modal-body video {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Estilos para el contenido de las pestañas */
.tab-content {
    padding: 20px 0;
}

/* PROYECTOS PERSONALES */
.proyecto-container {
    max-width: 80%;
    margin: 0 auto;
}

h3 {
    font-family: NSimSun, sans-serif;
    text-align: center;
    color: #A69AFF;
    font-size: 25px;
    margin: 1rem 0 0.3rem 0;
}

/* SHOWREEL */
.video {
    width: 1280px;
    height: 720px;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* FOOTER */
.footer {
    background-color: #A69AFF;
    padding: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 2rem;

}

.footer h1 {
    text-align: center;
    font-family: NSimSun, sans-serif;
}

.footer p {
    color: #ffffff;
    text-decoration: none;

}

.footer div{
    margin: 0rem;
}

.footer p{
    text-align: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
}
.footer a{
    color: #ffffff;
}
.boton{
  background: #8170ff;
  padding: 20px; 
  color: #ffffff;
  justify-content: center;
  margin-left: 90%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: center;
        padding: 1rem 0;
    }

    header .enlaces-izquierda,
    header .enlaces-derecha {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    header h1 {
        font-size: 28px;
        margin: 0;
    }

    header a {
        font-size: 18px;
    }

    .contenido-sobre-mi {
        flex-direction: column;
        align-items: center;
        max-width: 95%;
    }

    .foto_01 {
        max-width: 200px;
        margin-bottom: 1rem;
    }

    .contenido-sobre-mi p {
        width: 100%;
    }

    h2 {
        font-size: 24px;
    }

    #trabajos .title h2 {
        font-size: 2rem;
    }

    .col-3 {
        margin-bottom: 20px;
    }

    .video_reel {
        width: 95%;
        padding: 0 1rem;
    }

    .footer {
        padding: 1rem 0;
    }

    @media (max-width: 480px) {
        header h1 {
            font-size: 24px;
        }

        header a {
            font-size: 16px;
        }

        .foto_01 {
            max-width: 150px;
        }

        h2 {
            font-size: 20px;
        }

        .menu-toggle {
            right: 1rem;
        }

        .video_reel {
            width: 100%;
            padding: 0 0.5rem;
        }

        .footer h1 {
            font-size: 24px;
        }

        .footer p {
            font-size: 12px;
        }
    }
}