html, body{
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
}

main{
    margin: 10px;
}

body{
    min-height: 100vh;/* Altura mínima del viewport para que cubra toda la pantalla */    
    background: rgb(145 145 145);/* Fondo */
    font-family: "Ruwudu", serif;
}

/*menu hamburguesa*/

/*--------------------------------------------------*/

.menu{
    display: flex;
    justify-content: space-between;
    
}

.items{
    margin-right: 1.25rem;
    border-color: rgb(44 99 18);
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    padding: 5px;
    padding-left: 22px;
    padding-right: 22px;
    text-decoration: none;
    list-style: none;
    font-size: 30px;
    transition: all 0.3s ease;
}

.items a{
    text-decoration: none;
    color: #700c8f;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Efecto hover */
.items:hover {
    border-color: #700c8f; /* Cambia el borde a violeta */
    transform: scale(1.1); /* Aumenta el tamaño al 110% */
}

.items:hover a {
    color: rgb(44, 99, 18); /* Cambia el texto a verde */
}

/*--------------------------------------------------------------------------*/

/* Botón menú hamburguesa */
/*
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-right: 10px;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: #700c8f;
    border-radius: 2px;
    transition: all 0.3s ease;
}
*/
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: relative;
    z-index: 10; /* Asegura que esté encima del menú */
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: #700c8f;
    border-radius: 2px;
    transition: all 1s ease;
    transform-origin: center;
}

/* Estado activo del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Oculta la línea del medio */
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/*-------------------------------------------------------------------------*/

/* Centrar el título */
.titulo {
    font-family: "Ruwudu", serif;
    text-align: center;
    margin-top: 20px;
}

.titulo h1 {
    font-size: 3.5em;
}

/* Contenedor de perfil */
.perfil {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    width: 80%;
    max-width: 1200px;
    border: 2px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Texto a la izquierda */
.perfil-texto {
    
    width: 60%;
    line-height: 1.6;
    font-size: 1.5em;
}

/* Imagen a la derecha */
.contenedor-img-perfil {
    width: 35%;
    text-align: center;
}

.contenedor-img-contacto a {
    display: inline-block;
    text-decoration: none;
    
}



/*cursos realizados*/
.contenedor-cursos-realizados {
    border-radius: 10px;
    border: white solid 5px;
    width: 80%;
    margin: 40px auto;
    text-align: left;
    padding: 10px;
}

/* Encabezado de la sección */
.contenedor-cursos-realizados h3 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
}

/* Contenido dividido en dos columnas */
.cursos-contenido {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Texto de los cursos */
.cursos-texto {
    width: 60%;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Imagen de los cursos */
.contenedor-img-titulo {
    
    text-align: right;
}

.titulos-img {    
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.titulos-img:hover{
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);

}


.foto-perfil {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ccc;
}
.titulos-img{
    
    height: auto;
}

footer{
    border-top: 7px solid white;
    text-align: center;
}

footer p{
    margin: 10px 36%;
    font-size: 16px;
    font-weight: bold;
    color: #700c8f;
}

/* Contenedor de Lightbox oculto por defecto */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Imagen ampliada dentro del lightbox */
.lightbox-contenido {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.lightbox-contenido:hover {
    transform: scale(1.05);
}

/* Botón de cerrar */
.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.cerrar:hover {
    color: #bbb;
}

/*-------------------------------------------------*/

/* Responsive */
@media (max-width: 768px) {
    .titulo h1 {
        font-size: 2em;
    }

    .perfil {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .perfil-texto, .contenedor-img-perfil {
        width: 100%;
    }

    .perfil-texto {
        margin-top: 0;
        text-align: center;
        font-size: 1.2em;
    }

    .contenedor-cursos-realizados {
        width: 90%;
    }

    .cursos-contenido {
        flex-direction: column;
    }

    .cursos-texto, .contenedor-img-titulo {
        width: 100%;
        text-align: center;
    }

    .items {
        text-align: center;
        margin-bottom: 10px;
        font-size: 18px;
        padding: 10px;
    }

    .menu {
        flex-direction: column;
        background: #fff;       
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 1.3s ease;
    }

    .menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
        margin: 6px;
        padding: 0 14px;
        
    }

    .contenedor-cursos-realizados h3{
        font-size: x-large;
    }

    .titulo{
        margin-top: -120px;
    }

    .titulos-img{
        max-width: 225px;
    }

    footer p{
        margin: 10px 30%;
    }

    /*------------------------------------------*/
    

    
}
    

}

