html, body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  font-family: "Montserrat", sans-serif;
}

#general {
    display: flex;
    width: 70%;
    height: 80%;
    margin: 5% 15%;

}

#leftPart {
    background-color: #087E8B;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);

    h1 {
        text-align: center;
        color: white;
        font-size: clamp(5px, 3vw, 40px);
        font-family: "Montserrat", sans-serif;
        margin-bottom: 0;
    }

    h2 {
      
        text-align: center;
        color: white;
        font-size: clamp(5px, 3vw, 20px);
        font-family: "Montserrat", sans-serif;
    }
}

#isaacPhoto {
    margin-top: 20%;
    margin-left: 30%;
    margin-bottom: 10%;
    width: 40%;
    height: auto;
    border-radius: 100%;
    border: white 2px solid;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

#iconSocialMedio {
    margin-top: 5%;
    margin-left: 25%;
    width: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.iconSocial {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.btn-descargar {
    display: inline-block;
    align-self: center;
    margin-top: 15%;
    padding: 15px 25px;
    background-color: #0077b6;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-descargar:hover {
    background-color: #023e8a;
    transform: scale(1.05);
}

#copyright {
    margin-top: auto;
    text-align: center;
}

#rightPart {
     display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 100%;
    height: 100%;      /* ocupa toda la altura de la pantalla */
    max-height: 100vh;  /* evita que se desborde */
    overflow-y: auto;   /* crea scrollbar si el contenido es más alto */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

#menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 70%;
    height: 5vh;
    margin-top: 1vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

/*ARREGLAR HOME ICON DE BARRA DE NAVEGACION*/
#homeIcon {
    width: 20%;
    height: auto;

}

#userIcon {
    width: 20%;
    height: auto;
}

#cursoIcon {
    width: 20%;
    height: auto;
}

#formularioIcon {
    width: 20%;
    height: auto;
}

#divMenuIcons {
    text-align: center;

    img {
        padding: 0;
    }
}

.subrallado {
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}

#rightPartContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: auto;
    height: 100%;

    h1,
    h2 {
        font-family: 'Montserrat', sans-serif;
        text-align: center;
    }


}

#lineaDivisoria {
    width: 100%;
    height: auto;
}

@media(max-width: 768px) {
    #iconSocialMedio {
        display: flex;
        flex-direction: column;
    }

}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;

        margin: 0;
        padding: 0;

    }

    #general {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 0 auto;
        gap: 20px;
        padding: 10px;
        box-sizing: border-box;
    }

    #leftPart {
        width: auto;
        height: auto;
        padding: 15px;
        align-items: center;
        border-radius: 15px;
    }

    #isaacPhoto {
        margin: 10px auto;
        width: 40%;
    }

    #iconSocialMedio {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin: 15px 0;
    }

    .btn-descargar {
        margin-top: 0;
        width: 80%;
        text-align: center;
    }

    #rightPart {
        width: 100%;
        flex-grow: 1;
        padding: 20px;
        min-height: 65vh;
        border-radius: 15px;
        box-sizing: border-box;
    }

    #menu {
        width: 100%;
        height: auto;
        justify-content: space-around;
        padding: 10px;
    }

    #menu img {
        width: 28px;
        height: auto;
    }

    /* Textos escalados */
    #leftPart h1 {
        font-size: 20px;
    }

    #leftPart h2 {
        font-size: 14px;
    }

    #rightPart {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 20px;
        border-radius: 15px;
    }

    #rightPartContent {
     display: flex;
    flex-direction: column;
    align-items: center;  
    justify-content: center; 
    text-align: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: auto;
    }

    #rightPartContent h1 {
        font-size: 24px;
    }

    #rightPartContent h2 {
        font-size: 16px;
    }

    #lineaDivisoria {
        width: 70%;
    }
}